/* 소설街 novellst. — 화면
   방향(2026-11-29 사용자 승인: "깔끔하고 세련되도록", "색을 너무 많이 썼어" → 새 그림에 "일단 이걸로 가보자"):
   - 색은 책 표지가 낸다. 화면은 흰색·검정·연회색이고 강조색은 한 가지만 쓴다.
   - 강조색은 로고의 마침표, 별점, "편집자의 말" 같은 작은 라벨에만. 면으로 칠하지 않는다.
   - 테두리 없음. 구분은 여백과 연회색 면으로 하고, 꼭 필요한 곳에만 옅은 선을 쓴다.
   - 기울임·형광 칠·스티커·색 동그라미·색색 카드·그림자·그라데이션을 쓰지 않는다.
   - 굵은 글자는 큰 제목과 구역 제목만. 본문·닉네임·태그·책 제목은 보통 굵기.
   - 발랄함은 말투, 큰 제목, 넉넉한 여백, 한줄평이 먼저 나오는 구성으로 낸다.
   앞선 연두 화면과 스티커 화면은 사용자가 거절했다(old 폴더에 보관). */

:root {
  --bg: #ffffff;
  --ink: #16161a;
  --body: #2c2c31;
  --sub: #8b8b93;
  --soft: #f5f5f3;
  --line: #e8e8e4;
  --accent: #ff5533;
  --error: #d92323;
  --r-card: 16px;
  --r-pill: 9999px;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: var(--sans); font-size: 15px; font-weight: 400; line-height: 1.6;
  word-break: keep-all; overflow-wrap: anywhere;
  padding-bottom: 62px; /* 하단 탭 자리 */
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong, b { font-weight: 600; color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--sub); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.h1 { font-size: 26px; line-height: 1.25; }
.h2 { font-size: 20px; line-height: 1.3; }
.h3 { font-size: 16px; line-height: 1.4; }
.lead { font-size: 15px; }
.small { font-size: 13px; }
.caption { font-size: 12px; line-height: 1.4; }
.eyebrow { font-size: 12px; font-weight: 400; line-height: 1.3; color: var(--sub); }
.acc { color: var(--accent); font-weight: 500; }
.link-green { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link-green:hover { text-decoration-color: var(--ink); }
.link-inline { color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }

/* ── 단추: 검정 알약(주) / 연회색 알약(보조). 테두리 없음 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 18px; border: 0; border-radius: var(--r-pill); background: var(--soft); color: var(--ink);
  font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap; transition: opacity 0.12s, background 0.12s;
}
.btn:hover { opacity: 0.8; }
.btn-primary, .btn-dark, .btn-white { background: var(--ink); color: #fff; }
.btn-outline, .btn-ghost, .btn-secondary { background: var(--soft); color: var(--ink); }
.btn-outline, .btn-ghost { padding: 9px 15px; min-height: 38px; }
.btn-outline.is-on, .btn-outline[aria-pressed="true"] { background: var(--ink); color: #fff; }
.btn-white[aria-pressed="true"] { background: var(--soft); color: var(--ink); }
.btn-block { width: 100%; }
.btn-danger { color: var(--error); }
.btn-big { width: 100%; max-width: 420px; padding: 16px 24px; font-size: 15px; }

/* 예전의 스티커 자리는 강조색 작은 라벨로만 남긴다 */
.sticker { font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--accent); }

/* ── 시안 안내 띠 ── */
.demo-strip { background: var(--soft); color: var(--sub); font-size: 11px; text-align: center; padding: 6px 12px; }

/* ── 머리글 ── */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); }
@supports (backdrop-filter: blur(10px)) { .nav { backdrop-filter: blur(10px); } }
.nav-row { display: flex; align-items: center; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; margin-right: auto; flex: none; white-space: nowrap; }
.logo { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.logo i { font-style: normal; color: var(--accent); }
.brand-suffix { font-size: 13px; color: var(--sub); }
.nav-links { display: none; }
.search.nav-search { display: none; }
.nav-write { display: none; }
.icon-btn { width: 32px; height: 32px; flex: none; display: grid; place-items: center; color: var(--ink); }
.nav-account { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.nav-account a, .nav-account button { background: none; border: 0; padding: 0; color: var(--ink); font-size: 14px; font-weight: 400; }
.nav-account a { display: inline-block; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.nav-account button { color: var(--sub); }

.search { display: flex; align-items: stretch; background: var(--soft); border: 0; border-radius: var(--r-pill); overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; border-radius: 0; background: transparent; padding: 10px 6px 10px 16px; font-size: 14px; color: var(--ink); outline: none; }
.search input::placeholder { color: var(--sub); }
.search button { border: 0; background: transparent; color: var(--ink); padding: 0 14px 0 8px; display: grid; place-items: center; font-weight: 500; }
.search:focus-within { box-shadow: inset 0 0 0 1px var(--ink); }

/* ── 하단 탭(휴대폰): 선 아이콘, 지금 탭만 검정 ── */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 7px; font-size: 11px; color: var(--sub); }
.tabbar a span { display: grid; place-items: center; height: 24px; }
.tabbar a.is-on { color: var(--ink); }

/* ── 첫 화면: 한줄평 피드 ──
   휴대폰에서는 한줄평 → 신간 표지 줄 → 출판사 → 오늘의 문장·나의 2026 → 쓰기 순서로 쌓는다. */
.home { padding-top: 18px; display: flex; flex-direction: column; }
.home-grid { display: contents; }
.home-main { order: 1; }
.sec--new { order: 2; }
.sec--pub { order: 3; }
.home-side { order: 4; }
.cta-row { order: 5; }
.feed-title { font-size: 26px; line-height: 1.3; font-weight: 700; }
.tagrow { display: flex; gap: 6px; overflow-x: auto; margin: 18px -20px 0; padding: 0 20px 2px; scrollbar-width: none; }
.tagrow::-webkit-scrollbar { display: none; }
.tagpill { flex: none; padding: 7px 13px; border-radius: var(--r-pill); background: var(--soft); color: var(--body); font-size: 13px; }
.tagpill.is-on { background: var(--ink); color: #fff; }
.feed { display: grid; gap: 10px; margin-top: 16px; }
.home-side { display: grid; gap: 28px; margin-top: 48px; }
.sec { margin-top: 48px; }
.sec-head { margin-bottom: 16px; }
.sec-head h2 { font-size: 18px; line-height: 1.3; }
.sec-head p { margin-top: 2px; font-size: 13px; color: var(--sub); }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sec-head--row .link-green { font-size: 13px; color: var(--sub); text-decoration: none; }
/* 신작로: 표지만 똑바로 한 줄. 다음 표지가 오른쪽에 걸쳐 보인다. */
.newrail { display: flex; gap: 12px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
.newrail::-webkit-scrollbar { display: none; }
.newrail a { flex: none; width: 30%; max-width: 140px; transition: opacity 0.12s; }
.newrail a:hover { opacity: 0.85; }
/* 첫 화면 '이 책 어때요' 구역: 큰 표지 + 강조색 작은 라벨 + 명조 인용 */
.pubcard { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; color: var(--body); }
.pubcard-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pubcard-quote { font-family: var(--serif); font-size: 16px; font-weight: 500; line-height: 1.6; color: var(--ink); }
.pubcard-pub { font-size: 12px; color: var(--sub); }
.softpills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.softpills span { padding: 6px 12px; border-radius: var(--r-pill); background: var(--soft); font-size: 12px; color: var(--body); }
/* 오늘의 문장: 옅은 윗선 아래에 명조 인용 */
.quote-card { display: block; padding-top: 24px; border-top: 1px solid var(--line); color: var(--body); }
.quote-card .eyebrow { display: block; }
.quote-card q { display: block; margin-top: 10px; font-family: var(--serif); font-size: 17px; font-weight: 500; line-height: 1.7; color: var(--ink); quotes: none; }
.quote-card cite { display: block; margin-top: 10px; font-size: 12px; font-style: normal; color: var(--sub); }
/* 나의 2026: 연회색 카드에 큰 숫자 */
.recap { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 20px; border-radius: var(--r-card); background: var(--soft); color: var(--body); }
.recap .eyebrow { display: block; }
.recap b { display: block; margin-top: 4px; font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.recap b i { margin-left: 4px; font-size: 14px; font-style: normal; font-weight: 400; }
.recap-say { font-size: 13px; line-height: 1.5; color: var(--sub); text-align: right; }
.cta-row { display: flex; justify-content: center; margin: 40px 0 8px; }

/* ── 한줄평 카드: 본문이 위, 아래에 작은 표지 + 제목 / 닉네임 · 별점, 오른쪽에 공감 ── */
.reviews { display: grid; gap: 10px; }
.review { padding: 16px; border-radius: var(--r-card); background: var(--soft); }
.review-text { color: var(--ink); font-size: 14px; line-height: 1.7; white-space: pre-line; }
.review--home .review-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.review-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.review-meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.review-book { flex: none; width: 24px; }
.rm-text { min-width: 0; font-size: 12px; line-height: 1.45; color: var(--sub); }
.rm-title { display: block; color: var(--ink); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.rm-sub .star { color: var(--accent); font-weight: 400; }
.foot-right { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.like { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 4px 0; font-size: 12px; color: var(--sub); }
.like svg { display: block; }
.like.is-on { color: var(--accent); }
.like.is-on svg { fill: currentColor; }
.review--mine { box-shadow: inset 0 0 0 1px var(--ink); }
.tag { color: var(--sub); font-size: 12px; }
.spoiler { width: 100%; text-align: left; border: 0; border-radius: 12px; padding: 12px 14px; background: #fff; font-size: 13px; color: var(--sub); }
.spoiler b { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.text-actions { display: flex; gap: 12px; font-size: 12px; }
.text-actions button { background: none; border: 0; padding: 4px 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.text-actions button.btn-danger { color: var(--error); }
.cand-link { background: none; border: 0; padding: 4px 0; font-size: 12px; color: var(--sub); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.cand-link:hover { color: var(--error); }
.cand-link[disabled] { color: var(--sub); text-decoration: none; cursor: default; opacity: 0.6; }
.review--off { opacity: 0.6; }
.review-foot--admin { flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.review-notice { margin-top: 10px; font-size: 12px; color: var(--error); }
/* 운영자 화면의 한줄평 카드에서 쓰는 머리 줄 */
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-head .who { flex: 1; min-width: 0; font-size: 12px; color: var(--sub); }
.review-head .who strong { display: block; font-size: 13px; font-weight: 500; }
.review > .review-book { display: flex; align-items: center; gap: 10px; width: auto; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; }
.review > .review-book .cover { width: 26px; flex: none; }
.review > .review-book > span:not(.cover) { min-width: 0; }
.review > .review-book > span:not(.cover) span { display: block; font-size: 12px; color: var(--sub); }

/* ── 표지(글자로 그린 예시 표지). 테두리 없이 색만 ── */
.cover {
  container-type: inline-size; position: relative; display: block; width: 100%; aspect-ratio: 2 / 3;
  background: var(--c-bg); color: var(--c-ink); border-radius: 4px; overflow: hidden;
}
.cover-author, .cover-title, .cover-pub { position: absolute; left: 11cqw; right: 8cqw; z-index: 1; line-height: 1.25; }
.cover-author { top: 9cqw; font-size: 6.5cqw; font-weight: 500; letter-spacing: 0.02em; opacity: 0.9; }
.cover-title { top: 22cqw; font-family: var(--serif); font-size: 13.5cqw; font-weight: 700; line-height: 1.22; letter-spacing: -0.02em; }
.cover-pub { bottom: 8cqw; font-size: 5.5cqw; font-weight: 600; letter-spacing: 0.06em; opacity: 0.9; }
.cover-art { position: absolute; left: 0; right: 0; top: 54%; bottom: 15%; }
.cover--band .cover-art { background: linear-gradient(var(--c-pt), var(--c-pt)) 0 22% / 100% 22% no-repeat, linear-gradient(var(--c-pt), var(--c-pt)) 0 62% / 100% 6% no-repeat; opacity: 0.9; }
.cover--lines .cover-art { left: 11cqw; right: 8cqw; background: repeating-linear-gradient(to bottom, var(--c-pt) 0 1.6cqw, transparent 1.6cqw 6.5cqw); }
.cover--dots .cover-art { left: 11cqw; right: 8cqw; background: radial-gradient(circle, var(--c-pt) 1.5cqw, transparent 1.7cqw) 0 0 / 8cqw 8cqw; }
.cover--circle .cover-art { left: auto; right: 9cqw; top: 51%; bottom: auto; width: 46cqw; height: 46cqw; border-radius: 9999px; background: var(--c-pt); }
.cover--frame .cover-art { inset: 4.5cqw; border: 0.9cqw solid var(--c-pt); }
.cover--frame .cover-author, .cover--frame .cover-title, .cover--frame .cover-pub { left: 13cqw; right: 11cqw; }
.cover--frame .cover-author { top: 12cqw; }
.cover--frame .cover-title { top: 25cqw; }
.cover--frame .cover-pub { bottom: 11cqw; }
.cover--split .cover-art { inset: 0; background: var(--c-pt); clip-path: polygon(100% 52%, 100% 100%, 0 100%, 0 86%); }
@container (max-width: 64px) {
  .cover-author, .cover-pub { display: none; }
  .cover .cover-title { top: 12cqw; font-size: 15cqw; }
}
@container (max-width: 40px) {
  .cover .cover-title { display: none; }
}

/* ── 소설 카드: 표지 + 그 아래 글자. 카드 면도 테두리도 없다 ── */
.grid-books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
.book-card { display: flex; flex-direction: column; color: var(--body); transition: opacity 0.12s; }
.book-card:hover { opacity: 0.85; }
.book-card-cover { padding: 22px 24%; border-radius: var(--r-card); background: var(--soft); }
.book-card-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 2px 0; }
.book-card-title { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.book-card-author { font-size: 12px; color: var(--sub); }
.book-card-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 4px; font-size: 12px; color: var(--sub); }
.book-card-rating b { color: var(--ink); font-weight: 400; }
.book-card-rating > * { white-space: nowrap; flex: none; }

/* ── 별점: 강조색 ── */
.stars { display: inline-block; flex: none; white-space: nowrap; font-family: Arial, "Segoe UI Symbol", sans-serif; font-size: 12px; line-height: 1; background: linear-gradient(90deg, var(--accent) calc(var(--v) / 5 * 100%), var(--line) 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars::before { content: "★★★★★"; }
.stars--lg { font-size: 16px; }

/* ── 화면 윗부분(목록·상세·작가·서재) ── */
.band { background: #fff; color: var(--body); }
.band .wrap { padding-top: 18px; padding-bottom: 8px; }
.band h1 { font-size: 26px; line-height: 1.3; }
.band .lead { margin-top: 8px; max-width: 36em; color: var(--sub); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; font-size: 12px; color: var(--sub); }
.crumbs a:hover { color: var(--ink); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--r-pill); background: var(--soft); color: var(--body); font-size: 12px; }
.badge svg { display: none; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--sub); }
.byline a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.byline b { color: var(--ink); font-weight: 500; }
.avatar { display: none; }
.cand .avatar { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); font-size: 13px; }
.profile-head { display: flex; gap: 14px; align-items: center; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 13px; color: var(--sub); }
.hero-stats b { margin-right: 3px; font-size: 15px; font-weight: 600; color: var(--ink); }
.detail-hero { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; align-items: start; }
.detail-info { min-width: 0; }
.detail-info h1 { font-size: 24px; }
.detail-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* ── 구역 ── */
.section { padding: 40px 0 0; }
.section:last-child { padding-bottom: 40px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: 18px; }
.section-head p { margin-top: 2px; font-size: 13px; color: var(--sub); }
.section-head .link-green { flex: none; font-size: 13px; color: var(--sub); text-decoration: none; }
.media-frame { padding: 22px; border-radius: var(--r-card); background: var(--soft); }

/* ── 목록 화면 ── */
.chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -20px; padding: 14px 20px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; padding: 7px 13px; border-radius: var(--r-pill); background: var(--soft); color: var(--body); font-size: 13px; }
.chip svg { display: none; }
.chip.is-on { background: var(--ink); color: #fff; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 0 18px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.filters .search { flex: 1 1 220px; }
.filters .box { flex: none; border: 0; border-radius: var(--r-pill); background: var(--soft); }
.filters .box select { padding: 9px 14px; font-size: 13px; }
.result-count { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; font-size: 13px; color: var(--sub); }
.result-count .big-n { font-size: 15px; font-weight: 600; line-height: 1; color: var(--ink); }
.result-count a { margin-left: 10px; }
.picks { display: grid; gap: 4px; margin-top: 16px; }
.pick-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); text-align: left; }
.pick-row:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.pick-row .cover { width: 34px; flex: none; }
.pick-row > span:not(.cover) { flex: 1; min-width: 0; font-size: 12px; color: var(--sub); }
.pick-row strong { display: block; font-size: 14px; font-weight: 500; }
.pick-row i { flex: none; font-style: normal; font-size: 13px; color: var(--sub); }

/* ── 상세 화면 본문 ── */
.detail-main { max-width: 780px; }
.detail-main > section { margin-top: 44px; }
.detail-main h2 { margin-bottom: 14px; font-size: 18px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; padding: 18px 0; border-radius: var(--r-card); background: var(--soft); }
.spec { padding: 0 18px; }
.spec .k { display: block; font-size: 12px; color: var(--sub); }
.spec .v { display: block; margin-top: 2px; font-size: 14px; color: var(--ink); }
.summary p + p { margin-top: 12px; }
.summary p { max-width: 66ch; font-size: 15px; line-height: 1.8; color: var(--body); }
/* 예스24 출처 표기: 약관상 꼭 있어야 한다. 지나치게 작게 줄이지 말 것. */
.source { margin-top: 18px; padding-top: 14px; max-width: none !important; border-top: 1px solid var(--line); font-size: 13px !important; color: var(--ink); line-height: 1.5 !important; }
.source button { background: none; border: 0; padding: 0; margin-left: 8px; font-size: 13px; }
.source span { display: block; margin-top: 4px; font-size: 12px; color: var(--sub); }
/* 운영자 한마디 */
.tip { display: grid; gap: 16px; padding: 20px; border-radius: var(--r-card); background: var(--soft); color: var(--ink); }
.tip-label { display: block; margin-bottom: 8px; font-size: 12px; color: var(--accent); }
.tip-label svg { display: none; }
.tip-text { font-family: var(--serif); font-size: 16px; font-weight: 500; line-height: 1.7; }
.tip-stats { display: none; }
/* 여기서만 보는 소개 */
.pubintro { padding: 22px 20px; border-radius: var(--r-card); background: var(--soft); }
.pubintro-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 18px; font-size: 13px; color: var(--sub); }
.pubintro .eyebrow { display: block; margin-bottom: 8px; color: var(--sub); }
.first-line { margin: 0 0 22px; font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.7; color: var(--ink); }
.quotes { margin-bottom: 22px; }
.quotes ul { display: grid; gap: 10px; }
.quotes li { font-family: var(--serif); font-size: 15px; font-weight: 500; line-height: 1.7; color: var(--ink); }
.quotes li::before { content: "— "; color: var(--sub); }
.pubintro-desc { margin-bottom: 22px; }
.pubintro-desc p { font-size: 15px; line-height: 1.8; }
.pubintro-desc + .pubintro-desc, .voices + .pubintro-desc { margin-top: 22px; }
.voices { display: grid; gap: 10px; }
.voice { padding: 16px; border-radius: 12px; background: #fff; }
.voice .eyebrow { color: var(--accent); }
.voice p { font-size: 14px; line-height: 1.75; color: var(--body); }
.toc { margin-top: 22px; border-radius: 12px; background: #fff; }
.toc summary { padding: 12px 16px; font-size: 13px; color: var(--ink); cursor: pointer; }
.toc ol { padding: 0 16px 14px 36px; list-style: decimal; font-size: 14px; line-height: 1.9; color: var(--body); }
.forwho { margin-top: 22px; }
.forwho ul { display: flex; flex-wrap: wrap; gap: 6px; }
.forwho li { padding: 6px 12px; border-radius: var(--r-pill); background: #fff; font-size: 13px; color: var(--body); }
.together { margin-top: 22px; }
.together-row { display: flex; flex-wrap: wrap; gap: 14px; }
.together-row a { width: 76px; color: var(--ink); }
.together-row a > span:not(.cover) { display: block; margin-top: 6px; font-size: 12px; line-height: 1.4; }
/* 별점 분포 */
.dist { display: grid; gap: 16px; margin-bottom: 12px; padding: 20px; border-radius: var(--r-card); background: var(--soft); }
.dist-sum { display: flex; align-items: center; gap: 12px; }
.dist-sum .big { font-size: 32px; font-weight: 700; line-height: 1; color: var(--ink); }
.dist-bars { display: grid; gap: 7px; }
.dist-bar { display: grid; grid-template-columns: 28px 1fr 20px; gap: 8px; align-items: center; font-size: 12px; color: var(--sub); }
.dist-bar i { display: block; height: 4px; border-radius: var(--r-pill); background: #fff; overflow: hidden; }
.dist-bar i b { display: block; height: 100%; border-radius: var(--r-pill); background: var(--ink); }

/* ── 양식 ── */
.form-card { margin-bottom: 12px; padding: 20px; border-radius: var(--r-card); background: var(--soft); }
.form-card h3 { margin-bottom: 14px; }
.field { display: block; margin-bottom: 16px; }
.field > .k { display: block; margin-bottom: 6px; font-size: 12px; color: var(--sub); }
.box { display: block; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.box:focus-within { border-color: var(--ink); }
.box input, .box textarea, .box select { display: block; width: 100%; border: 0; border-radius: 0; background: transparent; padding: 12px 14px; font-size: 14px; color: var(--ink); outline: none; }
.box textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.box select[multiple] { padding: 6px; }
.box select[multiple] option { padding: 6px 8px; border-radius: 6px; }
.rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.rate input { position: absolute; opacity: 0; pointer-events: none; }
.rate label { font-family: Arial, "Segoe UI Symbol", sans-serif; font-size: 30px; line-height: 1; padding: 2px 3px; color: var(--line); cursor: pointer; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--accent); }
.rate input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.tagpick { display: flex; flex-wrap: wrap; gap: 6px; }
.tagpick label { position: relative; cursor: pointer; }
.tagpick input { position: absolute; opacity: 0; }
.tagpick span { display: inline-block; padding: 7px 13px; border-radius: var(--r-pill); background: #fff; font-size: 13px; color: var(--body); }
.tagpick input:checked + span { background: var(--ink); color: #fff; }
.tagpick input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.form-error { margin-top: 8px; color: var(--error); font-size: 13px; }
.hint { display: block; margin-top: 6px; font-size: 12px; color: var(--sub); }
.empty { padding: 32px 20px; border-radius: var(--r-card); background: var(--soft); text-align: center; color: var(--sub); }
.empty p { margin-bottom: 14px; }
.empty strong { color: var(--ink); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 18px; }
.tabs a { padding: 7px 13px; border-radius: var(--r-pill); background: var(--soft); color: var(--body); font-size: 13px; }
.tabs a.is-on { background: var(--ink); color: #fff; }
.auth { max-width: 420px; margin: 32px auto 48px; }
.auth-card { padding: 24px 20px; border-radius: var(--r-card); background: var(--soft); }
.auth-card h1 { margin-bottom: 8px; }
.auth-card > p { margin-bottom: 18px; font-size: 13px; color: var(--sub); }
.auth-card > p strong { color: var(--ink); }
.auth-note { margin-top: 16px; font-size: 12px; color: var(--sub); }

/* ── 출판사 센터·운영자 화면에서 쓰는 조각 ── */
.admin-nav { margin-top: 22px; }
.admin-nav + .admin-bar { margin-top: 12px; }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 18px; }
.admin-bar .tabs { margin: 0; flex: 1 1 auto; }
.admin-bar .search { flex: 1 1 240px; max-width: 340px; }
.pill { display: inline-block; padding: 3px 9px; border-radius: var(--r-pill); background: var(--soft); color: var(--body); font-size: 12px; line-height: 1.4; white-space: nowrap; }
.pill--warn { background: #fdecea; color: var(--error); }
.pill--lime { background: var(--ink); color: #fff; }
.pill--off { color: var(--sub); }
.pills { display: flex; flex-wrap: wrap; gap: 4px; }
.table-head { display: none; }
.table-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.table-row .row-book { grid-column: 1 / -1; }
.table-row .td::before { content: attr(data-k); display: block; margin-bottom: 2px; font-size: 12px; color: var(--sub); }
.table-row .td { color: var(--ink); }
.table-row .pills::before { flex-basis: 100%; }
.table-row .btn, .table-row .seg3, .table-row .row-links { grid-column: 1 / -1; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.row-book { display: flex; gap: 12px; align-items: center; color: var(--body); }
.row-book .cover { width: 40px; flex: none; }
.row-book strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.4; }
.row-book span.a { font-size: 12px; color: var(--sub); }
.row-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cell .k { display: block; font-size: 12px; color: var(--sub); }
.cell .v { display: block; margin-top: 2px; font-size: 14px; color: var(--ink); }
.cands { display: grid; gap: 8px; }
.cand { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px 14px; align-items: start; padding: 14px 16px; border-radius: var(--r-card); background: var(--soft); }
.cand--pub { grid-template-columns: 34px minmax(0, 1fr); }
.cand-body strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.4; }
.cand-body .a { display: block; margin-top: 2px; font-size: 12px; color: var(--sub); }
.cand-body .a + .a { margin-top: 6px; }
.cand-body .pills { margin-top: 8px; }
.cand-body .pills:empty { display: none; }
.cand .pill { background: #fff; }
.cand .pill--lime { background: var(--ink); }
.cand .pill--warn { background: #fdecea; }
.cand-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cand-actions .btn-outline, .cand-actions .btn-ghost { background: #fff; }
.rule-grid { display: grid; gap: 12px; margin-top: 20px; }
.rule-card { padding: 20px; border-radius: var(--r-card); background: var(--soft); }
.rule-card h2 { margin-bottom: 4px; }
.rule-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.rule-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 12px; border-radius: var(--r-pill); background: #fff; font-size: 13px; color: var(--ink); }
.rule-chip button { width: 20px; height: 20px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--soft); color: var(--sub); font-size: 14px; line-height: 1; }
.rule-chip button:hover { background: var(--ink); color: #fff; }
.rule-card .search { background: #fff; }
.rule-card .search button { padding: 0 16px; font-size: 13px; }
.admin-form { padding-top: 8px; }
.step { margin-top: 36px; }
.step > h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.step-n { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; }
.sub { margin: 28px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--sub); }
.sub:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.lookup { margin-top: 16px; }
.lookup .row { align-items: center; }
.checks { display: grid; gap: 10px; }
.admin-cols { display: grid; gap: 0; }
.preview #cover-preview { max-width: 160px; margin: 0 auto; }
.preview .hint { margin-bottom: 14px; }
.fetched { margin-top: 12px; padding: 18px; border-radius: var(--r-card); background: var(--soft); }
.fetched .k { display: block; margin-bottom: 8px; font-size: 12px; color: var(--sub); }
.fetched p + p { margin-top: 10px; }
.admin-foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.perks { display: grid; gap: 10px; margin: 26px 0 18px; }
.perk { padding: 20px; border-radius: var(--r-card); background: var(--soft); }
.perk b { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 700; }
.perk span { font-size: 13px; color: var(--sub); }
.mode-cards { display: grid; gap: 8px; }
.mode-card { position: relative; display: block; cursor: pointer; }
.mode-card input { position: absolute; opacity: 0; }
.mode-card span { display: block; padding: 14px 16px 14px 44px; border-radius: 12px; background: var(--soft); font-size: 12px; color: var(--sub); }
.mode-card span::before { content: ""; position: absolute; left: 16px; top: 17px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.mode-card strong { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 500; }
.mode-card input:checked + span { box-shadow: inset 0 0 0 1px var(--ink); }
.mode-card input:checked + span::before { background: radial-gradient(var(--ink) 0 4px, #fff 4.5px); box-shadow: inset 0 0 0 1px var(--ink); }
.mode-card input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.agree { margin-top: 6px; padding: 16px; border-radius: 12px; background: var(--soft); }
.fields { display: grid; gap: 0 16px; }
.seg3 { display: inline-grid; grid-template-columns: repeat(3, auto); padding: 3px; border-radius: var(--r-pill); background: var(--soft); justify-self: start; }
.seg3 button { padding: 6px 11px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--sub); font-size: 12px; white-space: nowrap; }
.seg3 button.is-on { background: var(--ink); color: #fff; }
.nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 0; margin: 28px 0 8px; }
.nums b { display: block; font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.nums span { font-size: 12px; color: var(--sub); }
.row-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.claim { max-width: 400px; }
.claim button { padding: 0 16px; font-size: 13px; }
.invs { display: grid; gap: 8px; margin-top: 12px; }
.inv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.inv input { flex: 1 1 260px; min-width: 0; padding: 10px 14px; border: 0; border-radius: var(--r-pill); background: var(--soft); font-size: 12px; color: var(--body); }
.inv .a { font-size: 12px; color: var(--sub); }

/* ── 바닥글·알림 ── */
.footer { margin-top: 64px; padding: 28px 0 36px; border-top: 1px solid var(--line); font-size: 12px; color: var(--sub); }
.footer-row { display: grid; gap: 16px; }
.footer-brand { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.footer-logo { display: block; height: 24px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: var(--ink); }
.footer-links a, .foot-link { background: none; border: 0; padding: 0; color: inherit; font-size: 12px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.footer-source { margin-top: 12px; color: var(--ink); }
.footer-fine { margin-top: 4px; }
.footer .btn { font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 78px; transform: translate(-50%, 16px); z-index: 50; max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: 13px; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .btn, .book-card, .newrail a, .toast { transition: none; }
}

/* ── 넓은 화면 ── */
@media (min-width: 640px) {
  .wrap { padding: 0 28px; }
  .grid-books { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; }
  .feed, .reviews--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .chips, .tagrow { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; overflow: visible; }
  .newrail { margin: 0 -28px; padding-left: 28px; padding-right: 28px; }
  .newrail a { width: 20%; }
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dist { grid-template-columns: auto 1fr; align-items: center; gap: 32px; padding: 22px 26px; }
  .voices { grid-template-columns: 1fr 1fr; }
  .perks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields .field:first-child { grid-column: 1 / -1; }
  .detail-hero { grid-template-columns: 150px minmax(0, 1fr); gap: 18px 28px; }
  .detail-cover { grid-row: span 2; }
  .detail-actions { grid-column: 2; margin-top: 0; }
  .detail-info h1 { font-size: 30px; }
  .pubintro { padding: 28px; }
  .first-line { font-size: 21px; }
  .nums { grid-template-columns: repeat(4, 1fr); }
  .pubcard { grid-template-columns: 130px minmax(0, 1fr); gap: 28px; }
  .pubcard-quote { font-size: 20px; }
}
@media (min-width: 900px) {
  /* PC: 하단 탭 대신 상단 메뉴 한 줄 */
  body { padding-bottom: 0; font-size: 15px; }
  .tabbar { display: none; }
  .nav-find { display: none; }
  .nav-row { gap: 22px; padding-top: 18px; padding-bottom: 18px; }
  .brand { margin-right: 12px; }
  .logo { font-size: 22px; }
  .nav-links { display: flex; gap: 22px; margin-right: auto; font-size: 14px; color: var(--sub); }
  .nav-links a:hover, .nav-links a.is-on { color: var(--ink); }
  .search.nav-search { display: flex; width: 220px; }
  .nav-write { display: inline-flex; padding: 10px 16px; font-size: 13px; }
  .toast { bottom: 28px; }
  .h1 { font-size: 32px; }
  .h2 { font-size: 22px; }
  .band .wrap { padding-top: 36px; padding-bottom: 12px; }
  .band h1 { font-size: 36px; }
  .section { padding-top: 64px; }
  .section-head h2, .sec-head h2 { font-size: 22px; }
  .section-head p, .sec-head p { font-size: 14px; }
  /* 첫 화면: 왼쪽에 한줄평, 오른쪽에 나의 2026과 오늘의 문장만. 한 화면에 보이는 덩어리를 줄였다. */
  .home { padding-top: 48px; display: block; }
  .feed-title { font-size: 44px; line-height: 1.25; }
  .home-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .home-side { margin-top: 12px; gap: 32px; position: sticky; top: 100px; }
  .tagrow { margin-top: 24px; }
  .feed { margin-top: 20px; }
  .review { padding: 20px; }
  .review-text { font-size: 15px; }
  .sec { margin-top: 88px; }
  .newrail { margin: 0; padding: 0; gap: 24px; overflow: visible; }
  .newrail a { width: auto; flex: 1 1 0; max-width: 160px; }
  .pubcard { grid-template-columns: 180px minmax(0, 1fr); gap: 48px; }
  .pubcard-quote { font-size: 26px; line-height: 1.55; }
  .pubcard-pub { font-size: 13px; }
  .softpills { margin-top: 24px; }
  .cta-row { margin-top: 80px; }
  .grid-books { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; }
  .specs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .detail-hero { grid-template-columns: 190px minmax(0, 1fr); gap: 20px 44px; align-items: center; }
  .detail-info h1 { font-size: 38px; }
  .footer-row { grid-template-columns: 1fr auto; align-items: start; }
  .row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr) auto; align-items: center; gap: 24px; }
  .table-head { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1.3fr) 56px 96px; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--sub); }
  .table-row { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1.3fr) 56px 96px; align-items: center; gap: 16px; padding: 14px 0; }
  .table--pub .table-head, .table--pub .table-row { grid-template-columns: minmax(0, 2fr) 130px 110px auto 190px; }
  .table-row .row-book, .table-row .btn, .table-row .seg3, .table-row .row-links { grid-column: auto; }
  .table-row .td::before { display: none; }
  .table-row .td { color: var(--body); }
  .admin-cols { grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; }
  .preview { position: sticky; top: 100px; }
  .cand { grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; }
  .cand--pub { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .cand-actions { grid-column: auto; justify-content: flex-end; }
  .rule-grid { grid-template-columns: 1fr 1fr; }
}

/* ══ 출판사 센터·운영자 화면 ══
   독자 화면과 같은 원칙(흰 바탕, 테두리 없음, 연회색 면)을 그대로 쓴다.
   사용자 지시("너무 흑백톤이네, 사이트 메인 색상으로 포인트를 주라")에 따라 강조색을
   주 단추, 지금 보는 탭 밑줄, 머리글의 작은 점, 단계 번호에만 쓴다. 면 전체를 칠하지 않는다. */
body.back { padding-bottom: 0; }
body.back .tabbar, body.back .nav-links, body.back .search.nav-search, body.back .nav-write, body.back .nav-find { display: none; }
body.back .nav { border-bottom: 1px solid var(--line); }
body.back .brand { margin-right: auto; }
body.back .brand-suffix { display: inline-flex; align-items: center; gap: 6px; }
body.back .brand-suffix::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
body.back .badges { display: none; }
body.back .band .wrap { padding-top: 28px; }
body.back .band h1 { font-size: 26px; }
body.back .btn-primary { background: var(--accent); color: #fff; font-weight: 600; }
body.back .admin-nav .btn-outline.is-on { background: var(--ink); color: #fff; }
body.back .tabs a { padding: 7px 2px; margin-right: 12px; border-radius: 0; background: none; color: var(--sub); border-bottom: 2px solid transparent; }
body.back .tabs a.is-on { background: none; color: var(--ink); border-bottom-color: var(--accent); }
body.back .step-n { background: var(--accent); }
body.back .toast { bottom: 28px; }

/* ── 이 책 어때요(출판사가 직접 소개한 소설 모음) ── */
.howlist { display: grid; margin-top: 8px; }
.howitem { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; align-items: start; padding: 24px 0; border-top: 1px solid var(--line); color: var(--body); }
.howitem:first-child { border-top: 0; }
.howitem-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.howitem-quote { margin-bottom: 6px; font-family: var(--serif); font-size: 16px; font-weight: 500; line-height: 1.6; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.howitem-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.howitem-sub { font-size: 12px; color: var(--sub); }
.howitem .softpills { margin-top: 8px; }
.howitem:hover .howitem-title { text-decoration: underline; text-underline-offset: 4px; }
/* 첫 화면 '이 책 어때요' 구역 아래의 작은 출판사 입구 */
.sec-note { margin-top: 16px; font-size: 12px; color: var(--sub); }
.sec-note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
@media (min-width: 900px) {
  .howlist { grid-template-columns: 1fr 1fr; column-gap: 64px; margin-top: 20px; }
  .howitem { grid-template-columns: 116px minmax(0, 1fr); gap: 28px; padding: 36px 0; }
  .howitem:nth-child(2) { border-top: 0; }
  .howitem-quote { font-size: 19px; }
  .howitem-title { font-size: 15px; }
  .howitem-sub { font-size: 13px; }
  .sec-note { margin-top: 20px; font-size: 13px; }
  .nav-links a { white-space: nowrap; }
}

/* ── 닉네임 메뉴 ──
   닉네임을 누르면 열린다. 휴대폰은 아래에서 올라오는 판, PC는 닉네임 아래 펼침 메뉴.
   머리글(.nav)에 backdrop-filter가 걸려 있어 그 안에 두면 fixed가 어긋나므로 body 바로 아래(#accLayer)에 둔다. */
.nav-account .acc-btn { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.acc-btn span { display: inline-block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-btn svg { flex: none; color: var(--sub); }
.acc-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc-layer { position: fixed; inset: 0; z-index: 40; }
.acc-back { position: absolute; inset: 0; background: rgba(22, 22, 26, 0.36); }
.acc-menu { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 20px calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 20px 20px 0 0; background: #fff; }
.acc-head { padding: 18px 0 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.acc-head strong { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.acc-head span { display: block; margin-top: 2px; font-size: 12px; color: var(--sub); }
.acc-menu a, .acc-menu button { display: block; width: 100%; padding: 14px 0; border: 0; background: none; text-align: left; font-size: 15px; font-weight: 400; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-menu .acc-sub { color: var(--sub); }
.acc-menu .acc-out { margin-top: 6px; border-top: 1px solid var(--line); color: var(--sub); }
@media (min-width: 900px) {
  .acc-back { background: transparent; }
  .acc-menu { left: auto; bottom: auto; top: var(--acc-top, 64px); right: var(--acc-right, 28px); width: 232px; padding: 4px 18px 6px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(22, 22, 26, 0.1); }
  .acc-head { padding: 14px 0 12px; margin-bottom: 4px; }
  .acc-head strong { font-size: 14px; }
  .acc-menu a, .acc-menu button { padding: 10px 0; font-size: 14px; }
  .acc-menu a:hover, .acc-menu button:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
  .acc-menu .acc-out { margin-top: 4px; }
}

/* ── 내 정보 ── */
.acct { max-width: 520px; margin-top: 8px; }
.acct-sec { padding: 28px 0; border-top: 1px solid var(--line); }
.acct-sec:first-child { border-top: 0; }
.acct-sec h2 { margin-bottom: 12px; font-size: 16px; }
.acct-sec > p { font-size: 14px; }
.acct-sec > .btn { margin-top: 14px; }

/* ── 첫 화면: 오픈 초기 구성(한줄평이 적을 때) ──
   이 책 어때요 → 신작로 → 한줄평 순서. 한줄평이 쌓이면 원래 순서(한줄평 → 신작로 → 이 책 어때요)로 돌아간다. */
.home--early .sec--pub { order: 1; }
.home--early .sec--new { order: 2; }
.home--early .home-main { order: 3; margin-top: 48px; }
.sec--lead { margin-top: 0; }
.sec--lead .sec-head h1 { font-size: 26px; line-height: 1.3; font-weight: 700; }
.sec--lead .sec-head p { margin-top: 4px; }
.sec--lead .howlist { margin-top: 24px; border-top: 1px solid var(--line); }
.feed-title--sub { font-size: 20px; }
/* 피드에 섞이는 편집자의 말: 독자 한줄평과 같은 카드 모양에 라벨과 명조로만 구분한다 */
.review--editor { display: block; color: var(--body); }
.review--editor .sticker { display: block; margin-bottom: 8px; }
.review--editor .review-text { font-family: var(--serif); }
/* 별점만 남긴 것, 한줄평이 없는 소설의 빈자리 안내 */
.review-text--none { color: var(--sub); }
.first-invite { margin-bottom: 12px; font-size: 14px; color: var(--sub); }
.first-invite strong, .empty p strong { color: var(--ink); font-weight: 600; }
.footer-side { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) {
  .home--early .home-main { margin-top: 0; }
  .home--early .home-grid { margin-top: 88px; }
  .sec--lead .sec-head { margin-bottom: 28px; }
  .sec--lead .sec-head h1 { font-size: 44px; line-height: 1.25; }
  .sec--lead .howlist { margin-top: 40px; }
  .feed-title--sub { font-size: 28px; }
}

/* "우리 책이에요" 요청: 막힘 안내 옆의 요청 단추 */
[data-claim-error] { color: var(--ink); }
[data-claim-error] .btn { margin: 8px 0 0; display: flex; width: fit-content; }

/* ── 실제 도서 정보(예스24) ── */
/* 표지: 예스24가 준 그림 주소를 그대로 보여 준다. 받는 동안은 빈 자리만 잡아 둔다. */
.cover--img { background: var(--soft); }
.cover--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.newrail > .cover { flex: none; width: 30%; max-width: 140px; }
.toc-raw { padding: 0 16px 14px; font-size: 14px !important; line-height: 1.9 !important; white-space: pre-line; }
.source a { margin-left: 8px; }
.source--list { margin-top: 36px; }
@media (min-width: 640px) { .newrail > .cover { width: 20%; } }
@media (min-width: 900px) { .newrail > .cover { width: auto; flex: 1 1 0; max-width: 160px; } }

/* ── 머리글 로고: 한글 이름 "소설街" 뒤에 영문 로고(ll 을 도로로 그린 novellst.)를 붙인다(사용자 지시) ── */
.logo-han { font-weight: 500; letter-spacing: -0.02em; }
.logo-mark { display: block; align-self: center; height: 15px; width: auto; flex: none; }
@media (max-width: 899px) { .logo { font-size: 18px; } .nav-account .acc-btn span { max-width: 84px; } }
/* 아주 좁은 휴대폰에서는 자리가 모자라 영문 로고를 뺀다 */
@media (max-width: 359px) { .logo-mark { display: none; } }
@media (min-width: 900px) { .logo-mark { height: 19px; } }
/* 머리글이 비좁은 폭(900~1099px)에서는 검색창을 돋보기 단추로 바꿔 메뉴가 꺾이지 않게 한다 */
@media (min-width: 900px) and (max-width: 1099px) { body:not(.back) .search.nav-search { display: none; } body:not(.back) .nav-find { display: grid; } }

/* ══ 실제 운영판(body.real): 하단 탭 없이 머리글에 홈·신간 메뉴를 늘 보여 준다 ══ */
body.real { padding-bottom: 0; }
body.real .nav-links { display: flex; gap: 16px; margin-right: auto; font-size: 14px; color: var(--sub); }
body.real .nav-links a { white-space: nowrap; }
body.real .nav-links a:hover, body.real .nav-links a.is-on { color: var(--ink); }
body.real .brand { margin-right: 10px; align-items: center; gap: 7px; }
body.real .toast { bottom: 28px; }
/* 머리글 로고 앞의 도로 아이콘(탭 아이콘과 같은 그림 — 사용자 지시) */
.logo-icon { display: block; width: 22px; height: 22px; flex: none; border-radius: 5px; }
/* 좁은 화면에서는 자리가 모자라 영문 로고를 뺀다(아이콘과 한글 이름은 남는다) */
@media (max-width: 479px) { body.real .logo-mark { display: none; } }
@media (min-width: 900px) { .logo-icon { width: 26px; height: 26px; border-radius: 6px; } body.real .brand { gap: 9px; margin-right: 14px; } body.real .nav-links { gap: 22px; } }
.section-head--top { margin: 18px 0 14px; }
.cand-body a, a.cand-cover { color: inherit; }
.cand-body strong a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.back .footer-links { display: none; }

/* 운영판: 휴대폰에서는 하단 탭(홈·신간·쓰기·내 서재)을 쓰고 머리글 메뉴는 감춘다 */
@media (max-width: 899px) {
  body.real:not(.back) { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  body.real .nav-links { display: none; }
  body.real .brand { margin-right: auto; }
  body.real:not(.back) .toast { bottom: 78px; }
}
body.real .book-card-rating { margin-top: 2px; }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* 머리글 이름 "소설街": 한자도 한글과 같은 굵기로 */
body.real .logo-han { font-weight: inherit; letter-spacing: 0; }

.home-top { padding-top: 18px; }
@media (min-width: 900px) { .home-top { padding-top: 48px; } }

/* ── 소설 성분표 ── */
.trait-find { margin: 20px 0 6px; padding: 16px; background: var(--soft); }
.trait-find-row { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px 0; }
.trait-find-row > strong { padding-top: 6px; font-size: 14px; }
.trait-find-row .chips { margin: 0; }
.trait-find .chip.is-on { background: var(--accent); color: #fff; }
.cat-details { margin-top: 34px; padding: 16px; background: var(--soft); }
.cat-details summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.cat-details .chips { margin: 14px 0 0; }

.traits { margin-top: 34px; }
.trait-table { margin-top: 12px; padding: 8px 16px; background: var(--soft); }
.trait-row { display: grid; grid-template-columns: 48px minmax(90px, 1fr) minmax(72px, auto) minmax(104px, auto); gap: 12px; align-items: center; min-height: 48px; }
.trait-name { color: var(--ink); font-weight: 600; }
.trait-row strong { font-size: 14px; }
.trait-row small { color: var(--sub); text-align: right; }
.trait-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.trait-bar i { display: block; height: 8px; background: #deded9; }
.trait-bar i.is-on { background: var(--accent); }
.trait-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.trait-admin { margin-top: 18px; padding: 16px; background: var(--soft); }
.trait-admin .h3 { margin-bottom: 10px; }

.trait-inputs { display: grid; gap: 8px; width: 100%; }
.trait-input { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: start; }
.trait-input > .k { padding-top: 6px; color: var(--sub); font-size: 12px; }
.trait-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.trait-choices label { position: relative; }
.trait-choices input { position: absolute; opacity: 0; pointer-events: none; }
.trait-choices .chip { display: block; cursor: pointer; margin: 0; }
.trait-choices input:checked + .chip { background: var(--accent); color: #fff; }
.trait-choices input:focus-visible + .chip { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (max-width: 520px) {
  .trait-find { padding: 12px; }
  .trait-find-row, .trait-input { grid-template-columns: 1fr; gap: 3px; }
  .trait-find-row > strong, .trait-input > .k { padding-top: 0; }
  .trait-find-row .chips, .trait-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .trait-find-row .chip, .trait-choices .chip { width: 100%; text-align: center; padding-left: 8px; padding-right: 8px; }
  .trait-row { grid-template-columns: 42px minmax(72px, 1fr) minmax(62px, auto); gap: 8px; padding: 7px 0; }
  .trait-row small { grid-column: 2 / 4; text-align: left; margin-top: -8px; }
  .trait-table { padding: 6px 12px; }
}

/* 성분 고르기 알약: 휴대폰에서도 네 개를 한 줄에, 고른 것은 다른 알약들과 같은 검정으로(강조색은 성분 막대에만) */
.trait-find .chip.is-on, .trait-choices input:checked + .chip { background: var(--ink); color: #fff; }
@media (max-width: 639px) {
  .trait-find-row .chips, .trait-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .trait-find-row .chip, .trait-choices .chip { padding: 7px 2px; font-size: 12px; white-space: nowrap; }
  .trait-find-row, .trait-input { padding: 4px 0; }
}

/* 진행 중 이벤트와 하위 분류 */
.event-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 9px 20px;
  border-bottom: 1px solid var(--line); background: var(--soft); color: var(--ink); font-size: 13px;
}
.event-banner span { color: var(--sub); font-size: 11px; font-weight: 700; }
.event-banner strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-banner b { color: var(--accent); }
.subchips { margin-top: 9px; padding-top: 10px; border-top: 1px solid var(--line); }
.subchips .chip { background: var(--soft); }
.subchips .chip.is-on { background: var(--ink); color: #fff; }

/* 직접 입력 태그 */
.tag-editor { min-width: 0; }
.tag-tokens { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-height: 46px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tag-token { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 7px 6px 11px; border-radius: var(--r-pill); background: var(--soft); color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.tag-token small { color: var(--sub); font-size: 10px; }
.tag-token button { flex: none; display: grid; width: 20px; height: 20px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--sub); }
.tag-input-wrap { position: relative; flex: 1 1 220px; min-width: 150px; }
.tag-input-wrap input { width: 100%; min-height: 30px; padding: 3px 6px; border: 0; outline: 0; background: transparent; font: inherit; }
.tag-suggestions { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: min(360px, calc(100vw - 64px)); padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(20,20,20,.12); }
.tag-suggestions button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: #fff; text-align: left; }
.tag-suggestions button:hover, .tag-suggestions button.is-active { background: var(--soft); }
.tag-suggestions small { color: var(--sub); }
.tag-limit { margin-top: 6px; color: var(--error); font-size: 12px; }
.tag-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.tag-popular > span { color: var(--sub); font-size: 11px; }
.tag-popular button { padding: 5px 9px; border: 0; border-radius: var(--r-pill); background: var(--soft); color: var(--body); font-size: 12px; }
.review-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.review-tags span { padding: 4px 8px; border-radius: var(--r-pill); background: #fff; color: var(--body); font-size: 11px; }
.review-tag-notice { margin-top: 8px; color: var(--sub); font-size: 11px; }
.book-tags { display: grid; gap: 16px; }
.book-tag-line strong { display: block; margin-bottom: 8px; font-size: 12px; }
.book-tag-line > div { display: flex; flex-wrap: wrap; gap: 6px; }
.book-tag-line .tagpill { white-space: normal; }
.book-tag-line .tagpill small { color: var(--sub); font-size: 10px; }
.pub-tag-summary { display: block; margin-top: 7px; color: var(--sub); font-size: 11px; }
.tag-only-save { margin-top: 9px; }

@media (max-width: 420px) {
  .tag-input-wrap { flex-basis: 100%; min-width: 0; }
  .tag-suggestions { width: calc(100vw - 72px); }
  .tag-token { align-items: flex-start; }
  .tag-token small { display: block; }
  .book-tag-line .tagpill { max-width: 100%; }
}
.event-head .eyebrow { display: inline-block; margin-top: 18px; color: var(--accent); }
.event-page { padding-top: 28px; padding-bottom: 50px; }
.event-copy { max-width: 780px; padding: clamp(22px, 4vw, 38px); background: var(--soft); }
.event-copy p { margin: 0; font-size: 15px; line-height: 1.9; white-space: pre-line; }
.event-closed { padding: 16px; background: var(--soft); color: var(--sub); text-align: center; }

@media (max-width: 620px) {
  .event-banner { justify-content: flex-start; padding-inline: 16px; }
  .event-banner span { display: none; }
}

/* 기획 반영: 찾기 방식, 비어 있는 성분표, 편집자의 말 */
.finder-modes { margin-top: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.finder-modes .chip.is-on, .tag-find .chip.is-on { background: var(--ink); color: #fff; }
.tag-find { margin: 18px 0 4px; }
.traits--empty { padding: 18px 20px; background: #efefec; color: #92928d; pointer-events: none; user-select: none; }
.traits--empty .h2 { margin: 0 0 8px; color: #858580; }
.traits--empty p { margin: 0; }
.bibliography { margin-top: 34px; }
.editor-section { clear: both; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.editor-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.editor-card { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; min-width: 0; padding: 16px; background: var(--soft); color: var(--ink); }
.editor-cover .cover { width: 78px; }
.editor-body { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 7px; }
.editor-quote { display: -webkit-box; overflow: hidden; color: var(--ink); font-size: 14px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.editor-body strong { overflow: hidden; width: 100%; margin-top: auto; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.editor-meta { overflow: hidden; width: 100%; color: var(--sub); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.editors-page { padding-top: 24px; padding-bottom: 48px; }
.pills a.pill { color: inherit; text-decoration: none; }
.pills a.pill--lime { color: #fff; } /* 검은 알약 링크(출판사 센터 "사이트 게시됨")의 글자가 안 보이던 것 — 2026-12-01 */

@media (max-width: 899px) {
  .editor-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .editor-grid, .editor-grid--home { grid-template-columns: 1fr; }
  .editor-card { grid-template-columns: 66px minmax(0, 1fr); padding: 13px; }
  .editor-cover .cover { width: 66px; }
  .traits--empty { padding: 16px; }
}

/* CODEX-20261129-009: 책의 고유 정보가 먼저 보이는 상세 화면 */
.detail-rating { display: flex; align-items: center; gap: 8px; }
.index-number { display: flex; align-items: baseline; gap: 8px; width: fit-content; margin-top: 13px; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.index-number span { color: var(--sub); font-size: 12px; font-weight: 700; }
.index-number strong { font-family: Montserrat, Pretendard, sans-serif; font-size: 26px; line-height: 1; }
.index-number i, .rising-card i { color: #8b8b93; font-style: normal; font-size: 12px; }
.index-number i.up, .rising-card i.up { color: #ff5533; }
.book-like { display: inline-flex; align-items: center; gap: 6px; }
.book-like svg { width: 16px; height: 16px; }
.book-like.is-on { border-color: #ff5533; color: #ff5533; }
.book-like.is-on svg { fill: currentColor; }
.index-history { display: grid; gap: 12px; margin: 0 0 34px; padding: 18px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.index-history h2 { font-size: 16px; }
.index-history p { margin-top: 3px; color: var(--sub); font-size: 12px; }
.index-chart { display: block; width: 100%; max-width: 680px; height: auto; overflow: visible; }
.index-chart line { stroke: var(--line); stroke-width: 1; }
.index-chart polyline { fill: none; stroke: #16161a; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.index-chart circle { fill: #ff5533; }
.index-chart text { fill: #8b8b93; font-size: 10px; }

.trait-source { margin: 5px 0 0; color: var(--sub); font-size: 12px; }
.trait-radar { position: relative; width: min(100%, 440px); margin: 4px auto 0; }
.trait-radar svg { display: block; width: 100%; height: auto; overflow: visible; }
.trait-radar text { fill: var(--ink); font-size: 11px; font-weight: 600; }
.radar-grid, .radar-axis { fill: none; stroke: #d9d9d4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.radar-value { fill: rgba(255, 85, 51, 0.23); stroke: #ff5533; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.radar-dot { fill: #ff5533; }
.radar-empty { position: absolute; left: 50%; top: 46%; width: 100%; transform: translate(-50%, -50%); color: #8b8b93; text-align: center; font-size: 13px; }
.traits--empty .trait-radar text { fill: #92928d; }
.traits--empty .radar-grid, .traits--empty .radar-axis { stroke: #cfcfca; }
.traits--empty .h2 { margin-bottom: 0; }

.bookstore-info { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); }
.bookstore-info > .h2 { margin-bottom: 26px; }
.bookstore-info .summary, .bookstore-info .bibliography { margin-top: 0; padding: 0; }
.bookstore-info .bibliography { margin-top: 34px; }
.bookstore-info .h3 { margin-bottom: 12px; font-size: 16px; }

.rising-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.rising-card { display: flex; min-width: 0; flex-direction: column; gap: 10px; color: var(--ink); }
.rising-card .cover { width: 100%; }
.rising-card > span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.rising-card strong, .rising-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rising-card strong { font-size: 13px; }
.rising-card small { color: var(--sub); font-size: 11px; }
.rising-card b { margin-top: 4px; font-size: 11px; }
.rising-card b i { margin-left: 3px; }

@media (min-width: 640px) {
  .index-history { grid-template-columns: minmax(180px, .55fr) minmax(300px, 1fr); align-items: center; }
}
@media (max-width: 639px) {
  .detail-actions .btn { flex: 1 1 calc(50% - 4px); min-width: 0; justify-content: center; padding-inline: 10px; white-space: normal; text-align: center; }
  .index-number strong { font-size: 23px; }
  .traits { margin-top: 28px; }
  .trait-radar { width: 100%; }
  .trait-radar text { font-size: 10.5px; }
  .rising-grid { display: flex; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
  .rising-card { flex: 0 0 132px; }
  .bookstore-info { margin-top: 34px; }
}

/* CODEX-20261129-010: 책 상세 A안 — 본문 옆에 성분표와 지수 카드를 둔다. */
.detail-main { max-width: 1080px; padding-bottom: 60px; }
.detail-layout { display: flex; min-width: 0; flex-direction: column; }
.detail-side { display: grid; gap: 12px; min-width: 0; margin-top: 28px; }
.detail-content { min-width: 0; }
.detail-head { min-width: 0; }
.band--detail .detail-main { padding-bottom: 60px; }
.detail-content > section { margin-top: 34px; }
.detail-card { min-width: 0; margin: 0; padding: 18px 20px; border-radius: 14px; background: var(--soft); }
.detail-card > .h2, .detail-card h2 { margin: 0; font-size: 15px; line-height: 1.4; }

.detail-side .traits { margin-top: 0; }
.detail-side .traits--empty { padding: 18px 20px; background: var(--soft); }
.detail-side .traits--empty .h2 { margin-bottom: 0; }
.detail-side .trait-source { margin-top: 4px; }
.detail-side .trait-radar { width: min(100%, 260px); margin: 6px auto 0; }
.detail-side .trait-radar text { font-size: 12px; }
.detail-side .radar-empty { position: static; width: auto; margin: 2px 0 0; transform: none; text-align: center; }
.trait-levels { display: grid; gap: 4px; margin-top: 8px; font-size: 13px; }
.trait-levels li { display: flex; justify-content: space-between; gap: 16px; color: var(--body); }
.trait-levels b { color: var(--ink); font-weight: 600; }

.detail-side .index-history { display: block; margin: 0; border: 0; }
.detail-side .index-history p { margin-top: 2px; }
.detail-side .index-chart { width: 100%; max-width: none; margin-top: 10px; }

@media (min-width: 960px) {
  .band--detail .detail-hero { grid-template-columns: 200px minmax(0, 1fr); gap: 20px 36px; align-items: start; }
  .band--detail .detail-cover { grid-row: span 2; }
  .band--detail .detail-actions { grid-column: 2; }
  /* 곁칸(태그·성분표·지수)을 표지 옆으로 올린다: [표지·정보 | 곁칸] / [본문 | 곁칸] */
  .detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "head side" "content side"; grid-template-rows: auto 1fr; column-gap: 40px; row-gap: 0; align-items: start; }
  .detail-head { grid-area: head; min-width: 0; }
  .detail-content { grid-area: content; }
  .detail-side { position: sticky; top: 96px; grid-area: side; align-self: start; margin-top: 6px; }
  .band--detail .detail-hero { grid-template-columns: 180px minmax(0, 1fr); gap: 18px 30px; }
  .band--detail .detail-info h1 { font-size: 32px; overflow-wrap: anywhere; }
}

/* 독자 추천 */
.recommend-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.recommend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.recommend-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.recommend-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper, #fff); }
.recommend-link { display: block; color: inherit; text-decoration: none; }
.recommend-book { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 13px; align-items: center; min-width: 0; }
.recommend-book .cover { width: 54px; }
.recommend-book strong, .recommend-book small { display: block; min-width: 0; }
.recommend-book strong { font-size: 15px; line-height: 1.35; }
.recommend-book small { margin-top: 4px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.recommend-copy { min-width: 0; margin-top: 16px; }
.recommend-copy p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--ink); font-size: 15px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 6; }
.recommend-copy p.is-open { display: block; }
.recommend-more { margin-top: 7px; padding: 0; border: 0; background: none; color: var(--green); font: inherit; font-size: 13px; cursor: pointer; }
.recommend-by { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; }
.recommend-wait { padding: 18px 20px; border-radius: 12px; background: var(--soft); color: var(--muted); }
.recommend-wait a { color: var(--green); font-weight: 700; }
.recommends-page { padding-top: 28px; padding-bottom: 56px; }
.book-recommends { margin-top: 34px; }
.book-recommends .section-head { align-items: center; margin-bottom: 14px; }
.book-recommends .section-head p { margin: 4px 0 0; }
.recommend-write { max-width: 820px; padding-top: 28px; padding-bottom: 60px; }
.recommend-step { margin-bottom: 28px; }
.recommend-step h2 { margin: 0 0 14px; font-size: 20px; }
.recommend-search { margin: 0; }
.recommend-results { display: grid; gap: 8px; margin-top: 14px; }
.recommend-result { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: inherit; text-align: left; cursor: pointer; }
.recommend-result .cover { width: 48px; }
.recommend-result strong, .recommend-result small, .recommend-result i { display: block; }
.recommend-result small { margin-top: 3px; color: var(--muted); }
.recommend-result i { margin-top: 7px; color: var(--green); font-style: normal; font-size: 12px; font-weight: 700; }
.recommend-result:disabled { opacity: .48; cursor: not-allowed; }
.recommend-picked { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.recommend-picked .cover { width: 74px; }
.recommend-picked small, .recommend-picked strong, .recommend-picked span span, .recommend-picked a { display: block; }
.recommend-picked small { color: var(--green); font-weight: 700; }
.recommend-picked strong { margin-top: 4px; font-size: 18px; }
.recommend-picked span span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.recommend-picked a { margin-top: 9px; color: var(--green); font-size: 13px; }
.recommend-form textarea { min-height: 220px; }
.recommend-count { color: var(--muted); font-size: 13px; }
.library-recommends { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.library-recommend { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.library-recommend > p { margin: 15px 0; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.library-recommend > div:last-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.state-pill { padding: 4px 9px; border-radius: 999px; background: var(--soft); color: var(--green); font-size: 12px; font-weight: 700; }
.library-recommend .text-actions { display: flex; gap: 10px; }
.library-recommend .text-actions a, .library-recommend .text-actions button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.library-recommend .text-actions .btn-danger { color: var(--danger, #a23535); }
.book-request-box { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 28px 0 8px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.book-request-box strong { display: block; font-size: 20px; }
.book-request-box p { margin: 5px 0 0; color: var(--muted); }
.book-request-box.is-compact { padding: 18px 20px; }
.book-request-box.is-compact strong { font-size: 16px; }
.request-results a.recommend-result { text-decoration: none; }
.request-form input { width: 100%; }
.library-requests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.library-request { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.library-request > p { margin: 15px 0; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.library-request > div:last-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.library-request .text-btn { border: 0; background: none; color: var(--danger, #a23535); font: inherit; font-size: 13px; cursor: pointer; }
.state-pill.is-in { background: #edf6e9; }
@media (max-width: 639px) {
  .recommend-title { align-items: flex-start; flex-direction: column; }
  .recommend-grid, .recommend-grid--home, .library-recommends, .library-requests { grid-template-columns: 1fr; }
  .recommend-card { padding: 16px; }
  .book-recommends .section-head { align-items: flex-start; gap: 12px; }
  .recommend-write { padding-top: 20px; }
  .book-request-box { align-items: stretch; flex-direction: column; padding: 18px; }
  .book-request-box .btn { width: 100%; text-align: center; }
}

/* 파문 · 쓰기 고르기 */
.write-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-top: 28px; padding-bottom: 60px; }
.write-menu a { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; }
.write-menu strong, .write-menu span { display: block; }
.write-menu strong { font-size: 19px; }
.write-menu span { margin-top: 8px; color: var(--sub); font-size: 13px; line-height: 1.6; }
.today-ripple-card { display: block; padding: 28px; border-radius: 14px; background: var(--soft); color: var(--ink); text-decoration: none; }
.today-ripple-card blockquote { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.65; overflow-wrap: anywhere; }
.today-ripple-card > span { display: block; margin-top: 18px; color: var(--sub); font-size: 13px; }
.ripples-page { padding-bottom: 64px; }
.ripple-list { display: grid; gap: 12px; }
.ripple-list--page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ripple-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ripple-card--mine { box-shadow: inset 0 0 0 1px var(--ink); }
.ripple-card--hidden { opacity: .7; }
.ripple-card blockquote { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.65; overflow-wrap: anywhere; }
.ripple-note { margin-top: 13px; color: var(--body); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.ripple-hidden-note { margin-top: 10px; color: var(--error); font-size: 12px; }
.ripple-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 18px; color: var(--sub); font-size: 12px; }
.ripple-meta a { min-width: 0; color: var(--ink); text-decoration: none; }
.ripple-meta strong, .ripple-meta a span { display: block; overflow-wrap: anywhere; }
.ripple-meta a span { margin-top: 2px; color: var(--sub); font-size: 11px; }
.ripple-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ripple-actions .text-actions { display: flex; gap: 10px; }
.ripple-actions .text-actions a, .ripple-actions .text-actions button, .ripple-actions .text-btn { padding: 0; border: 0; background: none; color: var(--sub); font: inherit; font-size: 12px; cursor: pointer; }
.ripple-actions .text-actions .btn-danger { color: var(--danger, #a23535); }
.ripple-report { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ripple-report select { max-width: 92px; padding: 5px 22px 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--sub); font: inherit; font-size: 11px; }
.ripple-like { flex: none; gap: 5px; }
.ripple-more-link { display: inline-block; margin-top: 14px; }
.ripple-filter { margin: -8px 0 18px; font-size: 13px; }
.ripple-filter a { color: var(--green); }
.ripple-form textarea { min-height: 112px; }
.ripple-form textarea[name="note"] { min-height: 132px; }
@media (max-width: 639px) {
  .write-menu, .ripple-list--page { grid-template-columns: 1fr; }
  .write-menu { padding-top: 20px; }
  .write-menu a { padding: 20px; }
  .today-ripple-card { padding: 20px; }
  .today-ripple-card blockquote { font-size: 20px; }
  .ripple-card { padding: 16px; }
  .ripple-meta { align-items: flex-start; flex-direction: column; gap: 7px; }
  .ripple-actions { align-items: flex-end; flex-wrap: wrap; }
}

/* 첫 화면 한 줄 넘김(주목할만한 거리·신작로 — 2026-11-30 사용자 요청). PC는 양옆 화살표, 휴대폰은 밀어서. */
.home-rails > .rail-sec:first-child { margin-top: 28px; }
.book-rail { position: relative; }
.book-rail-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; margin: 0 -20px; padding: 0 20px 6px; scrollbar-width: none; }
.book-rail-track::-webkit-scrollbar { display: none; }
.book-rail-track > .book-card { flex: 0 0 40%; min-width: 0; scroll-snap-align: start; }
.rail-arrow { display: none; }
@media (min-width: 768px) {
  .book-rail-track { gap: 20px; margin: 0; padding: 0 0 6px; }
  .book-rail-track > .book-card { flex-basis: calc((100% - 60px) / 4); }
  .rail-arrow { position: absolute; top: 34%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); cursor: pointer; transform: translateY(-50%); transition: opacity 0.15s; }
  .rail-prev { left: -22px; }
  .rail-next { right: -22px; }
  .rail-arrow:hover { background: var(--soft); }
  .rail-arrow:disabled { opacity: 0; pointer-events: none; }
}
@media (min-width: 1100px) {
  .book-rail-track > .book-card { flex-basis: calc((100% - 80px) / 5); }
}
@media (prefers-reduced-motion: reduce) { .book-rail-track { scroll-behavior: auto; } }

/* 출판사 센터 책 줄: 소개 여부 알약 옆 작은 글자 링크(새 창) */
.pills a.center-site-link { align-self: center; margin-left: 4px; color: var(--sub); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.pills a.center-site-link:hover { color: var(--ink); }

/* 출판사 소개 쓰기: 서점 정보 가져올 곳(예스24 그대로 / 직접 작성) — 2026-12-01 */
.intro-src { margin-bottom: 12px; }
.intro-pane[hidden] { display: none; }
.intro-note { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: var(--soft); color: var(--body); font-size: 13px; line-height: 1.6; }
.intro-note--warn { background: #fff4ec; color: #8a3b12; }
.intro-ro { max-height: 260px; overflow-y: auto; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px; background: #fafafa; color: var(--sub); font-size: 14px; line-height: 1.7; white-space: normal; }
.ro-tag { margin-left: 6px; color: var(--sub); font-size: 11px; font-weight: 500; }

/* 출판사 센터 '우리 책으로 등록하기' 찾은 책 목록 */
.claim-msg { margin-bottom: 12px; padding: 14px 16px; border-radius: 12px; background: var(--soft); }
.claim-results { display: grid; gap: 8px; }
.claim-result { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.claim-result .cover { width: 44px; }
.claim-result-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.claim-result-body strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.claim-result-body small { overflow: hidden; color: var(--sub); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.claim-result-body i { color: var(--sub); font-size: 12px; font-style: normal; }
.claim-result.is-off { opacity: 0.55; }

/* 입력칸 필수·선택 표시 */
.mark-req, .mark-opt { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.5; vertical-align: 1px; }
.mark-req { background: #fff0e8; color: var(--accent, #e8562a); }
.mark-opt { background: #e4e4e8; color: #55555c; } /* 양식 바탕(soft)과 겹쳐 안 보이던 것 — 짙은 회색 바탕 */

/* 함께 읽으면 좋은 책 고르기 */
.together-chosen { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.together-empty { margin: 0; font-size: 13px; }
.together-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 6px 4px 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px; }
.together-chip .cover { width: 28px; flex: none; }
.together-chip > span:not(.cover) { overflow: hidden; max-width: 220px; text-overflow: ellipsis; white-space: nowrap; }
.together-chip button { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: var(--soft); color: var(--sub); font-size: 15px; line-height: 1; cursor: pointer; }
.together-search { margin-bottom: 10px; }

/* 태그 입력: 고른 태그 / 기본 태그에서 고르기 / 직접 입력 (2026-12-01) */
.tag-chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-height: 46px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tag-none { color: var(--sub); font-size: 13px; }
.tag-count { margin-left: auto; color: var(--sub); font-size: 12px; font-variant-numeric: tabular-nums; }
.tag-block { display: grid; gap: 8px; margin-top: 12px; }
.tag-sub { color: var(--body); font-size: 12px; font-weight: 600; }
.tag-sub small { margin-left: 6px; color: var(--sub); font-weight: 400; }
.tag-preset-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-preset { padding: 6px 11px; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; color: var(--body); font: inherit; font-size: 13px; cursor: pointer; }
.tag-preset:hover { border-color: #c9c9cf; }
.tag-preset.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.tag-preset:disabled { opacity: 0.4; cursor: not-allowed; }
.tag-direct { display: block; padding: 6px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tag-direct input { min-height: 32px; }

/* 함께 읽으면 좋은 책: 한 덩어리 카드로 묶고, 찾기 칸을 흰 바탕·테두리·검은 단추로 또렷하게(2026-12-01 사용자 지적) */
.together-pick { gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.together-pick > .k { color: var(--ink); font-size: 14px; font-weight: 700; }
.together-pick .together-empty { padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--sub); font-size: 13px; }
.together-pick .together-search { margin: 0; border: 1px solid #cfcfd5; border-radius: 12px; background: #fff; }
.together-pick .together-search:focus-within { border-color: var(--ink); box-shadow: none; }
.together-pick .together-search input { padding: 12px 6px 12px 14px; }
.together-pick .together-search button { margin: 5px; padding: 0 16px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 600; }
.together-pick .hint { margin: 0; }

/* 주목할만한 거리: 한 권을 구역 전체에 크게, 여러 권이면 한 장씩 넘김(2026-12-01) */
.spot-track { gap: 0; margin: 0; padding: 0; }
.spot-slide { flex: 0 0 100%; display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 18px; align-items: start; min-width: 0; padding: 20px; border-radius: 18px; background: var(--soft); color: var(--body); scroll-snap-align: start; }
.spot-cover .cover { width: 100%; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14); }
.spot-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.spot-title { color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1.35; }
.spot-subtitle { color: var(--sub); font-size: 14px; }
.spot-meta { color: var(--sub); font-size: 13px; }
.spot-excerpt { display: -webkit-box; overflow: hidden; margin-top: 6px; color: var(--body); font-size: 14px; line-height: 1.7; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.spot-go { margin-top: 8px; color: var(--ink); font-size: 14px; font-weight: 600; }
.spot-slide:hover .spot-go { text-decoration: underline; text-underline-offset: 3px; }
.spot-count { margin-top: 10px; color: var(--sub); font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) {
  .spot-slide { grid-template-columns: 200px minmax(0, 1fr); gap: 36px; align-items: center; padding: 36px 56px; }
  .spot-title { font-size: 28px; }
  .spot-excerpt { -webkit-line-clamp: 5; font-size: 15px; }
  .spot-rail .rail-arrow { top: 50%; }
  .spot-rail .rail-prev { left: -22px; }
  .spot-rail .rail-next { right: -22px; }
}
@media (min-width: 1100px) {
  .spot-slide { grid-template-columns: 220px minmax(0, 560px); padding: 40px 72px; }
}

/* 주목할만한 거리: 책소개 양끝 정렬, 등록된 태그 보이기(2026-12-01) */
.spot-excerpt { text-align: justify; word-break: keep-all; }
.spot-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.spot-tags i { padding: 3px 10px; border-radius: var(--r-pill); background: #fff; color: var(--body); font-size: 12px; font-style: normal; }

/* 제휴·문의 */
.contact-page { padding-bottom: 60px; }
.contact-page .contact-form, .contact-page .empty { max-width: 760px; }
.contact-form { margin-top: 20px; }
.contact-grid { display: grid; gap: 0 14px; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-agree { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 14px; color: var(--body); font-size: 13px; line-height: 1.6; cursor: pointer; }
.contact-agree input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.contact-agree a { text-decoration: underline; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
