/* =====================================================================
   창작 플랫폼 디자인 시스템 — "원고지와 낙관"  (docs/10-design-system.md)
   모든 값은 아래 토큰을 쓴다. 중단점: 600 / 900 / 1200px
   ===================================================================== */

:root {
  --c-ai: #5B3FA8; --c-ai-bg: #EFEBF8;           /* AI 창작 표시 (대비 6.9:1) */
  /* 색상 */
  --c-bg: #FFFFFF;
  --c-surface: #F3F4F6;
  --c-ink-surface: #1B1D22;
  --c-text: #17191E;
  --c-text-2: #4B5160;
  --c-text-3: #646B78;
  --c-seal: #C2362B;
  --c-seal-soft: #F6E1DE;
  --c-link: #2447B5;
  --c-line: #E2E4E9;
  --c-line-2: #C9CDD5;
  --c-ok: #17703F;  --c-ok-bg: #E7F4EC;
  --c-warn: #9A4A00; --c-warn-bg: #FDF0E1;
  --c-err: #B3261E;  --c-err-bg: #FBE9E7;
  --c-focus: #2447B5;
  --c-primary: #17191E; --c-on-primary: #FFFFFF;
  --c-member: #5A3E8F; --c-member-bg: #EFE9F8;
  /* 글꼴 */
  --f-sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  /* 명조는 회차 본문 선택지·원고 입력·문장 카드에만 (6.1). 제목·UI 는 모두 --f-sans */
  --f-serif: "Hahmlet Variable", "Noto Serif KR", "Nanum Myeongjo", "Batang", serif;
  /* 글자 크기 6단계 (디자인 3.0, docs/REDESIGN_PLAN.md 6.2) — 새 규칙은 이 6개만 쓴다 */
  --fs-cap: 12px;    /* 보조 정보(날짜·조회) */
  --fs-sm: 14px;     /* 메타·칩·표 */
  --fs-body: 16px;   /* 본문·버튼 */
  --fs-title: 18px;  /* 카드 제목·작은 제목 */
  --fs-h2: 20px;     /* 구역 제목 (데스크톱 22) */
  --fs-h1: 24px;     /* 화면 제목 (데스크톱 30) */
  --fs-display: 30px; /* 예외: 작가 모집 첫 화면 큰 제목 1곳만 (데스크톱 40) */
  /* 옛 이름(xs·s·md·base·lg·xl·h3) 별칭은 3차-b(2026-11-13)에서 모두 치환 후 삭제 */
  --lh-tight: 1.25; --lh: 1.65;
  /* 간격·크기 */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --w-page: 1200px; --w-read: 680px; --gutter: 16px;
  --card-gap: 20px 12px;
  /* 테두리·모서리·그림자 */
  --b: 1px solid var(--c-line);
  --r-cover: 4px; --r-ctl: 8px; --r-panel: 10px; --r-pill: 999px;
  --shadow-cover: 0 1px 2px rgba(23, 25, 30, .08), 0 6px 16px -8px rgba(23, 25, 30, .25);
  --shadow-pop: 0 12px 32px -12px rgba(23, 25, 30, .35);
  /* 전환 */
  --t-fast: 120ms; --t: 200ms;
}
@media (min-width: 600px) { :root { --gutter: 24px; --card-gap: 24px 16px; } }
@media (min-width: 900px) { :root { --fs-h1: 30px; --fs-display: 40px; --fs-h2: 22px; } }
@media (prefers-reduced-motion: reduce) { :root { --t-fast: 0ms; --t: 0ms; } * { scroll-behavior: auto !important; } }

/* ---------------------------------------------------------------- 기본 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font: 400 var(--fs-body)/var(--lh) var(--f-sans); word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--c-link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 var(--s-3); line-height: var(--lh-tight); color: var(--c-text); }
h1 { font: 700 var(--fs-h1)/var(--lh-tight) var(--f-sans); letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: var(--fs-title); font-weight: 700; }
p { margin: 0 0 var(--s-4); }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
html:not(.js) .step-nav, html:not(.js) .wizard-steps { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s-4); top: -60px; background: var(--c-primary); color: var(--c-on-primary); padding: var(--s-2) var(--s-4); z-index: 100; border-radius: var(--r-ctl); }
.skip:focus { top: var(--s-2); }
.wrap { max-width: var(--w-page); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--c-text-2); }
.small { font-size: var(--fs-sm); } .tiny { font-size: var(--fs-cap); color: var(--c-text-3); }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; }

.grid2 { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1fr; } }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-text); flex: none; }
.seal { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--c-seal); color: #fff; border-radius: 3px;
  font: 700 var(--fs-title)/1 var(--f-sans); box-shadow: inset 0 0 0 2px var(--c-seal), inset 0 0 0 3px rgba(255,255,255,.55); }
.brand-name { font-weight: 750; font-size: var(--fs-body); letter-spacing: -.02em; }

.badge-n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: var(--r-pill); background: var(--c-seal); color: #fff; font-size: var(--fs-cap); line-height: 18px; text-align: center; }

/* 모바일 하단 탭바 */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: var(--c-bg); border-top: var(--b); display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 0 7px; color: var(--c-text-3); text-decoration: none; font-size: var(--fs-cap); font-weight: 600; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--c-text); }
body.has-tabbar { padding-bottom: 64px; }
@media (min-width: 900px) { .tabbar { display: none; } body.has-tabbar { padding-bottom: 0; } }

main { padding: var(--s-5) 0 var(--s-8); min-height: 50vh; }

/* ---------------------------------------------------------------- 버튼·폼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 44px; padding: 0 18px; border-radius: var(--r-ctl);
  border: 1px solid var(--c-line-2); background: var(--c-bg); color: var(--c-text); font: 600 var(--fs-body)/1.2 var(--f-sans); text-decoration: none; cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast); }
.btn:hover { border-color: var(--c-text-3); background: var(--c-surface); }
.btn.primary { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.btn.primary:hover { background: #2C2F36; }
.btn.danger { color: var(--c-err); border-color: #E6B8B4; }
.btn.ghost { border-color: transparent; background: none; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: var(--fs-sm); }
.btn.block { width: 100%; }
.btn svg, summary svg { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.btn[disabled] { opacity: .55; cursor: progress; }
form.inline { display: inline; }
label { display: block; font-weight: 600; font-size: var(--fs-sm); margin: 0 0 6px; color: var(--c-text); }
.field { margin-bottom: var(--s-4); }
.field .hint, .hint { font-size: var(--fs-sm); color: var(--c-text-3); margin-top: 6px; }
input:not([type]), input[type=time], input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--c-line-2); border-radius: var(--r-ctl); padding: 9px 12px; font: inherit; font-size: var(--fs-body); background: var(--c-bg); color: var(--c-text); }
input[type=file] { font: inherit; font-size: var(--fs-sm); max-width: 100%; }
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
textarea.manuscript { min-height: 460px; font-family: var(--f-serif); font-size: var(--fs-title); line-height: 1.95; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 0; border-color: var(--c-focus); }
.check { display: flex; gap: var(--s-2); align-items: flex-start; font-weight: 500; }
.check input { margin-top: 5px; width: 17px; height: 17px; flex: none; }
.auth { max-width: 440px; margin: var(--s-5) auto; }
.choice { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.step h2[tabindex="-1"]:focus { outline: none; box-shadow: inset 3px 0 0 var(--c-focus); padding-left: 10px; }
.choice label { margin: 0; display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--c-line-2); border-radius: var(--r-ctl); font-weight: 600; cursor: pointer; }
.choice label small { display: block; font-weight: 400; color: var(--c-text-3); font-size: var(--fs-cap); }
.choice input { margin-top: 3px; }
.choice label:has(input:checked) { border-color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-text); }

/* ---------------------------------------------------------------- 알림·배지 */
.flash { padding: 12px 14px; border-radius: var(--r-ctl); margin-bottom: var(--s-4); font-size: var(--fs-sm); font-weight: 500; border-left: 3px solid; }
.flash.ok { background: var(--c-ok-bg); color: var(--c-ok); }
.flash.error { background: var(--c-err-bg); color: var(--c-err); }
.flash.info { background: var(--c-surface); color: var(--c-text-2); border-left-color: var(--c-line-2); }
.flash a { color: inherit; font-weight: 700; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-cap); font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 4px; background: var(--c-surface); color: var(--c-text-2); white-space: nowrap; }
.tag.free { background: var(--c-ok-bg); color: var(--c-ok); }
.tag.paid { background: var(--c-warn-bg); color: var(--c-warn); }
.tag.own { background: #E3EAFB; color: var(--c-link); }
.tag.member { background: var(--c-member-bg); color: var(--c-member); }
.tag.wait:not(.free) { background: transparent; color: var(--c-ok); box-shadow: inset 0 0 0 1px currentColor; }
.tag.bad { background: var(--c-err-bg); color: var(--c-err); }
.tag.draft { background: var(--c-warn-bg); color: var(--c-warn); }
.tag.done { background: var(--c-ok-bg); color: var(--c-ok); }
.tag.ai { background: var(--c-ai-bg); color: var(--c-ai); }

@media (prefers-reduced-motion: no-preference) {

  @keyframes ink-in { from { color: transparent; } to { color: var(--c-text); } }

}

/* 장르 바로가기 (데이터 기반 { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: var(--b); border-left: var(--b); margin: 0; }

/* ---------------------------------------------------------------- 선반·그리드 */
.shelf { margin-top: var(--s-7); }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.shelf-head h2 { margin: 0; }
.shelf-head p { margin: 4px 0 0; font-size: var(--fs-sm); color: var(--c-text-3); }
.shelf-head a { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.shelf-track { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: var(--card-gap); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-2);
  margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: 0 var(--gutter); scrollbar-width: thin; }
.shelf-track > * { scroll-snap-align: start; }
@media (min-width: 600px) { .shelf-track { grid-auto-columns: 28%; } }
@media (min-width: 900px) { .shelf-track { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; margin: 0; padding: 0; } }
.grid-works { display: grid; gap: var(--card-gap); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .grid-works { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid-works { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1200px) { .grid-works { grid-template-columns: repeat(6, 1fr); } }

/* ---------------------------------------------------------------- 작품 카드 */
.card { display: block; text-decoration: none; color: var(--c-text); min-width: 0; }
.card .cv { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-cover); overflow: hidden; background: var(--c-surface); box-shadow: var(--shadow-cover); outline: 1px solid rgba(23,25,30,.06); outline-offset: -1px; }
.card .cv img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .cv { outline: 2px solid var(--c-text); outline-offset: 2px; }
.card .t { font-weight: 650; font-size: var(--fs-body); line-height: 1.4; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.card .a { font-size: var(--fs-sm); color: var(--c-text-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .m { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.card .u { font-size: var(--fs-cap); color: var(--c-text-3); margin-top: 6px; }
.cv .rank { position: absolute; left: 0; top: 0; background: var(--c-text); color: #fff; font: 700 var(--fs-body)/1 var(--f-sans); padding: 7px 9px; border-bottom-right-radius: var(--r-cover); }

/* 활자 표지 — 표지 이미지가 없을 때 */
.tcover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 12% 11%; background: var(--tc-bg, #E9EBEF); color: var(--tc-fg, #17191E); }
.tcover b { font: 700 clamp(15px, 4.4cqw, 22px)/1.3 var(--f-sans); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.card .cv { container-type: inline-size; }
.tcover b { font-size: 11cqw; }
.tcover i { font-style: normal; font-size: 7cqw; opacity: .8; }
.tcover::after { content: ""; position: absolute; right: 11%; bottom: 11%; width: 12cqw; height: 12cqw; background: var(--c-seal); border-radius: 2px; }
.tc-webnovel { --tc-bg: #E6EBF5; } .tc-webtoon { --tc-bg: #F3E8DC; } .tc-comic { --tc-bg: #E9F1E4; } .tc-essay { --tc-bg: #F1EEE6; }
.tc-short { --tc-bg: #E8EEF0; } .tc-novel { --tc-bg: #E4E6EE; } .tc-poetry { --tc-bg: #F2E9EC; } .tc-illust { --tc-bg: #EAE6F3; } .tc-etc { --tc-bg: #ECEDEF; }
/* 가로 카드 (탐색·검색) */
.list-works { display: grid; gap: 0; border-top: var(--b); }
.hcard { display: grid; grid-template-columns: 84px 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: var(--b); text-decoration: none; color: var(--c-text); }
@media (min-width: 600px) { .hcard { grid-template-columns: 104px 1fr; } }
.hcard .cv { aspect-ratio: 3 / 4; border-radius: var(--r-cover); overflow: hidden; position: relative; box-shadow: var(--shadow-cover); container-type: inline-size; background: var(--c-surface); }
.hcard .cv img { width: 100%; height: 100%; object-fit: cover; }
.hcard .t { font-weight: 700; font-size: var(--fs-body); line-height: 1.4; }
.hcard:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.hcard .a { font-size: var(--fs-sm); color: var(--c-text-2); margin-top: 2px; }
.hcard .d { font-size: var(--fs-sm); color: var(--c-text-2); margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hcard .m { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; align-items: center; }

/* ---------------------------------------------------------------- 빈 상태 */
.empty { border: 1px dashed var(--c-line-2); border-radius: var(--r-panel); padding: var(--s-6) var(--s-5); text-align: left; }
.empty h2 { font-family: var(--f-sans); font-size: var(--fs-h2); }
.empty p { color: var(--c-text-2); max-width: 36em; }
.empty .steps { list-style: none; counter-reset: s; margin: var(--s-4) 0; padding: 0; display: grid; gap: var(--s-2); }
.empty .steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: var(--s-2); font-size: var(--fs-sm); color: var(--c-text-2); }
.empty .steps li::before { content: counter(s); width: 24px; height: 24px; border: 1px solid rgba(194,54,43,.5); color: var(--c-seal); display: grid; place-items: center; font: 700 var(--fs-sm)/1 var(--f-sans); }

/* ---------------------------------------------------------------- 탐색·검색 */
.page-head { padding: var(--s-2) 0 var(--s-5); }
.page-head p { color: var(--c-text-2); margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; padding: var(--s-3) 0; border-top: var(--b); border-bottom: var(--b); margin-bottom: var(--s-4); }
.filters fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.filters .more-filters { order: 3; flex-basis: 100%; display: flex; flex-direction: column; gap: var(--s-2); }
.filters .more-filters summary { cursor: pointer; font-size: var(--fs-sm); font-weight: 650; color: var(--c-text-2); width: max-content; padding: 4px 0; }
.filters .more-filters[open] summary { margin-bottom: 2px; }
.filters legend { float: left; font-size: var(--fs-sm); color: var(--c-text-3); margin-right: 6px; font-weight: 600; }
@media (max-width: 899px) {
  .filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
  .filters fieldset { min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .filters fieldset::-webkit-scrollbar { display: none; }
  .filters legend { float: none; flex: none; padding: 0; min-width: 30px; }
  .filters .chip { flex: none; }
}
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--c-line-2); color: var(--c-text-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; background: var(--c-bg); }
.chip:hover { border-color: var(--c-text-3); color: var(--c-text); }
.chip[aria-current="true"] { background: var(--c-text); border-color: var(--c-text); color: #fff; }
.result-count { font-size: var(--fs-sm); color: var(--c-text-2); margin-bottom: var(--s-3); }
.pager { display: flex; gap: var(--s-2); justify-content: center; margin-top: var(--s-6); }

/* ---------------------------------------------------------------- 작품 상세 */
.work-hero { display: grid; gap: var(--s-5); grid-template-columns: 1fr; padding-bottom: var(--s-6); border-bottom: var(--b); }
@media (min-width: 600px) { .work-hero { grid-template-columns: 200px 1fr; } }
@media (min-width: 900px) { .work-hero { grid-template-columns: 240px 1fr 300px; } }
.work-hero .cv { aspect-ratio: 3 / 4; max-width: 240px; border-radius: var(--r-cover); overflow: hidden; position: relative; box-shadow: var(--shadow-cover); container-type: inline-size; background: var(--c-surface); }
.work-hero .cv img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 599px) { .work-hero { gap: var(--s-4); } .work-hero .cv { max-width: 128px; } .buybox.is-free { padding: var(--s-3) var(--s-4); } }
.work-title { font: 700 clamp(26px, 5vw, 34px)/1.25 var(--f-sans); margin: 0 0 var(--s-2); }
.byline { font-size: var(--fs-body); margin-bottom: var(--s-3); }
.byline a { color: var(--c-text); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--c-seal); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-4); }
.synopsis { color: var(--c-text-2); max-width: 40em; white-space: pre-line; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: var(--s-3) 0; }
.tags a { font-size: var(--fs-sm); color: var(--c-text-2); text-decoration: none; }
.tags a:hover { color: var(--c-link); text-decoration: underline; }
.buybox { border: 1px solid var(--c-line-2); border-radius: var(--r-panel); padding: var(--s-4); align-self: start; }
.buybox h2 { font-size: var(--fs-body); margin-bottom: var(--s-2); }
.buybox dl { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--s-3); margin: 0 0 var(--s-4); font-size: var(--fs-sm); }
.buybox dt { color: var(--c-text-3); } .buybox dd { margin: 0; font-weight: 600; }
.buybox .btn + .btn { margin-top: var(--s-2); }
.buybox.is-free h2 { margin: 0; }
.buybox .free-line { margin: var(--s-1) 0 0; font-size: var(--fs-sm); color: var(--c-text-2); }
.action-row { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-4); }
.ep-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin: var(--s-6) 0 var(--s-2); flex-wrap: wrap; }
.ep-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--c-text); }
.ep-list li { display: grid; grid-template-columns: auto 52px 1fr auto; gap: var(--s-3); align-items: center; padding: 14px 4px; border-bottom: var(--b); }
.ep-list .no { font: 600 var(--fs-sm)/1 var(--f-sans); color: var(--c-text-3); font-variant-numeric: tabular-nums; }
.ep-list a.et { color: var(--c-text); text-decoration: none; font-weight: 600; min-width: 0; }
.ep-list a.et:hover { text-decoration: underline; }
.ep-list .dt { display: block; font-size: var(--fs-cap); color: var(--c-text-3); font-weight: 400; margin-top: 2px; }
.ep-list li.read a.et { color: var(--c-text-3); }
.ep-list input[type=checkbox] { width: 18px; height: 18px; }
.ep-list li.nochk { grid-template-columns: 52px 1fr auto; }

/* ---------------------------------------------------------------- 패널(스튜디오·운영·계정) */
.panel { background: var(--c-bg); border: var(--b); border-radius: var(--r-panel); padding: var(--s-5); }
.panel + .panel { margin-top: var(--s-4); }
.panel h2 { font-size: var(--fs-title); }
.section { margin: var(--s-6) 0 var(--s-3); }
.kpis { display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); background: var(--c-line); border: var(--b); border-radius: var(--r-panel); overflow: hidden; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--c-bg); padding: var(--s-4); }
.kpi .v { font-size: var(--fs-h2); font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi .l { font-size: var(--fs-sm); color: var(--c-text-2); }
.kpi .v.zero { color: var(--c-text-3); }
.bars { display: flex; gap: 3px; align-items: flex-end; height: 140px; padding-top: var(--s-2); border-bottom: var(--b); }
.bars span { flex: 1; background: var(--c-text); border-radius: 2px 2px 0 0; min-height: 2px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { text-align: left; padding: 10px 8px; border-bottom: var(--b); vertical-align: top; }
th { color: var(--c-text-2); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; background: var(--c-surface); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.sum td { font-weight: 700; border-top: 2px solid var(--c-text); }
.calc { display: grid; grid-template-columns: 1fr auto; gap: 4px var(--s-4); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.calc dt { color: var(--c-text-2); } .calc dd { margin: 0; text-align: right; }
.calc .tot { font-weight: 750; border-top: 1px solid var(--c-text); padding-top: 6px; }

/* 스튜디오·운영 셸 */
.shell { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 900px) { .shell { grid-template-columns: 220px 1fr; } }
.side { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.side a { flex: none; text-decoration: none; padding: 9px 12px; border-radius: var(--r-ctl); white-space: nowrap; font-size: var(--fs-sm); font-weight: 600; color: var(--c-text-2); }
.side a.on, .side a:hover { background: var(--c-surface); color: var(--c-text); }
.side .label { display: none; }
.side .label.grp { display: block; flex: none; align-self: center; width: 1px; height: 18px; margin: 0 6px; overflow: hidden; color: transparent; background: var(--c-line); }
.side .label.grp:nth-child(2) { display: none; }
@media (min-width: 900px) {
  .side { flex-direction: column; margin: 0; padding: var(--s-3); background: var(--c-ink-surface); border-radius: var(--r-panel); align-self: start; position: sticky; top: 120px; }
  .side a { color: #C9CCD4; } .side a.on, .side a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .side a.on { box-shadow: inset 3px 0 0 var(--c-seal); }
  .side .label { display: block; font-size: var(--fs-cap); color: #8F94A0; padding: 14px 12px 4px; font-weight: 600; }
  .side .label:first-child { padding-top: 4px; color: #fff; font-size: var(--fs-sm); }
  .side .label.grp, .side .label.grp:nth-child(2) { display: block; width: auto; height: auto; margin: 0; overflow: visible; background: none; color: #8F94A0; }
}
.studio-mark { display: inline-flex; gap: 8px; align-items: center; font-size: var(--fs-sm); color: var(--c-text-3); margin-bottom: var(--s-2); }

/* 단계형 등록 */
.wizard-steps { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: flex; gap: 4px; overflow-x: auto; counter-reset: st; scrollbar-width: none; }
.wizard-steps li { counter-increment: st; flex: none; }
.wizard-steps button { font: 600 var(--fs-sm)/1 var(--f-sans); color: var(--c-text-3); background: none; border: 0; border-bottom: 2px solid var(--c-line); padding: 10px 8px; cursor: pointer; }
.wizard-steps button::before { content: counter(st) ". "; }
.wizard-steps button[aria-current="step"] { color: var(--c-text); border-bottom-color: var(--c-text); }
.wizard-steps button.done { color: var(--c-ok); border-bottom-color: var(--c-ok); }
.js .step[hidden] { display: none; }
.step > h2 { font-family: var(--f-sans); font-size: var(--fs-h2); }
.step .lead { color: var(--c-text-2); }
.step-nav { display: flex; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-5); padding-top: var(--s-4); border-top: var(--b); }
.draft-note { font-size: var(--fs-sm); color: var(--c-text-3); }

/* 정책 */
.policy-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--c-text); }
.policy-list li { padding: var(--s-4) 0; border-bottom: var(--b); }
.policy-list h3, .policy-list .pol-h { font-size: var(--fs-title); display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.policy-list p { color: var(--c-text-2); margin: 0; white-space: pre-line; }

/* 작가 온보딩 */
.ob-hero { padding: var(--s-5) 0 var(--s-6); border-bottom: var(--b); }
.ob-hero h1 { font-size: var(--fs-display); max-width: 15em; }
.ob-hero p { font-size: var(--fs-title); color: var(--c-text-2); max-width: 32em; }
.ob-grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; margin-top: var(--s-6); }
@media (min-width: 900px) { .ob-grid { grid-template-columns: repeat(3, 1fr); } }
.ob-grid h3 { border-top: 2px solid var(--c-text); padding-top: var(--s-3); }
.ob-grid p { color: var(--c-text-2); font-size: var(--fs-sm); }
.formats { display: flex; flex-wrap: wrap; gap: 6px; }
.ob-steps { list-style: none; counter-reset: s; padding: 0; margin: var(--s-4) 0; display: grid; gap: 0; border-top: var(--b); }
.ob-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; padding: var(--s-3) 0; border-bottom: var(--b); }
.ob-steps li::before { content: counter(s); width: 30px; height: 30px; border: 1px solid rgba(194,54,43,.5); color: var(--c-seal); display: grid; place-items: center; font: 700 var(--fs-body)/1 var(--f-sans); }
.ob-steps b { display: block; } .ob-steps span { font-size: var(--fs-sm); color: var(--c-text-2); }

/* 작가 홈 */
.creator-head { display: flex; gap: var(--s-4); align-items: flex-start; flex-wrap: wrap; justify-content: space-between; padding-bottom: var(--s-5); border-bottom: var(--b); }
.creator-head h1 { margin-bottom: 4px; }

/* 기타 */
.hero { display: grid; gap: 18px; grid-template-columns: 120px 1fr; }
.mockpg { max-width: 440px; margin: var(--s-5) auto; border: 2px dashed var(--c-warn); }
.chapters { list-style: none; padding: 0; margin: 0; }
.chapters li { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: var(--b); }
.chapters li .seq { color: var(--c-text-3); width: 38px; flex: none; }
.chapters li a.ct { flex: 1; min-width: 0; color: var(--c-text); text-decoration: none; }
.works { display: grid; gap: var(--card-gap); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .works { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .works { grid-template-columns: repeat(6, 1fr); } }
code { font-size: .92em; background: var(--c-surface); padding: 1px 5px; border-radius: 4px; }
.share-ok { color: var(--c-ok); font-size: var(--fs-sm); }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }

/* =====================================================================
   AI 작가 운영센터 (/admin/ai) — 같은 토큰을 쓰고, 정보 밀도만 조금 높인다
   ===================================================================== */
.side .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--c-seal); color: #fff; font-size: var(--fs-cap); font-weight: 700; }

.panel .ph { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); margin-bottom: var(--s-3); }
.panel .ph h2 { margin: 0; }
.table-wrap { overflow-x: auto; }
.table-wrap table td, .table-wrap table th { white-space: nowrap; }
.table-wrap table td.wrap { white-space: normal; min-width: 14em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.bar { display: grid; grid-template-columns: minmax(6em, 10em) 1fr auto; gap: var(--s-2); align-items: center; font-size: var(--fs-sm); }

.bar .fill { display: block; height: 100%; background: var(--c-text); border-radius: 5px; min-width: 2px; }
.bar .fill.ai { background: var(--c-ai); }

.bar .val { font-variant-numeric: tabular-nums; color: var(--c-text-2); }
.cols { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: var(--s-2); border-bottom: 1px solid var(--c-line-2); }
.cols .c { flex: 1; background: var(--c-text); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.cols .c.zero { background: var(--c-line); }

fieldset.box { border: var(--b); border-radius: var(--r-panel); padding: var(--s-4); margin: 0 0 var(--s-4); min-width: 0; }
fieldset.box legend { padding: 0 6px; font-weight: 700; font-size: var(--fs-sm); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.check input { width: auto; min-height: 0; }

/* 넓은 표가 있어도 본문 칸이 화면보다 넓어지지 않게 (표는 .table-wrap 안에서 가로 스크롤) */
.shell > section { min-width: 0; }
.table-wrap { max-width: 100%; }
.otp-qr { width: 220px; max-width: 100%; margin: var(--s-3) auto var(--s-4); background: #fff; border: var(--b); border-radius: var(--r-ctl); padding: 6px; }
.otp-qr svg { display: block; width: 100%; height: auto; }

/* =====================================================================
   2026-11 리디자인 — 3단 피드형 (왼쪽 메뉴 · 가운데 피드 · 오른쪽 안내) + 핑크 브랜드
   위 토큰을 덮어쓴다. 스튜디오·운영 화면도 같은 토큰을 쓴다.
   ===================================================================== */
:root {
  --c-accent: #D1336B;        /* 버튼 바탕 (흰 글자 4.8:1) */
  --c-accent-ink: #B02556;    /* 흰 바탕·연분홍 위 글자 (5.6:1) */
  --c-accent-soft: #FFEAF1;
  --c-accent-line: #F7C6D7;
  --c-glow: #FF9EC0;          /* 장식용 밝은 빛 (글자 없음) */
  --c-deep: #8E1C45;          /* 장식용 짙은 끝 */
  --c-text: #1C1A1D; --c-text-2: #554F55; --c-text-3: #756E74;
  --c-surface: #F6F4F5; --c-line: #ECE8EA; --c-line-2: #D9D3D7;
  --c-seal: var(--c-accent); --c-seal-soft: var(--c-accent-soft);
  --c-primary: var(--c-accent); --c-on-primary: #FFFFFF;
  --c-link: #B02556; --c-focus: #B02556;
  --f-sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Hiragino Sans", "Yu Gothic UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK KR", sans-serif;
  --r-ctl: 10px; --r-panel: 14px; --r-cover: 8px;
  --top-h: 60px; --side-w: 240px; --rail-w: 300px;
  --shadow-cover: 0 1px 2px rgba(28, 26, 29, .06), 0 8px 18px -10px rgba(28, 26, 29, .28);
}
:lang(ja), :lang(zh-Hans) { word-break: normal; line-break: strict; }
:lang(en) { word-break: normal; }
.btn.primary:hover { background: var(--c-accent-ink); border-color: var(--c-accent-ink); }
.chip[aria-current="true"] { background: var(--c-text); border-color: var(--c-text); }
a { color: var(--c-link); }

/* ---- 상단 막대 */
body.site { background: var(--c-bg); }
.top { position: sticky; top: 0; z-index: 50; height: var(--top-h); display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--gutter);
  background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--c-line); }
.top-menu { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: -8px; border: 0; background: none; color: var(--c-text); border-radius: var(--r-ctl); cursor: pointer; }
.top-menu svg { width: 22px; height: 22px; }
.top-menu:hover { background: var(--c-surface); }
.brand { gap: 9px; }
.brand .mark { position: relative; width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(140deg, var(--c-glow) 0%, var(--c-accent) 62%, var(--c-deep) 100%); flex: none; }
.brand .mark::after { content: ""; position: absolute; left: 8px; top: 7px; width: 12px; height: 14px; border: 2.4px solid #fff; border-left-width: 0; border-radius: 0 7px 7px 0; }
.brand .mark::before { content: ""; position: absolute; left: 7px; top: 6px; width: 2.6px; height: 17px; background: #fff; border-radius: 2px; }
.brand-name { font-weight: 800; font-size: var(--fs-title); letter-spacing: -.03em; }
.top-search { flex: 1; max-width: 460px; margin-left: var(--s-5); position: relative; display: none; }
.top-search input[type=search] { width: 100%; height: 40px; min-height: 40px; border: 1px solid transparent; border-radius: var(--r-pill); background: var(--c-surface); padding: 0 16px 0 40px; font-size: var(--fs-sm); }
.top-search input[type=search]:focus { background: var(--c-bg); border-color: var(--c-line-2); }
.top-search svg { position: absolute; left: 14px; top: 11px; width: 18px; height: 18px; color: var(--c-text-3); pointer-events: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.top-icon { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill); color: var(--c-text); }
.top-icon:hover { background: var(--c-surface); }
.top-icon svg { width: 21px; height: 21px; }
.top-icon .dot { position: absolute; right: 9px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 2px #fff; }
.top .btn { white-space: nowrap; }
.top .btn.sm { min-height: 36px; border-radius: var(--r-pill); padding: 0 14px; }
.top .btn.ghost { color: var(--c-text); }
.top-cta { border-color: var(--c-line-2); }
.only-d { display: none !important; }
@media (min-width: 900px) { .top-search { display: block; } .only-m { display: none !important; } .only-d { display: inline-flex !important; } }

/* 언어 고르기 (JS 없이 details) */
@media (max-width: 599px) { .top .btn.ghost { display: none; } .brand-name { font-size: var(--fs-body); } .top { gap: var(--s-2); }
  .top .lang-menu summary span { display: none; } .top .lang-menu summary { width: 40px; justify-content: center; padding: 0; } }

/* ---- 몸통: 왼쪽 메뉴 + 본문 */
.app-shell { display: block; }
.app-side { position: fixed; z-index: 70; top: 0; bottom: 0; left: 0; width: min(84vw, 300px); background: var(--c-bg); overflow-y: auto; padding: var(--s-4) var(--s-3) var(--s-6);
  transform: translateX(-102%); transition: transform var(--t); box-shadow: var(--shadow-pop); visibility: hidden; }
body.side-open .app-side { transform: none; visibility: visible; }
.side-scrim { position: fixed; inset: 0; z-index: 65; background: rgba(28, 26, 29, .38); }
body.side-open { overflow: hidden; }
@media (min-width: 1100px) {
  body:not(.workspace) .top-menu { display: none; }
  body:not(.workspace) .app-shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
  body:not(.workspace) .app-side { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); width: auto; transform: none; visibility: visible; box-shadow: none; border-right: 1px solid var(--c-line); padding-top: var(--s-4); z-index: 1; }
  body:not(.workspace) .side-scrim { display: none !important; }
  body:not(.workspace).side-open { overflow: auto; }
}
.side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-ctl); color: var(--c-text); text-decoration: none; font-weight: 600; font-size: var(--fs-body); }
.side-nav a svg { width: 21px; height: 21px; color: var(--c-text-2); }
.side-nav a:hover { background: var(--c-surface); }
.side-nav a[aria-current="page"] { background: var(--c-surface); font-weight: 750; }
.side-nav a[aria-current="page"] svg { color: var(--c-accent); }
.side-nav .badge-n { margin-left: auto; background: var(--c-accent); }
.side-promo { display: block; margin: var(--s-4) 4px; padding: 14px 16px; border-radius: 14px; text-decoration: none; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, var(--c-glow) 0%, transparent 55%), linear-gradient(135deg, var(--c-accent), var(--c-deep)); }
.side-promo, .side-legal, .side-links a { white-space: normal; }
.side-promo b { display: block; font-size: var(--fs-body); }
.side-promo span { display: block; font-size: var(--fs-cap); opacity: .92; margin-top: 2px; }
.side-promo:hover { filter: brightness(1.05); }
.side-links { list-style: none; margin: var(--s-4) 0 0; padding: var(--s-3) 0 0; border-top: 1px solid var(--c-line); display: grid; gap: 0; }
.side-links a { display: block; padding: 7px 12px; color: var(--c-text-2); text-decoration: none; font-size: var(--fs-sm); border-radius: 8px; }
.side-links a:hover { background: var(--c-surface); color: var(--c-text); }
.side-links a[aria-current="page"] { color: var(--c-text); font-weight: 700; }

.side-logout { margin: var(--s-3) 4px 0; }
.side-legal { margin: var(--s-4) 12px 0; font-size: var(--fs-cap); line-height: 1.55; color: var(--c-text-3); }

.main { min-width: 0; padding: var(--s-5) var(--gutter) var(--s-8); max-width: 1080px; }
.main.is-wide { max-width: 1320px; }
body.workspace .main { margin: 0 auto; }
.shell .side { top: calc(var(--top-h) + var(--s-4)); }
@media (min-width: 1100px) { .main { padding: var(--s-5) var(--s-6) var(--s-8); } }
main { min-height: 60vh; }
.tabbar a[aria-current="page"] { color: var(--c-accent-ink); }
@media (min-width: 1100px) { .tabbar { display: none; } body.has-tabbar { padding-bottom: 0; } }
@media (max-width: 1099px) { .tabbar { display: grid; } body.has-tabbar { padding-bottom: 64px; } }

/* ---- 홈: 피드 + 오른쪽 칸 */
.home { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1300px) { .home { grid-template-columns: minmax(0, 620px) var(--rail-w); justify-content: center; gap: 56px; } }
.feed { max-width: 620px; width: 100%; margin: 0 auto; }
.feed-tabs { display: flex; gap: var(--s-5); border-bottom: 1px solid var(--c-line); margin-bottom: var(--s-2); position: sticky; top: var(--top-h); background: rgba(255,255,255,.97); z-index: 5; }
.feed-tabs a { padding: 12px 0 11px; color: var(--c-text-3); text-decoration: none; font-weight: 700; font-size: var(--fs-body); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.feed-tabs a[aria-current="page"] { color: var(--c-text); border-bottom-color: var(--c-text); }
.post { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: var(--s-5) 0; border-bottom: 1px solid var(--c-line); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: var(--fs-body); color: var(--c-accent-ink); background: var(--c-accent-soft); text-decoration: none; overflow: hidden; }
.avatar.ai { color: var(--c-ai); background: var(--c-ai-bg); }
.post-head { display: flex; align-items: flex-start; gap: var(--s-2); }
.post-who { min-width: 0; flex: 1; line-height: 1.35; }
.post-who a.nm { color: var(--c-text); font-weight: 700; text-decoration: none; font-size: var(--fs-sm); }
.post-who a.nm:hover { text-decoration: underline; }
.post-who .sub { display: block; font-size: var(--fs-cap); color: var(--c-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-who .sub a { color: inherit; text-decoration: none; }
.post-who .sub a:hover { color: var(--c-text-2); text-decoration: underline; }
.post-body { display: block; text-decoration: none; color: var(--c-text); margin-top: 8px; }
.post-body h2 { font-size: var(--fs-h2); font-weight: 750; line-height: 1.4; margin: 0 0 4px; letter-spacing: -.015em; }
.post-body:hover h2 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body .work { font-size: var(--fs-sm); font-weight: 650; color: var(--c-text-2); margin: 0 0 6px; }
.post-body p.ex { color: var(--c-text-2); font-size: var(--fs-body); line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-media { margin-top: var(--s-3); display: block; width: min(100%, 260px); aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; position: relative; background: var(--c-surface); container-type: inline-size; outline: 1px solid rgba(28,26,29,.06); outline-offset: -1px; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.post-tags a, .post-tags span { font-size: var(--fs-cap); padding: 4px 9px; border-radius: var(--r-pill); background: var(--c-surface); color: var(--c-text-2); text-decoration: none; }
.post-tags a:hover { background: var(--c-line); }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; font-size: var(--fs-sm); color: var(--c-text-3); }
.post-meta span { display: inline-flex; align-items: center; gap: 4px; }
.post-meta svg { width: 16px; height: 16px; }
.post-meta .price { font-weight: 700; color: var(--c-text-2); }
.post-meta .price.free { color: #17703F; }
.post-meta .price.locked { color: var(--c-accent-ink); }
.feed-more { display: flex; justify-content: center; padding: var(--s-5) 0; }
.feed-empty { padding: var(--s-7) 0; text-align: center; color: var(--c-text-2); }
.feed-empty h2 { font-size: var(--fs-h2); }

.rail { display: grid; gap: var(--s-5); align-content: start; }
@media (min-width: 1300px) { .rail { position: sticky; top: calc(var(--top-h) + var(--s-5)); } }
@media (max-width: 1299px) { .rail { max-width: 620px; width: 100%; margin: 0 auto; } }
.rail-intro { border-radius: 16px; padding: 22px 20px; color: #fff; background: radial-gradient(110% 120% at 100% 0%, var(--c-glow) 0%, transparent 58%), linear-gradient(150deg, var(--c-accent) 0%, var(--c-deep) 100%); }
.rail-intro h2 { color: #fff; font-size: var(--fs-h2); line-height: 1.4; margin: 0 0 6px; }
.rail-intro p { margin: 0 0 14px; font-size: var(--fs-sm); opacity: .93; }
.rail-intro .btn { min-height: 36px; border-radius: var(--r-pill); background: #fff; color: var(--c-accent-ink); border-color: #fff; font-size: var(--fs-sm); }
.rail-intro .btn.line { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.rail-box h2 { font-size: var(--fs-body); display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s-2); }
.rail-box h2 a { font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { border-top: 1px solid var(--c-line); }
.rank-list li:first-child { border-top: 0; }
.rank-list a { display: grid; grid-template-columns: 22px 46px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; color: var(--c-text); text-decoration: none; }
.rank-list .n { font-weight: 800; color: var(--c-accent-ink); font-size: var(--fs-body); text-align: center; font-variant-numeric: tabular-nums; }
.rank-list .cv { aspect-ratio: 3/4; border-radius: 6px; overflow: hidden; position: relative; background: var(--c-surface); container-type: inline-size; }
.rank-list .cv img { width: 100%; height: 100%; object-fit: cover; }
.rank-list b { display: block; font-size: var(--fs-sm); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list small { display: block; font-size: var(--fs-cap); color: var(--c-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list a:hover b { text-decoration: underline; }
.rail-notices { list-style: none; margin: 0; padding: 0; }
.rail-notices a { display: block; padding: 8px 0; border-top: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; font-size: var(--fs-sm); }
.rail-notices li:first-child a { border-top: 0; }
.rail-notices small { display: block; color: var(--c-text-3); font-size: var(--fs-cap); }
.genre-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.genre-pills a { padding: 7px 12px; border-radius: var(--r-pill); border: 1px solid var(--c-line-2); color: var(--c-text-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }
.genre-pills a:hover { border-color: var(--c-accent-line); background: var(--c-accent-soft); color: var(--c-accent-ink); }
.genre-pills a[aria-current="page"] { background: var(--c-text); border-color: var(--c-text); color: #fff; }
.genre-pills small { font-weight: 500; color: inherit; opacity: .7; margin-left: 3px; }

/* ---- 공통 다듬기 (작품·탐색·계정) */
.page-head h1 { font: 800 clamp(24px, 3.2vw, 30px)/1.3 var(--f-sans); letter-spacing: -.025em; }
.work-title { font: 800 clamp(24px, 4vw, 32px)/1.3 var(--f-sans); letter-spacing: -.025em; }
.byline a { border-bottom-color: var(--c-accent); }
.card .cv, .hcard .cv { border-radius: var(--r-cover); }
.card:hover .cv { outline: 2px solid var(--c-accent); }
.cv .rank { background: var(--c-accent); font-family: var(--f-sans); font-weight: 800; }
.tcover { --tc-bg: #F6EDF1; }
.tcover b { font-family: var(--f-sans); font-weight: 800; letter-spacing: -.02em; }
.tc-webnovel { --tc-bg: #F3E9F6; } .tc-webtoon { --tc-bg: #FCE8EE; } .tc-comic { --tc-bg: #EAF2EC; } .tc-essay { --tc-bg: #F5EFE6; }
.tc-short { --tc-bg: #E9EFF4; } .tc-novel { --tc-bg: #EDEAF5; } .tc-poetry { --tc-bg: #FBEFF2; } .tc-illust { --tc-bg: #EFEAF7; } .tc-etc { --tc-bg: #F0EEF0; }
.tcover::after { border-radius: 50%; }
.ep-list { border-top: 1px solid var(--c-text); }
.buybox, .panel { border-radius: var(--r-panel); }
.flash { border-radius: var(--r-ctl); }
.flash.info { background: var(--c-surface); }

.orig { display: block; font-size: var(--fs-sm); color: var(--c-text-3); font-weight: 500; margin-top: 2px; }
.share-ok { font-size: var(--fs-sm); color: var(--c-ok); }
.ep-list .no { font-family: var(--f-sans); font-weight: 650; font-size: var(--fs-sm); }
/* 왼쪽 메뉴: 스크롤 막대 없이 (낮은 화면에서는 휠로만 움직임), 간격 줄임 */
.app-side { overflow-x: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.app-side::-webkit-scrollbar { display: none; }
.side-nav a { padding: 8px 12px; }
.side-promo { margin: var(--s-3) 4px; padding: 12px 14px; }
.side-links { margin-top: var(--s-3); padding-top: var(--s-2); }
.side-links a { padding: 5px 12px; }

.side-legal { margin-top: var(--s-3); }
@media (min-width: 1100px) and (max-height: 760px) { .side-legal, .side-promo span { display: none; } }

/* 운영·스튜디오·AI 운영센터: 독자 화면과 같은 밝은 왼쪽 메뉴, 화면 왼쪽부터 꽉 채움 */
body.workspace .main { max-width: none; margin: 0; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 900px) {
  body.workspace .main { padding: 0 var(--s-6) var(--s-8) 0; }
  body.workspace .main > .flash { margin: var(--s-4) 0 0 calc(240px + var(--s-6)); }
  .shell { grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
  .shell > section { padding-top: var(--s-5); min-width: 0; }
  .shell .side { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; scrollbar-width: none;
    background: var(--c-bg); border-radius: 0; border-right: 1px solid var(--c-line); padding: var(--s-4) var(--s-3); margin: 0; }
  .shell .side::-webkit-scrollbar { display: none; }
  .shell .side a { color: var(--c-text); font-size: var(--fs-body); font-weight: 600; padding: 8px 12px; border-radius: var(--r-ctl); }
  .shell .side a:hover { background: var(--c-surface); color: var(--c-text); }
  .shell .side a.on { background: var(--c-surface); color: var(--c-text); font-weight: 750; box-shadow: inset 3px 0 0 var(--c-accent); }
  .shell .side .label { color: var(--c-text-3); font-size: var(--fs-cap); padding: 14px 12px 4px; }
  .shell .side .label:first-child { padding-top: 2px; }
}
h1 { font-family: var(--f-sans); font-weight: 800; letter-spacing: -.025em; }

/* ---- 책장형 홈 (설정 › 홈 화면 구성) */
.shome { max-width: 1080px; margin: 0 auto; }
.shome .feed-tabs { margin-bottom: var(--s-5); }
.sshelf-track { display: grid; grid-auto-flow: column; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scroll-padding: 0 var(--gutter); }
.sshelf-track::-webkit-scrollbar { display: none; }
.tag-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 14px calc(var(--gutter) * -1) 0; padding: 2px var(--gutter); }
/* 홈 장르 칩 (2026-11: 색 타일 9개 → 한 줄 칩) */
.gchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: var(--s-4) calc(var(--gutter) * -1) 0; padding: 2px var(--gutter); }
.gchips::-webkit-scrollbar { display: none; }
.gchips a { flex: none; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--c-line-2); color: var(--c-text); text-decoration: none; font-size: var(--fs-sm); font-weight: 650; }
.gchips a:hover { border-color: var(--c-text-3); }
.gchips a[aria-current="true"] { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.tag-row::-webkit-scrollbar { display: none; }
.tag-row a { flex: none; padding: 6px 12px; border-radius: var(--r-pill); background: var(--c-surface); color: var(--c-text-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }
.tag-row a:hover { background: var(--c-accent-soft); color: var(--c-accent-ink); }
.snotice { margin: var(--s-4) 0 0; }
.snotice a { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--c-surface); color: var(--c-text); text-decoration: none; font-size: var(--fs-sm); }
.snotice span { flex: none; font-size: var(--fs-cap); font-weight: 750; color: var(--c-accent-ink); }
.sshelf { margin-top: var(--s-6); }
.sshelf-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-3); }
.sshelf-head h2 { margin: 0; font-size: var(--fs-h2); font-weight: 800; letter-spacing: -.02em; }
.sshelf-head a { flex: none; color: var(--c-text-3); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.sshelf-head a:hover { color: var(--c-text); }
.sshelf-track { grid-auto-columns: calc((100% - 2 * 12px) / 3.2); gap: 12px; }
@media (min-width: 600px) { .sshelf-track { grid-auto-columns: 150px; gap: 14px; } }
@media (min-width: 1100px) { .sshelf-track { grid-auto-columns: 160px; gap: 16px; } }
.scard { scroll-snap-align: start; display: block; min-width: 0; text-decoration: none; color: var(--c-text); }
.scard .cv { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--c-surface); container-type: inline-size; outline: 1px solid rgba(28,26,29,.06); outline-offset: -1px; }
.scard .cv img { width: 100%; height: 100%; object-fit: cover; }
.scard:hover .cv { outline: 2px solid var(--c-accent); outline-offset: 0; }
.scard .sb { position: absolute; left: 6px; top: 6px; min-width: 22px; padding: 3px 6px; border-radius: 6px; font: 800 var(--fs-cap)/1.1 var(--f-sans); text-align: center; color: #fff; background: var(--c-accent); }
.scard .sb.new { background: #C2410C; }
.scard .sb.rank { background: #1C1A1D; font-size: var(--fs-sm); }
.scard .sb.adult { left: auto; right: 6px; background: #B3261E; }
.scard .sb.ai { left: 6px; top: auto; bottom: 6px; background: #4B5160; }
.tag.ai { background: #EEF0F4; color: #3A4150; }
.taste-ask { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin: var(--s-4) 0; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--c-line); }
.taste-ask b { display: block; }
.taste-ask span { font-size: var(--fs-sm); color: var(--c-text-2); }
.taste-form fieldset { border: 0; margin: 0 0 var(--s-4); padding: 0; }
.taste-form legend { font-weight: 700; margin-bottom: 8px; }
.taste-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip input { position: absolute; opacity: 0; }
.tchip span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--c-line); font-size: var(--fs-sm); cursor: pointer; }
.tchip input:checked + span { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.tchip input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.tchip input:disabled + span { opacity: .45; cursor: not-allowed; }
.scard .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: var(--fs-body); font-weight: 750; line-height: 1.35; }
.scard:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.scard .a { display: block; margin-top: 3px; font-size: var(--fs-cap); color: var(--c-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard .v { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: var(--fs-cap); color: var(--c-text-3); }
.scard .v svg { width: 15px; height: 15px; }
.scard .v em { font-style: normal; font-weight: 700; color: #17703F; margin-left: 4px; }
.scard .v em.ai { color: var(--c-ai); }
.scard .v em.wait { font-weight: 600; padding: 0 4px; border-radius: 4px; box-shadow: inset 0 0 0 1px currentColor; }
.sjoin { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-7); padding: 18px 20px; border-radius: 16px; background: var(--c-accent-soft); }
.sjoin b { display: block; font-size: var(--fs-body); } .sjoin span { font-size: var(--fs-sm); color: var(--c-text-2); }
@media (max-width: 599px) { .brand-name { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .brand { min-width: 0; } }

/* 로고: 민트 잎 표식 + 소문자 글자 (mintale) */
.brand .mark { width: 26px; height: 26px; border-radius: 3px 70% 3px 70%; background: linear-gradient(135deg, var(--c-glow) 0%, var(--c-accent) 55%, var(--c-deep) 100%); }
.brand .mark::before { content: none; }
.brand .mark::after { left: 50%; top: 50%; width: 24px; height: 2px; border: 0; border-radius: 2px; background: rgba(255,255,255,.85); transform: translate(-50%, -50%) rotate(-45deg); }
.brand-name { font-weight: 800; font-size: var(--fs-h2); letter-spacing: -.045em; text-transform: lowercase; color: var(--c-text); }
@media (max-width: 599px) { .brand-name { font-size: var(--fs-h2); } }
.scard .tcover { padding-top: calc(12% + 22px); }
.scard .tcover b { font-size: 13cqw; }

/* ---- 독자 화면 폭 통일: 모든 페이지·홈 탭이 같은 폭(1240px), 왼쪽 메뉴 바로 옆에 붙여 시작 */
body:not(.workspace) .main, body:not(.workspace) .main.is-wide { width: 100%; max-width: 1240px; margin: 0; }
.shome { max-width: none; }
.feed { max-width: none; margin: 0; }
@media (min-width: 1300px) { .home { grid-template-columns: minmax(0, 1fr) var(--rail-w); justify-content: stretch; gap: 48px; } }
@media (max-width: 1299px) { .rail { max-width: none; margin: 0; } }
.post-body .ex { max-width: 44em; }
@media (min-width: 900px) { .gchips, .sshelf-track, .tag-row { margin-left: 0; margin-right: 0; padding-left: 2px; padding-right: 2px; } }

/* 홈 책장: 데스크톱에서 장르 카드는 줄바꿈, 선반은 좌우 화살표로 넘김 */
@media (min-width: 900px) {
  .tag-row, .gchips { flex-wrap: wrap; overflow: visible; }
  .sjoin { display: none; }                     /* 넓은 화면은 왼쪽 메뉴에 같은 안내가 있음 */
}
.sshelf-nav { display: inline-flex; align-items: center; gap: 6px; }
.snav { display: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--c-line-2); background: var(--c-bg); color: var(--c-text); cursor: pointer; place-items: center; padding: 0; }
.snav svg { width: 18px; height: 18px; }
.snav:hover:not(:disabled) { background: var(--c-surface); }
.snav:disabled { opacity: .3; cursor: default; }
.js .snav { display: inline-grid; }
@media (max-width: 599px) { .js .snav { display: none; } }
.sshelf-nav a { margin-left: 6px; }

/* 로고: 부드러운 잎 + 반짝임, 글자는 브랜드색 그라데이션 (운영 › 설정 › 브랜드 색을 따름) */
:root { --c-mark: #F46A98; }
.brand .mark { width: 30px; height: 30px; border-radius: 0; background: none; display: block; }
.brand .mark::before, .brand .mark::after { content: none; }
.brand-name { font-weight: 700; font-size: var(--fs-h2); letter-spacing: -.02em; color: var(--c-accent);
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-mark) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@media (max-width: 599px) { .brand-name { font-size: var(--fs-h2); } .brand .mark { width: 27px; height: 27px; } }

/* 랭킹 */
.rank-tabs { position: static; margin-bottom: var(--s-3); }
.rank-page { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; border-top: var(--b); }
.rank-page li { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 4px; }
.rank-no { font: 800 var(--fs-h2)/1 var(--f-sans); color: var(--c-text-3); text-align: center; font-variant-numeric: tabular-nums; }
.rank-no.top { color: var(--c-accent); }
.muted-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.muted-tags form { margin: 0; }
.tag-mute { margin-top: var(--s-3); }

/* 작가 소식 */
.cposts { margin-top: var(--s-6); max-width: 720px; }
.cposts h2 { font-size: var(--fs-h2); font-weight: 800; }
.cpost { border-top: 1px solid var(--c-line); padding: 14px 0; }
.cpost-meta { margin: 0 0 6px; font-size: var(--fs-cap); color: var(--c-text-3); display: flex; gap: 6px; align-items: center; }
.cpost-body { margin: 0; line-height: 1.7; }
.cpost.pinned { background: var(--c-accent-soft); border-radius: 12px; padding: 14px 16px; border-top: 0; margin-bottom: 8px; }
.tag.notice { background: var(--c-accent); color: #fff; }
.work-notice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: var(--s-6) 0 var(--s-2); padding: 12px 16px; border-radius: 12px; background: var(--c-accent-soft); }
.work-notice p { flex: 1 1 260px; margin: 0; font-size: var(--fs-sm); line-height: 1.6; }
.work-notice a { white-space: nowrap; }
.cpost-lock { margin: 0; color: var(--c-text-3); font-size: var(--fs-sm); padding: 12px 14px; background: var(--c-surface); border-radius: 10px; }
/* 서재 폴더 */
.lib-folders { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: var(--s-3); }
.lib-new { display: inline-block; }
.lib-new summary { list-style: none; cursor: pointer; }
.lib-new summary::-webkit-details-marker { display: none; }
.lib-new form { margin-top: 8px; }
.lib-del { margin: 0 0 var(--s-3); }
.lib-move { margin-top: var(--s-4); }
.lib-move summary { cursor: pointer; font-weight: 700; }
.lib-move li { justify-content: space-between; flex-wrap: wrap; }
.lib-move form { margin: 0; gap: 6px; }
.earn-calc form { align-items: flex-end; gap: var(--s-3); flex-wrap: wrap; }
.earn-calc form .field { margin: 0; min-width: 160px; }
.earn-calc table th { text-align: left; font-weight: 600; }
.earn-calc table td { text-align: right; font-variant-numeric: tabular-nums; }
.earn-calc form.live .calc-go { display: none; }   /* 즉시 계산이 켜지면 [계산] 버튼 숨김 */
.earn-calc .calc-hint { margin: var(--s-2) 0 0; }
.earn-calc .calc-year th, .earn-calc .calc-year td { color: var(--c-text-2); font-weight: 500; }
.earn-calc .calc-share { margin-top: var(--s-3); }
.tag.day { background: var(--c-accent-soft); color: var(--c-accent-ink); }
.next-up { margin: var(--s-2) 0 0; font-size: var(--fs-sm); color: var(--c-accent-ink); font-weight: 650; }
.days-pick { display: flex; flex-wrap: wrap; gap: 4px 14px; border: 0; padding: 0; }
.days-pick legend { width: 100%; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 6px; padding: 0; }
.bm-list li { justify-content: space-between; }
.bm-list form { margin: 0; }
.bm-note { display: block; font-size: var(--fs-sm); color: var(--c-text-2); margin-top: 2px; }
.ready table { table-layout: fixed; width: 100%; }
.ready th, .ready td { vertical-align: middle; word-break: keep-all; }

/* ---- 문장 카드 공유 페이지 (/q/…) */
.quote-page { max-width: 560px; margin: 0 auto; }
.quote-fig { margin: 0; }
.quote-fig img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow-cover); }
.quote-fig blockquote { margin: var(--s-4) 0 0; }
.quote-fig blockquote p { font: 500 var(--fs-title)/1.7 var(--f-serif); margin: 0; }
.quote-src { margin: var(--s-2) 0 0; font-size: var(--fs-sm); color: var(--c-text-2); }
.quote-src a { color: inherit; }
.quote-acts { margin: var(--s-4) 0 var(--s-3); gap: 8px; flex-wrap: wrap; }

/* 운영 대시보드: 처리할 일 */
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: var(--b); }
.todo-list li:first-child { border-top: 0; }
.todo-list b { min-width: 32px; text-align: center; padding: 2px 10px; border-radius: var(--r-pill); background: var(--c-warn-bg); color: var(--c-warn); font-size: var(--fs-sm); }
.btn.buy-all { flex-wrap: wrap; column-gap: 8px; row-gap: 0; height: auto; min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
.btn.buy-all > span { white-space: nowrap; }
.buybox s.was { opacity: .7; font-weight: 500; margin-right: 2px; }
.buybox .bundle-note { margin: 6px 0 0; color: var(--c-accent); font-weight: 600; text-align: center; }
.cv .up { position: absolute; right: 6px; top: 6px; background: var(--c-err); color: #fff; font: 800 11px/1 var(--f-sans); letter-spacing: .02em; padding: 4px 6px; border-radius: 4px; }
.week-tabs { gap: var(--s-4); overflow-x: auto; scrollbar-width: none; }
.week-tabs a { white-space: nowrap; display: inline-flex; align-items: baseline; gap: 4px; }
.week-tabs a span { font-size: var(--fs-cap); font-weight: 600; color: var(--c-text-3); }
.week-tabs a.today { color: var(--c-accent); }
.rv-spoil-check { flex-basis: 100%; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--c-text-3); cursor: pointer; }
.rv-spoiler { margin: 6px 0 0; }
.rv-spoiler > summary { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 8px; background: var(--c-surface); color: var(--c-text-3); font-size: var(--fs-sm); cursor: pointer; list-style: none; }
.rv-spoiler > summary::-webkit-details-marker { display: none; }
.cv .award { position: absolute; left: 6px; bottom: 6px; background: #B7791F; color: #fff; font: 800 11px/1 var(--f-sans); padding: 5px 8px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.contest-list { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin: var(--s-4) 0 0; padding: 0; }
.contest-card { display: block; height: 100%; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--c-line); color: inherit; text-decoration: none; }
.contest-card.open { border-color: var(--c-accent); background: var(--c-accent-soft); }
.contest-card h2 { font-size: var(--fs-title); margin: 8px 0 4px; }
.contest-card p { margin: 0 0 10px; font-size: var(--fs-sm); color: var(--c-text-2); }
.contest-info .kv { margin-bottom: 4px; }
.contest-rules { margin-top: 10px; }
.contest-rules > summary { cursor: pointer; font-size: var(--fs-sm); color: var(--c-accent); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px var(--s-4); margin: 0; font-size: var(--fs-sm); }
.kv dt { color: var(--c-text-3); }
.kv dd { margin: 0; }
.todo-list li.late b { background: var(--c-err); color: #fff; }
.todo-list li.late .tiny { color: var(--c-err); font-weight: 600; }
.side-n { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: var(--r-pill); background: var(--c-warn); color: #fff; font-size: var(--fs-cap); line-height: 18px; text-align: center; }

/* 내 서재: 이어 읽기 (가장 최근 작품 하나를 크게) */
.cont-hero { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-4); align-items: center; margin-top: var(--s-4); padding: var(--s-4); border: var(--b); border-radius: var(--r-panel); background: var(--c-surface); }
.cont-hero .cover { display: block; width: 96px; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; }
.cont-hero .cover img, .cont-hero .cover .tcover { width: 100%; height: 100%; object-fit: cover; }
.cont-hero h2 { font-size: var(--fs-title); }

/* 31차 작가 통계: 멈춘 곳 막대 (10% 구간) */
.dbins { display: inline-flex; align-items: flex-end; gap: 2px; height: 22px; width: 80px; vertical-align: middle; margin-right: 6px; }
.dbins i { flex: 1; background: var(--c-line); border-radius: 2px 2px 0 0; }
.dbins i.on { background: var(--c-accent); }
.ck-result { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--c-line); }
.ck-result textarea { width: 100%; font-family: var(--f-sans); }

/* 31차 공모전 응원 */
.ct-entry { display: flex; flex-direction: column; gap: 6px; }
.ct-vote { display: flex; justify-content: space-between; align-items: center; gap: 6px; }

/* 32차 정주행 패스 */
.pass-box { margin-top: var(--s-3); }
.pass-box .tiny { margin: 4px 0 0; }

/* 32차 팬 등급 */
.fan-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #FFF4D6; color: #8A5A00; font-size: var(--fs-cap); font-weight: 700; }
.fan-me { margin: 4px 0; }

/* 33차 하단 사업자 정보 */
.site-foot { margin-top: var(--s-8, 48px); padding: var(--s-5) 0 var(--s-6); border-top: 1px solid var(--c-line); font-size: var(--fs-cap); color: var(--c-text-2); }
.site-foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.site-foot-links a { color: inherit; }
.site-foot-biz { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 4px 0 0; line-height: 1.6; }
.buy-note { margin: 8px 0 0; font-size: var(--fs-cap); color: var(--c-text-2); line-height: 1.55; text-align: left; }
/* 33차 약관·처리방침 */
.policy-doc h2 { font-size: var(--fs-title); margin: var(--s-5) 0 var(--s-2); }
.policy-doc ul { padding-left: 1.2em; }
.policy-doc li { margin: 4px 0; }
.policy-toc { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-sm); margin: var(--s-3) 0; }

/* 33차 판3 창간 작가·초대 */
.founding-call { margin: 8px 0; font-weight: 600; }
.founding-badge { vertical-align: middle; font-size: var(--fs-cap); }
.founding-panel p { margin: 4px 0; }
/* 33차 판4 고객센터 */
details.faq { border-top: 1px solid var(--c-line); padding: 10px 0; }
details.faq > summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: 8px 0 0; }
.inq-answer { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--c-accent-soft); }
.inq-answer p { margin: 4px 0 0; }
/* 33차 판5 오픈 판정 */
.verdict { border-left: 4px solid var(--c-line); }
.verdict-ok { border-left-color: var(--c-ok, #2e7d32); }
.verdict-free { border-left-color: var(--c-accent); }
.verdict-todo { border-left-color: var(--c-bad, #c62828); }

/* 33차 판6→판8: 한 가지 일만 하는 유틸 클래스 u-<속성>-<값> (style 속성 대신, 인라인과 같은 우선순위로 !important). 예: u-mt-s4 = margin-top: var(--s-4) */
.u-ai-center { align-items: center !important; }
.u-ai-flex-start { align-items: flex-start !important; }
.u-ai-start { align-items: start !important; }
.u-as-center { align-self: center !important; }
.u-bb-1_solid_line { border-bottom: 1px solid var(--c-line) !important; }
.u-bd-0 { border: 0 !important; }
.u-bd-1_solid_line-2 { border: 1px solid var(--c-line-2) !important; }
.u-bg-surface { background: var(--c-surface) !important; }
.u-bt-1_solid_line { border-top: 1px solid var(--c-line) !important; }
.u-bt-b { border-top: var(--b) !important; }
.u-c-inherit { color: inherit !important; }
.u-d-block { display: block !important; }
.u-d-flex { display: flex !important; }
.u-fill-mark { fill: var(--c-mark) !important; }
.u-flex-1 { flex: 1 !important; }
.u-flex-2 { flex: 2 !important; }
.u-fs-12 { font-size: 12px !important; }
.u-fs-1d05rem { font-size: 1.05rem !important; }
.u-fs-28 { font-size: 28px !important; }
.u-fs-fssm { font-size: var(--fs-sm) !important; }
.u-fw-400 { font-weight: 400 !important; }
.u-fw-500 { font-weight: 500 !important; }
.u-fw-600 { font-weight: 600 !important; }
.u-gap-10 { gap: 10px !important; }
.u-gap-4 { gap: 4px !important; }
.u-gap-8 { gap: 8px !important; }
.u-gap-s4 { gap: var(--s-4) !important; }
.u-gtc-72_1fr_auto { grid-template-columns: 72px 1fr auto !important; }
.u-h-20 { height: 20px !important; }
.u-h-72 { height: 72px !important; }
.u-jc-center { justify-content: center !important; }
.u-ls-none { list-style: none !important; }
.u-lsp-d08em { letter-spacing: .08em !important; }
.u-m-0 { margin: 0 !important; }
.u-m-0_0_10 { margin: 0 0 10px !important; }
.u-m-0_0_12 { margin: 0 0 12px !important; }
.u-m-0_0_2 { margin: 0 0 2px !important; }
.u-m-0_0_6 { margin: 0 0 6px !important; }
.u-m-0_0_8 { margin: 0 0 8px !important; }
.u-m-0_0_s3 { margin: 0 0 var(--s-3) !important; }
.u-m-0_0_s4 { margin: 0 0 var(--s-4) !important; }
.u-m-12_0_0 { margin: 12px 0 0 !important; }
.u-m-2_0 { margin: 2px 0 !important; }
.u-m-30_auto { margin: 30px auto !important; }
.u-m-40_auto { margin: 40px auto !important; }
.u-m-4_0 { margin: 4px 0 !important; }
.u-m-4_0_0 { margin: 4px 0 0 !important; }
.u-m-4_0_2 { margin: 4px 0 2px !important; }
.u-m-6_0_0 { margin: 6px 0 0 !important; }
.u-m-8_0 { margin: 8px 0 !important; }
.u-m-8_0_0 { margin: 8px 0 0 !important; }
.u-m-s3_0_0 { margin: var(--s-3) 0 0 !important; }
.u-m-s3_0_s4 { margin: var(--s-3) 0 var(--s-4) !important; }
.u-m-s4_0 { margin: var(--s-4) 0 !important; }
.u-m-s4_0_0 { margin: var(--s-4) 0 0 !important; }
.u-maxw-100 { max-width: 100px !important; }
.u-maxw-110 { max-width: 110px !important; }
.u-maxw-120 { max-width: 120px !important; }
.u-maxw-140 { max-width: 140px !important; }
.u-maxw-200 { max-width: 200px !important; }
.u-maxw-220 { max-width: 220px !important; }
.u-maxw-320 { max-width: 320px !important; }
.u-maxw-360 { max-width: 360px !important; }
.u-maxw-40em { max-width: 40em !important; }
.u-maxw-420 { max-width: 420px !important; }
.u-maxw-520 { max-width: 520px !important; }
.u-maxw-680 { max-width: 680px !important; }
.u-maxw-760 { max-width: 760px !important; }
.u-maxw-80 { max-width: 80px !important; }
.u-mb-12 { margin-bottom: 12px !important; }
.u-mb-4 { margin-bottom: 4px !important; }
.u-mb-6 { margin-bottom: 6px !important; }
.u-mb-s2 { margin-bottom: var(--s-2) !important; }
.u-mb-s4 { margin-bottom: var(--s-4) !important; }
.u-minh-32 { min-height: 32px !important; }
.u-minw-120 { min-width: 120px !important; }
.u-minw-140 { min-width: 140px !important; }
.u-minw-160 { min-width: 160px !important; }
.u-minw-200 { min-width: 200px !important; }
.u-minw-44 { min-width: 44px !important; }
.u-mt-10 { margin-top: 10px !important; }
.u-mt-12 { margin-top: 12px !important; }
.u-mt-14 { margin-top: 14px !important; }
.u-mt-16 { margin-top: 16px !important; }
.u-mt-6 { margin-top: 6px !important; }
.u-mt-8 { margin-top: 8px !important; }
.u-mt-n6 { margin-top: -6px !important; }
.u-mt-s2 { margin-top: var(--s-2) !important; }
.u-mt-s3 { margin-top: var(--s-3) !important; }
.u-mt-s4 { margin-top: var(--s-4) !important; }
.u-mt-s5 { margin-top: var(--s-5) !important; }
.u-mt-s6 { margin-top: var(--s-6) !important; }
.u-mt-s7 { margin-top: var(--s-7) !important; }
.u-p-0 { padding: 0 !important; }
.u-p-10_0 { padding: 10px 0 !important; }
.u-p-8_0 { padding: 8px 0 !important; }
.u-p-8_12 { padding: 8px 12px !important; }
.u-p-s2_0 { padding: var(--s-2) 0 !important; }
.u-p-s3_0 { padding: var(--s-3) 0 !important; }
.u-pt-8 { padding-top: 8px !important; }
.u-pt-s4 { padding-top: var(--s-4) !important; }
.u-r-8 { border-radius: 8px !important; }
.u-r-r-ctl { border-radius: var(--r-ctl) !important; }
.u-stop-accent { stop-color: var(--c-accent) !important; }
.u-stop-glow { stop-color: var(--c-glow) !important; }
.u-stop-mark { stop-color: var(--c-mark) !important; }
.u-ta-center { text-align: center !important; }
.u-ta-left { text-align: left !important; }
.u-w-110 { width: 110px !important; }
.u-w-20 { width: 20px !important; }
.u-w-32p { width: 32% !important; }
.u-w-72 { width: 72px !important; }
.u-w-80 { width: 80px !important; }
.u-w-96 { width: 96px !important; }
.u-w-auto { width: auto !important; }
.u-wb-break-all { word-break: break-all !important; }
.u-ws-pre-line { white-space: pre-line !important; }

/* 33차 판6: 값이 바뀌는 막대 높이·테마 견본 (style 속성 대신) */
.ph-0 { height: 0%; }
.ph-1 { height: 1%; }
.ph-2 { height: 2%; }
.ph-3 { height: 3%; }
.ph-4 { height: 4%; }
.ph-5 { height: 5%; }
.ph-6 { height: 6%; }
.ph-7 { height: 7%; }
.ph-8 { height: 8%; }
.ph-9 { height: 9%; }
.ph-10 { height: 10%; }
.ph-11 { height: 11%; }
.ph-12 { height: 12%; }
.ph-13 { height: 13%; }
.ph-14 { height: 14%; }
.ph-15 { height: 15%; }
.ph-16 { height: 16%; }
.ph-17 { height: 17%; }
.ph-18 { height: 18%; }
.ph-19 { height: 19%; }
.ph-20 { height: 20%; }
.ph-21 { height: 21%; }
.ph-22 { height: 22%; }
.ph-23 { height: 23%; }
.ph-24 { height: 24%; }
.ph-25 { height: 25%; }
.ph-26 { height: 26%; }
.ph-27 { height: 27%; }
.ph-28 { height: 28%; }
.ph-29 { height: 29%; }
.ph-30 { height: 30%; }
.ph-31 { height: 31%; }
.ph-32 { height: 32%; }
.ph-33 { height: 33%; }
.ph-34 { height: 34%; }
.ph-35 { height: 35%; }
.ph-36 { height: 36%; }
.ph-37 { height: 37%; }
.ph-38 { height: 38%; }
.ph-39 { height: 39%; }
.ph-40 { height: 40%; }
.ph-41 { height: 41%; }
.ph-42 { height: 42%; }
.ph-43 { height: 43%; }
.ph-44 { height: 44%; }
.ph-45 { height: 45%; }
.ph-46 { height: 46%; }
.ph-47 { height: 47%; }
.ph-48 { height: 48%; }
.ph-49 { height: 49%; }
.ph-50 { height: 50%; }
.ph-51 { height: 51%; }
.ph-52 { height: 52%; }
.ph-53 { height: 53%; }
.ph-54 { height: 54%; }
.ph-55 { height: 55%; }
.ph-56 { height: 56%; }
.ph-57 { height: 57%; }
.ph-58 { height: 58%; }
.ph-59 { height: 59%; }
.ph-60 { height: 60%; }
.ph-61 { height: 61%; }
.ph-62 { height: 62%; }
.ph-63 { height: 63%; }
.ph-64 { height: 64%; }
.ph-65 { height: 65%; }
.ph-66 { height: 66%; }
.ph-67 { height: 67%; }
.ph-68 { height: 68%; }
.ph-69 { height: 69%; }
.ph-70 { height: 70%; }
.ph-71 { height: 71%; }
.ph-72 { height: 72%; }
.ph-73 { height: 73%; }
.ph-74 { height: 74%; }
.ph-75 { height: 75%; }
.ph-76 { height: 76%; }
.ph-77 { height: 77%; }
.ph-78 { height: 78%; }
.ph-79 { height: 79%; }
.ph-80 { height: 80%; }
.ph-81 { height: 81%; }
.ph-82 { height: 82%; }
.ph-83 { height: 83%; }
.ph-84 { height: 84%; }
.ph-85 { height: 85%; }
.ph-86 { height: 86%; }
.ph-87 { height: 87%; }
.ph-88 { height: 88%; }
.ph-89 { height: 89%; }
.ph-90 { height: 90%; }
.ph-91 { height: 91%; }
.ph-92 { height: 92%; }
.ph-93 { height: 93%; }
.ph-94 { height: 94%; }
.ph-95 { height: 95%; }
.ph-96 { height: 96%; }
.ph-97 { height: 97%; }
.ph-98 { height: 98%; }
.ph-99 { height: 99%; }
.ph-100 { height: 100%; }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; }
.sw-pink { background: #D1336B; }
.sw-mint { background: #0C8572; }
.sw-lavender { background: #7446C8; }
.sw-navy { background: #2F55B5; }
.creator-cols { margin-top: var(--s-7); }
.creator-cols.narrow { max-width: 560px; }

/* 33차 판7 유입 경로 */
.src-list { list-style: none; padding: 0; margin: var(--s-3) 0 0; }
.src-list li { display: grid; grid-template-columns: 9em 1fr 7em; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--c-line); }
.src-bar { height: 8px; border-radius: 4px; background: var(--c-surface); overflow: hidden; }
.src-bar i { display: block; height: 100%; background: var(--c-accent); }
.src-n { text-align: right; font-size: var(--fs-sm); color: var(--c-text-2); }
.pw-0 { width: 0%; }
.pw-1 { width: 1%; }
.pw-2 { width: 2%; }
.pw-3 { width: 3%; }
.pw-4 { width: 4%; }
.pw-5 { width: 5%; }
.pw-6 { width: 6%; }
.pw-7 { width: 7%; }
.pw-8 { width: 8%; }
.pw-9 { width: 9%; }
.pw-10 { width: 10%; }
.pw-11 { width: 11%; }
.pw-12 { width: 12%; }
.pw-13 { width: 13%; }
.pw-14 { width: 14%; }
.pw-15 { width: 15%; }
.pw-16 { width: 16%; }
.pw-17 { width: 17%; }
.pw-18 { width: 18%; }
.pw-19 { width: 19%; }
.pw-20 { width: 20%; }
.pw-21 { width: 21%; }
.pw-22 { width: 22%; }
.pw-23 { width: 23%; }
.pw-24 { width: 24%; }
.pw-25 { width: 25%; }
.pw-26 { width: 26%; }
.pw-27 { width: 27%; }
.pw-28 { width: 28%; }
.pw-29 { width: 29%; }
.pw-30 { width: 30%; }
.pw-31 { width: 31%; }
.pw-32 { width: 32%; }
.pw-33 { width: 33%; }
.pw-34 { width: 34%; }
.pw-35 { width: 35%; }
.pw-36 { width: 36%; }
.pw-37 { width: 37%; }
.pw-38 { width: 38%; }
.pw-39 { width: 39%; }
.pw-40 { width: 40%; }
.pw-41 { width: 41%; }
.pw-42 { width: 42%; }
.pw-43 { width: 43%; }
.pw-44 { width: 44%; }
.pw-45 { width: 45%; }
.pw-46 { width: 46%; }
.pw-47 { width: 47%; }
.pw-48 { width: 48%; }
.pw-49 { width: 49%; }
.pw-50 { width: 50%; }
.pw-51 { width: 51%; }
.pw-52 { width: 52%; }
.pw-53 { width: 53%; }
.pw-54 { width: 54%; }
.pw-55 { width: 55%; }
.pw-56 { width: 56%; }
.pw-57 { width: 57%; }
.pw-58 { width: 58%; }
.pw-59 { width: 59%; }
.pw-60 { width: 60%; }
.pw-61 { width: 61%; }
.pw-62 { width: 62%; }
.pw-63 { width: 63%; }
.pw-64 { width: 64%; }
.pw-65 { width: 65%; }
.pw-66 { width: 66%; }
.pw-67 { width: 67%; }
.pw-68 { width: 68%; }
.pw-69 { width: 69%; }
.pw-70 { width: 70%; }
.pw-71 { width: 71%; }
.pw-72 { width: 72%; }
.pw-73 { width: 73%; }
.pw-74 { width: 74%; }
.pw-75 { width: 75%; }
.pw-76 { width: 76%; }
.pw-77 { width: 77%; }
.pw-78 { width: 78%; }
.pw-79 { width: 79%; }
.pw-80 { width: 80%; }
.pw-81 { width: 81%; }
.pw-82 { width: 82%; }
.pw-83 { width: 83%; }
.pw-84 { width: 84%; }
.pw-85 { width: 85%; }
.pw-86 { width: 86%; }
.pw-87 { width: 87%; }
.pw-88 { width: 88%; }
.pw-89 { width: 89%; }
.pw-90 { width: 90%; }
.pw-91 { width: 91%; }
.pw-92 { width: 92%; }
.pw-93 { width: 93%; }
.pw-94 { width: 94%; }
.pw-95 { width: 95%; }
.pw-96 { width: 96%; }
.pw-97 { width: 97%; }
.pw-98 { width: 98%; }
.pw-99 { width: 99%; }
.pw-100 { width: 100%; }

/* 33차 판7 비축분 */
.buf-list { list-style: none; padding: 0; margin: var(--s-3) 0 0; }
.buf-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--c-line); }
/* 34차 판8 간편 로그인·결제 */
.social-login { display: grid; gap: 8px; margin: var(--s-3) 0; }
.social-kakao { background: #FEE500; color: #191600; border-color: #FEE500; }
.social-naver { background: #03C75A; color: #fff; border-color: #03C75A; }
.social-login .or { display: flex; align-items: center; gap: 10px; color: var(--c-text-2); font-size: var(--fs-sm); margin: 6px 0 0; }
.social-login .or::before, .social-login .or::after { content: ""; flex: 1; border-top: 1px solid var(--c-line); }
.paybox { max-width: 520px; margin: 0 auto; }
.pay-total b { font-size: var(--fs-h1); }

/* 34차 판9 글자 수 */
.charcount { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: var(--fs-sm); color: var(--c-text-2); margin-top: 6px; }
.cc-bar { flex: 1; min-width: 120px; height: 6px; border-radius: 3px; background: var(--c-surface); overflow: hidden; }
.cc-bar i { display: block; height: 100%; background: var(--c-accent); }
.sample-text { max-height: 260px; overflow: auto; padding: 8px; background: var(--c-surface); border-radius: 8px; font-size: var(--fs-sm); }
/* 34차 판9 작가 모집 */
.why-list { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.why-list li { padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 10px; font-size: var(--fs-sm); }
.why-list b { display: block; font-size: var(--fs-body); }
.est-form .field { flex: 1; min-width: 120px; }
.est-result b { font-size: var(--fs-title); }
/* 34차 판11 운영 추이·정산서 인쇄 */
.trend-bar { display: inline-block; width: 36px; height: 6px; margin-right: 6px; border-radius: 3px; background: var(--c-surface); overflow: hidden; vertical-align: middle; }
.trend-bar i { display: block; height: 100%; background: var(--c-accent); }
.today-kpis .kpi .tiny { color: var(--c-muted); }
.settle-doc { max-width: 720px; }
.settle-doc table { width: 100%; }
@media print {
  .no-print, nav.side, .site-head, .site-foot { display: none !important; }
  .settle-doc { max-width: none; box-shadow: none; border: 0; }
}
/* 34차 판14a */
.tag.warn { background: var(--c-warn-bg); color: var(--c-warn); }
.tag.promise { background: var(--c-ok-bg); color: var(--c-ok); }
.ch-ranges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.content-warn { padding: 10px 12px; border-radius: 8px; background: var(--c-warn-bg); color: var(--c-warn); font-size: var(--fs-sm); }
/* 34차 판14b 예약 달력·맞춤법 */
.cal { display: grid; gap: 4px; }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head span { font-size: var(--fs-cap); text-align: center; color: var(--c-text-2); }
.cal-cell { min-height: 72px; padding: 4px; border: 1px solid var(--c-line); border-radius: 6px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.cal-cell.today { border-color: var(--c-accent); }
.cal-cell.past { opacity: .6; }
.cal-item { display: block; font-size: var(--fs-cap); padding: 2px 4px; border-radius: 4px; background: var(--c-surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-item.sch { background: var(--c-warn-bg); color: var(--c-warn); }
.cal-item.pub { background: var(--c-ok-bg); color: var(--c-ok); }
.spellcheck ul { margin: 6px 0 0; padding-left: 18px; }
/* 35차 판15 베타 표시 */
.beta-body { position: relative; }
.beta-wm { position: absolute; inset: 0; margin: 0; padding: 24px; color: var(--c-text); opacity: .06; font-size: var(--fs-sm); line-height: 6; word-break: break-all; pointer-events: none; overflow: hidden; user-select: none; }
/* 35차 판18 #30 좁은 화면 (360px) */
details.adv > summary { cursor: pointer; padding: 6px 0; }
.lib-tabs { margin-bottom: 8px; }
@media (max-width: 480px) {
  .cal-cell { min-height: 56px; padding: 2px; }
  .cal-item { font-size: var(--fs-cap); padding: 1px 2px; }
  .today-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coupon-form input { min-width: 0; flex: 1; }
  .trend-bar { display: none; }
  .ch-ranges .chip { padding: 4px 8px; }
}
/* 35차 판20 독자 12월 */
.end-sub { margin: var(--s-4) 0; padding: var(--s-4); border: var(--b); border-radius: var(--r-panel); background: var(--c-bg-2, var(--c-bg)); text-align: center; }
.end-sub form, .end-sub .btn { display: inline-block; }
.gift-box { margin-top: var(--s-2); }
.gift-box form { display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.gift-msg { margin: var(--s-3) 0; padding-left: var(--s-3); border-left: 3px solid var(--c-line); }
.done-item .tiny { margin: var(--s-1) 0 0; }
.year-grid { margin: var(--s-4) 0; }
/* 36차 판21 */
.report-box { margin-top: var(--s-3); }
.report-box form { margin-top: var(--s-2); }
td.num.bad { color: var(--c-bad, #b42318); font-weight: 700; }
/* 36차 판22 */
.welcome-back { margin-bottom: var(--s-4); }
.pw-preview { margin: var(--s-4) 0; padding: var(--s-4); border-left: 3px solid var(--c-line); font-size: var(--fs-sm); color: var(--c-text-2); }
.recap { margin: var(--s-3) 0; padding: var(--s-3); border: var(--b); border-radius: var(--r-panel); font-size: var(--fs-sm); }
.goal-line progress { vertical-align: middle; width: 120px; }
.queue-list { margin: 0 0 var(--s-4); }
/* 36차 판24 */
.side-find { padding: 0 var(--s-3) var(--s-3); }
.side-find input { width: 100%; }
/* 36차 판25 */
.also-list li { display: inline-block; margin: 0 var(--s-3) var(--s-2) 0; }

/* 2026-11-22 판27 개발 요청·외부 연동·우편번호 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.u-w-120 { width: 120px !important; }
.devreq-kinds label { min-height: 60px; align-items: center; font-size: 17px; }
.devreq-form textarea { font-size: 17px; }
.devreq-form .devreq-send { min-height: 56px; font-size: 17px; }
.integ-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.integ-card h2 { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; font-size: var(--fs-title); }
.integ-card .integ-state { margin-left: auto; }
.integ-card .field input { width: 100%; }
.postcode-row { display: flex; gap: 8px; align-items: flex-end; }
.postcode-row .field { flex: 1; margin: 0; }
.postcode-layer { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.postcode-layer[hidden] { display: none; }
.postcode-box { background: var(--c-bg, #fff); border-radius: 12px; width: min(100%, 520px); height: min(90vh, 560px); display: flex; flex-direction: column; overflow: hidden; }
.postcode-box .spread { padding: 10px 12px; border-bottom: 1px solid var(--c-line-2); }
.postcode-frame { flex: 1; min-height: 0; }

/* 3.0.1 AI 집필실 패널 (회차 쓰기 화면) */
.aiw-panel { margin-top: 14px; padding: 14px; border: 1px solid var(--c-line-2); border-radius: 12px; background: var(--c-surface); }
.aiw-panel .h3 { font-size: var(--fs-body); margin: 0 0 8px; display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
.aiw-tools { flex-wrap: wrap; gap: 6px; align-items: center; }
.aiw-tools select { width: auto; }
.aiw-out { display: grid; gap: 10px; margin-top: 10px; }
.aiw-card { padding: 10px; border: 1px solid var(--c-line-2); border-radius: 10px; background: var(--c-bg, #fff); }
.aiw-card h3 { margin: 0 0 6px; }
.aiw-card .aiw-text { width: 100%; min-height: 120px; font: inherit; line-height: 1.7; }
.aiw-card.decided { opacity: .6; }
.aiw-out .err, .aiw-card .err { color: var(--c-danger, #c0392b); }

/* 3.0.2 크레딧 상품 */
.aiw-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 12px 0; }
.aiw-plan .h3 { margin: 0 0 4px; font-size: var(--fs-body); }

/* 3.0.3 AI 집필실 2차 */
.aiw-more { margin-top: 8px; }
.aiw-more summary { cursor: pointer; }
.aiw-scene { flex-wrap: wrap; gap: 6px; }
.aiw-report p { margin: 2px 0; }
.aiw-mentions { margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--c-line-2); border-radius: 12px; }
.aiw-mentions .h3 { font-size: var(--fs-body); margin: 0 0 6px; display: flex; justify-content: space-between; align-items: baseline; }
.ai-contrib { margin-top: 10px; }
