/* 다독리더 — Dadok Reader / Dadok Leader
   VOICE   조용하고 정돈된 독서 앱. 책 표지가 색을 담당하고, UI는 흰 종이와 잉크로 물러선다.
   IDEA    형광펜을 든 독자. 노란 형광펜 한 가지 색으로만 '지금 중요한 것'(다음 모임, 선택된 탭, D-day)을 칠한다.
   PICTURE 실제 책 표지(그림자와 책등 하이라이트가 있는 물성 있는 표지)가 모든 화면의 주인공.
   COLOUR  흰 바탕 / 잉크 #15171E / 형광펜 #FFE14D. 다크 모드는 같은 구성을 밤의 서재로.
   TYPE    부산단디고딕 L·M·B 한 가족. 큰 제목은 촘촘한 자간, 본문은 넉넉한 행간. */

@font-face { font-family: 'BusanDandi'; src: url('fonts/BusanDandiGothic-L.woff') format('woff'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'BusanDandi'; src: url('fonts/BusanDandiGothic-M.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'BusanDandi'; src: url('fonts/BusanDandiGothic-B.woff') format('woff'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: light-dark(#FFFFFF, #0E0F13);
  --bg-2: light-dark(#F5F5F2, #16181E);
  --bg-3: light-dark(#EDEDE9, #1F222A);
  --card: light-dark(#FFFFFF, #171920);
  --ink: light-dark(#15171E, #F1F1EE);
  --ink-2: light-dark(#4A4F5C, #B9BCC6);
  --ink-3: light-dark(#8B909C, #7E828F);
  --line: light-dark(#EAEAE6, #262932);
  --line-2: light-dark(#DADAD5, #343844);
  --mark: #FFE14D;
  --mark-ink: #1A1500;
  --mark-soft: light-dark(#FFF6C2, #3A3410);
  --danger: light-dark(#C2412D, #FF8A75);
  --ok: light-dark(#1F7A4D, #6FD3A0);
  --r-lg: 28px;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 10px 28px -12px rgb(0 0 0 / .28);
  --max: 1200px;
  --nav-h: 64px;
}
:root[data-theme=light] { color-scheme: light; }
:root[data-theme=dark] { color-scheme: dark; }

* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 16px/1.6 'BusanDandi', 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
  word-break: keep-all; overflow-wrap: anywhere; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--mark); color: var(--mark-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── 상단 내비 ───────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar .in { max-width: var(--max); margin: 0 auto; height: 100%; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.03em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.logo-mark svg { width: 18px; height: 18px; }
.logo small { font-weight: 300; font-size: 13px; color: var(--ink-3); letter-spacing: 0; }
.nav { display: flex; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-size: 15px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a.on { color: var(--ink); font-weight: 700; background: var(--bg-2); }
.nav a .i { display: none; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.me-btn { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.me-btn:hover { background: var(--bg-2); }

.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center;
  background: var(--bg-3); color: var(--ink-2); font-size: 13px; font-weight: 700; }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.avatars { display: flex; }
.avatars > * { margin-left: -8px; box-shadow: 0 0 0 2px var(--av-ring, var(--bg)); }
.avatars > *:first-child { margin-left: 0; }

main { max-width: var(--max); margin: 0 auto; padding: 36px 24px 120px; min-height: 70vh; }
.foot { max-width: var(--max); margin: 0 auto; padding: 32px 24px 48px; color: var(--ink-3); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); }

/* ── 타이포 ───────────────────────────── */
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; }
.h-display { font-size: clamp(36px, 5.4vw, 56px); font-weight: 700; line-height: 1.08; letter-spacing: -0.04em; }
.h1 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; letter-spacing: -0.035em; }
.h2 { font-size: 21px; font-weight: 700; }
.lead { font-size: 17px; color: var(--ink-2); font-weight: 300; margin: 10px 0 0; max-width: 40em; }
.muted { color: var(--ink-3); }
.light { font-weight: 300; }
.sec { margin-top: 56px; }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.sec-head .more { margin-left: auto; font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.sec-head .more:hover { color: var(--ink); }
.sec-head .count { color: var(--ink-3); font-size: 15px; font-weight: 300; }

/* ── 버튼 / 칩 / 입력 ─────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card);
  font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--bg-2); }
.btn:active { transform: scale(.98); }
.btn.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.dark:hover { opacity: .88; }
.btn.mark { background: var(--mark); color: var(--mark-ink); border-color: var(--mark); font-weight: 700; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--bg-2); }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn.danger { color: var(--danger); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.kakao { background: #FEE500; border-color: #FEE500; color: #191600; }
.btn.google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.chip.mark { background: var(--mark); color: var(--mark-ink); font-weight: 700; }
.chip.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.chip.line { background: transparent; border: 1px solid var(--line-2); }
.chip .i { width: 14px; height: 14px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 14px; }
.filter.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--bg-2); }
.seg button { border: 0; background: transparent; height: 36px; padding: 0 16px; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.seg button.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }

label.f { display: block; margin-bottom: 18px; }
label.f > span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
label.f > span em { font-style: normal; font-weight: 300; color: var(--ink-3); margin-left: 6px; }
.input, input:not([type]), input[type=text], input[type=number], input[type=date], input[type=url], input[type=search], input[type=tel], input[type=time], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--card); font-size: 16px; font-weight: 300; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
textarea.tall { min-height: 360px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mark) 55%, transparent); }
.search { position: relative; }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search input { padding-left: 42px; border-radius: 999px; background: var(--bg-2); border-color: transparent; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }

/* ── 카드 ─────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card + .card { margin-top: 12px; }
.card.pad-lg { padding: 28px; }
.card.link { display: block; transition: border-color .15s, background .15s; }
.card.link:hover { border-color: var(--line-2); background: var(--bg-2); }
.empty { padding: 36px 20px; text-align: center; color: var(--ink-3); background: var(--bg-2); border-radius: var(--r); font-weight: 300; }
.empty .btn { margin-top: 14px; }

/* ── 책 (표지) ─────────────────────────── */
.bk {
  position: relative; aspect-ratio: 2 / 3; border-radius: 4px 8px 8px 4px; overflow: hidden; container-type: inline-size;
  background: var(--c1, #2B3A55); color: var(--c2, #F3EEE4);
  box-shadow: 0 1px 1px rgb(0 0 0 / .08), 0 10px 20px -10px rgb(0 0 0 / .45), 0 24px 40px -24px rgb(0 0 0 / .35);
}
.bk::after { /* 책등 하이라이트 */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, rgb(255 255 255 / .22) 0, rgb(255 255 255 / 0) 2.5%, rgb(0 0 0 / .16) 4%, rgb(0 0 0 / 0) 7%, rgb(0 0 0 / 0) 92%, rgb(0 0 0 / .06) 100%);
}
.bk img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; background: var(--bg-3); }
.bk .fb { position: absolute; inset: 0; padding: 11cqw 10cqw 9cqw 13cqw; display: flex; flex-direction: column; }
.bk .fb b { font-weight: 700; font-size: 11.5cqw; line-height: 1.15; letter-spacing: -0.03em; }
.bk .fb span { margin-top: auto; font-size: 6.4cqw; font-weight: 500; opacity: .85; }
.bk .fb i { font-style: normal; font-size: 5cqw; opacity: .6; margin-top: 3cqw; }
.bk.film { --c1: #141518; --c2: #EDEBE4; border-radius: 6px; }
/* 영화: 양옆 필름 구멍 + 클래퍼보드 아이콘 */
.bk.film::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, transparent 0 3.4cqw, rgb(255 255 255 / .16) 3.4cqw 6.4cqw) left 2.2cqw top 0 / 3.6cqw 100% no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 3.4cqw, rgb(255 255 255 / .16) 3.4cqw 6.4cqw) right 2.2cqw top 0 / 3.6cqw 100% no-repeat; }
.bk.film::after { background: none; }
.bk.film .fb { padding: 12cqw 13cqw 10cqw; z-index: 1; }
.bk.film .fb .clap { width: 30cqw; height: 30cqw; color: var(--mark); margin: 0 0 9cqw; opacity: 1; display: block; }
.bk.film .fb .clap svg { width: 100%; height: 100%; }
.bk.film .fb i { opacity: .55; letter-spacing: .08em; }
.bk.special { --c1: var(--mark); --c2: var(--mark-ink); }

/* 서가 그리드 */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 40px 28px; }
.book { display: block; }
.book .bk { transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s; }
.book:hover .bk { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 2px 2px rgb(0 0 0 / .08), 0 22px 34px -14px rgb(0 0 0 / .5); }
.book .meta { margin-top: 14px; }
.book .t { font-weight: 700; font-size: 15px; line-height: 1.35; letter-spacing: -0.02em; }
.book .a { font-size: 13.5px; color: var(--ink-3); font-weight: 300; margin-top: 2px; }
.book .d { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.year { display: flex; align-items: baseline; gap: 14px; margin: 64px 0 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.year:first-of-type { margin-top: 32px; }
.year h2 { font-size: 44px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.year span { color: var(--ink-3); font-weight: 300; }

/* 가로 스크롤 줄 */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 172px); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-wrap { position: relative; }
.rail-btns { display: flex; gap: 6px; margin-left: auto; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--bg-2); }

/* ── 홈: 다음 모임 히어로 ──────────────── */
.greet { font-size: 15px; color: var(--ink-3); margin-bottom: 14px; }
.next {
  position: relative; overflow: hidden; border-radius: var(--r-lg); color: #F6F5F0; background: #15171E; isolation: isolate;
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; padding: 44px; align-items: center;
}
.next .glow { position: absolute; inset: -30%; z-index: -1; background-size: cover; background-position: center; filter: blur(60px) saturate(1.4); opacity: .55; }
.next .glow.none { background: radial-gradient(60% 60% at 20% 30%, #3B4A7A 0, transparent 70%), radial-gradient(50% 60% at 85% 80%, #5A3E2B 0, transparent 70%); filter: none; opacity: 1; }
.next .bk { box-shadow: 0 30px 60px -20px rgb(0 0 0 / .7); }
.next h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; margin-top: 16px; }
.next .by { color: rgb(246 245 240 / .7); font-weight: 300; margin-top: 8px; font-size: 17px; }
.next .facts { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-top: 26px; font-size: 15px; }
.next .facts span { display: inline-flex; align-items: center; gap: 8px; }
.next .rsvp { margin-top: 28px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.next .seg { background: rgb(255 255 255 / .1); }
.next .seg button { color: rgb(246 245 240 / .75); }
.next .seg button.on { background: var(--mark); color: var(--mark-ink); }
.next .who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgb(246 245 240 / .8); --av-ring: #15171E; }
.next .btn { border-color: rgb(255 255 255 / .2); background: rgb(255 255 255 / .08); color: #fff; }
.next-empty { border-radius: var(--r-lg); background: var(--bg-2); padding: 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }

/* 벤토 */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--bg-2); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; min-height: 138px; }
.tile b { font-size: 40px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; margin-top: auto; }
.tile b small { font-size: 16px; font-weight: 500; letter-spacing: 0; margin-left: 4px; color: var(--ink-2); }
.tile span { font-size: 14px; color: var(--ink-2); }
.tile.ink { background: var(--ink); color: var(--bg); }
.tile.ink span, .tile.ink b small { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.tile.wide { grid-column: span 2; }
.months { display: flex; align-items: flex-end; gap: 5px; height: 56px; margin-top: auto; }
.months i { flex: 1; background: color-mix(in srgb, var(--bg) 30%, transparent); border-radius: 3px; min-height: 3px; }
.months i.on { background: var(--mark); }

.two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list a, .list .li { display: flex; gap: 14px; align-items: center; padding: 14px 4px; }
.list a:hover .tt { text-decoration: underline; text-underline-offset: 3px; }
.list .tt { font-weight: 500; }
.list .sub { font-size: 13px; color: var(--ink-3); font-weight: 300; }
.list .end { margin-left: auto; flex: none; }
.dot-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; flex: none; color: var(--ink-2); }

/* ── 모임 상세 ─────────────────────────── */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; margin-bottom: 20px; }
.back:hover { color: var(--ink); }
.dhero { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); background: var(--bg-2); padding: 48px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: end; }
.dhero .glow { position: absolute; inset: -40%; z-index: -1; background-size: cover; background-position: center; filter: blur(70px) saturate(1.3); opacity: .28; }
.dhero .kicker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.dhero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.08; }
.dhero .by { font-size: 18px; color: var(--ink-2); margin-top: 10px; font-weight: 300; }
.dhero .tagline { margin-top: 22px; font-size: 17px; max-width: 34em; line-height: 1.6; }
.dhero .row { margin-top: 26px; }

.dbody { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; margin-top: 40px; align-items: start; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 32px; overflow-x: auto; scrollbar-width: none; position: sticky; top: var(--nav-h); background: var(--bg); z-index: 5; }
.tabs button { flex: none; position: relative; border: 0; background: none; padding: 14px 14px; cursor: pointer; font-size: 15.5px; color: var(--ink-3); white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); font-weight: 700; }
.tabs button.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ink); }
.tabs button small { margin-left: 5px; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.aside { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 14px; }
.facts-card dl { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px 14px; margin: 0; font-size: 14.5px; }
.facts-card dt { color: var(--ink-3); font-weight: 300; }
.facts-card dd { margin: 0; }
.pn { display: grid; gap: 8px; }
.pn a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-sm); }
.pn a:hover { background: var(--bg-2); }
.pn .bk { width: 40px; flex: none; box-shadow: 0 4px 10px -4px rgb(0 0 0 / .4); }
.pn small { display: block; color: var(--ink-3); font-size: 12px; }
.pn b { font-size: 14px; font-weight: 500; }

/* 본문 */
.prose { font-weight: 300; font-size: 17px; line-height: 1.85; max-width: 46em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 22px; font-weight: 700; margin: 44px 0 14px; letter-spacing: -0.03em; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 30px 0 10px; }
.prose h4, .prose h5 { font-size: 16px; font-weight: 700; margin: 22px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose strong { font-weight: 700; background: linear-gradient(transparent 70%, var(--mark-soft) 70%); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--ink-3); }
.prose blockquote { margin: 20px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--mark); color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose code { background: var(--bg-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose .table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { font-weight: 700; }
.prose.qs ol { list-style: none; padding: 0; counter-reset: q; }
.prose.qs ol > li { counter-increment: q; position: relative; padding: 18px 20px 18px 64px; background: var(--bg-2); border-radius: var(--r); margin-bottom: 10px; font-weight: 500; }
.prose.qs ol > li::before { content: 'Q' counter(q); position: absolute; left: 20px; top: 18px; font-weight: 700; color: var(--ink-3); }

/* 기록 */
.rec { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.rec:hover .rt { text-decoration: underline; text-underline-offset: 3px; }
.rec .rt { font-weight: 700; }
.transcript { white-space: pre-wrap; font-weight: 300; font-size: 15px; line-height: 1.85; background: var(--bg-2); border-radius: var(--r); padding: 24px; max-height: 70vh; overflow: auto; }
details.box { border: 1px solid var(--line); border-radius: var(--r); margin-top: 24px; }
details.box > summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 10px; }
details.box > summary::-webkit-details-marker { display: none; }
details.box > summary::after { content: '+'; margin-left: auto; font-size: 20px; font-weight: 300; color: var(--ink-3); }
details.box[open] > summary::after { content: '–'; }
details.box > div { padding: 0 22px 22px; }
.report-head { display: flex; gap: 12px; align-items: center; padding: 18px 20px; border-radius: var(--r); background: var(--mark-soft); margin-bottom: 28px; font-size: 14.5px; }

/* 한줄평 */
.review { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.stars { color: var(--ink); letter-spacing: 1px; font-size: 14px; }
.stars .off { color: var(--line-2); }
.star-in { display: inline-flex; gap: 2px; }
.star-in button { border: 0; background: none; font-size: 28px; color: var(--line-2); cursor: pointer; padding: 0 2px; line-height: 1; }
.star-in button.on { color: var(--ink); }

/* 투표 */
.poll h3 { font-size: 19px; font-weight: 700; }
.opt { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); cursor: pointer; overflow: hidden; margin-top: 8px; isolation: isolate; }
.opt:hover { border-color: var(--line-2); }
.opt.mine { border-color: var(--ink); }
.opt .bar { position: absolute; inset: 0 auto 0 0; background: var(--bg-2); z-index: -1; transition: width .5s cubic-bezier(.2,.7,.3,1); }
.opt.mine .bar { background: var(--mark-soft); }
.opt input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
.opt .cnt { font-size: 14px; color: var(--ink-2); font-weight: 700; }
.opt .voters { grid-column: 2 / 4; font-size: 12.5px; color: var(--ink-3); font-weight: 300; margin-top: -6px; }

/* 추천 */
.recs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.reccard { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; }
.reccard h3 { font-size: 17px; font-weight: 700; }
.reccard .why { font-size: 15px; font-weight: 300; margin: 10px 0 14px; white-space: pre-wrap; color: var(--ink-2); }
.like.on { background: var(--mark); border-color: var(--mark); color: var(--mark-ink); }

/* 검색 결과 */
.hits { display: grid; gap: 6px; margin: -6px 0 18px; max-height: 360px; overflow: auto; }
.hit { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; text-align: left; padding: 8px; border: 1px solid var(--line); background: var(--card); border-radius: var(--r-sm); cursor: pointer; }
.hit:hover { border-color: var(--ink); }
.hit img, .hit .ph { width: 44px; height: 64px; object-fit: cover; background: var(--bg-3); border-radius: 3px; }
.hit b { display: block; font-size: 14px; }
.hit span { font-size: 12.5px; color: var(--ink-3); font-weight: 300; }

/* 관리 */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.table .bk { width: 36px; box-shadow: none; }
.md-tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg-2); border-radius: 999px; margin-left: auto; }
.md-tabs button { border: 0; background: none; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.md-tabs button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .1); }
.md-preview { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 18px; min-height: 120px; }
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 26px; text-align: center; color: var(--ink-2); margin-bottom: 18px; font-weight: 300; }
.drop.over { border-color: var(--ink); background: var(--mark-soft); }
.drop label { text-decoration: underline; cursor: pointer; font-weight: 500; }

/* ── 첫 화면 ─────────────────────────── */
.land { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; min-height: calc(100vh - 220px); }
.pun { font-size: clamp(44px, 7vw, 84px); font-weight: 700; letter-spacing: -0.055em; line-height: .98; }
.pun span { display: block; }
.pun .swap { display: inline-block; position: relative; padding: 0 .06em; color: var(--mark-ink); }
.pun .swap::before { content: ''; position: absolute; left: 0; right: 0; top: .12em; bottom: .02em; background: var(--mark); z-index: -1; border-radius: 3px; transform-origin: left; animation: mark .7s .35s cubic-bezier(.2,.7,.3,1) both; }
.pun-wrap { position: relative; isolation: isolate; }
@keyframes mark { from { transform: scaleX(0); } }
.land .lead { font-size: 18px; margin-top: 26px; }
.login { display: grid; gap: 10px; max-width: 340px; margin-top: 32px; }
.login .btn { min-height: 52px; font-size: 16px; }
.collage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; transform: rotate(-4deg); }
.collage > :nth-child(4n+2) { margin-top: 36px; }
.collage > :nth-child(4n+3) { margin-top: -18px; }
.collage > :nth-child(4n+4) { margin-top: 18px; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-size: 14px; z-index: 60; box-shadow: var(--shadow); animation: up .25s ease both; }
.toast.err { background: var(--danger); color: #fff; }
@keyframes up { from { opacity: 0; transform: translate(-50%, 8px); } }
.loading { color: var(--ink-3); padding: 60px 0; font-weight: 300; }
.skel { background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); }
@keyframes sk { to { background-position: -200% 0; } }

/* ── 반응형 ───────────────────────────── */
@media (max-width: 1000px) {
  .dbody { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: minmax(0, 1fr); }
  .land { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 20px; }
  .collage { order: -1; grid-template-columns: repeat(6, minmax(0, 1fr)); transform: rotate(-3deg); margin: 0 -20px; }
  .collage > :nth-child(n+7) { display: none; }
}
@media (max-width: 760px) {
  :root { --nav-h: 56px; }
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .topbar .in { padding: 0 16px; }
  .search { flex: 1 1 100% !important; max-width: none !important; }
  .logo small { display: none; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; justify-content: space-around; gap: 0;
    background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .nav a { flex-direction: column; gap: 3px; padding: 6px 10px; font-size: 11px; border-radius: 12px; min-width: 56px; }
  .nav a .i { display: block; width: 22px; height: 22px; }
  .nav a.on { background: transparent; }
  .nav a.on .i { stroke-width: 2.4; }
  .me-btn > span:not(.avatar) { display: none; }
  .me-btn { padding: 3px; }
  main { padding: 24px 16px 120px; }
  .next { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; gap: 24px; border-radius: 24px; }
  .next .bk { width: 128px; }
  .next-empty { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; }
  .dhero { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; gap: 24px; border-radius: 24px; }
  .dhero .bk { width: 150px; }
  .shelf { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 28px 16px; }
  .book .t { font-size: 14px; }
  .year h2 { font-size: 34px; }
  .rail { grid-auto-columns: 128px; gap: 16px; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .tile b { font-size: 32px; }
  .tile.wide { grid-column: span 2; }
  .recs { grid-template-columns: minmax(0, 1fr); }
  .rec { grid-template-columns: 40px minmax(0, 1fr); }
  .rec .end { grid-column: 2; }
  .foot { padding-bottom: 110px; }
  .toast { bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}
@media (max-width: 760px) {
  .editor { grid-template-columns: minmax(0, 1fr) !important; }
  .editor > div:last-child { display: none; }
}

/* ── 사진 ─────────────────────────────── */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.photo { margin: 0; }
.photo > button { display: block; width: 100%; padding: 0; border: 0; background: var(--bg-2); border-radius: var(--r-sm); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo > button:hover img { transform: scale(1.03); }
.photo figcaption { font-size: 14px; color: var(--ink-2); margin-top: 8px; font-weight: 300; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin: -6px 0 18px; }
.thumb { position: relative; width: 88px; height: 88px; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .icon-btn { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; font-size: 12px; }
.prose .md-img { max-width: 100%; border-radius: var(--r-sm); margin: 8px 0; cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgb(8 9 12 / .88); display: grid; place-items: center; padding: 32px; animation: up .2s ease both; }
.lightbox img { max-width: min(1200px, 100%); max-height: 82vh; border-radius: 8px; box-shadow: 0 20px 60px rgb(0 0 0 / .5); }
.lightbox p { color: #eee; margin: 14px 0 0; text-align: center; font-weight: 300; }
.lightbox .icon-btn { position: absolute; top: 16px; right: 16px; }

/* ── 2026-11 보강: 검색 · 다음 모임 · 내 정보 · 관리 목록 · 진행 화면 ── */
.search-btn { width: 38px; height: 38px; border-color: var(--line); }
.search-btn.on { background: var(--bg-2); }
.next-acts { margin-top: 18px; gap: 8px; }
.next .btn.on-mark { background: var(--mark); border-color: var(--mark); color: var(--mark-ink); font-weight: 700; }
.next .btn.ghost { background: transparent; border-color: transparent; color: rgb(246 245 240 / .8); }
.next .btn.ghost:hover { color: #fff; background: rgb(255 255 255 / .08); }

.months-wrap { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.months-lb { display: flex; gap: 5px; }
.months-lb span { flex: 1; text-align: center; font-size: 10.5px; line-height: 1; color: color-mix(in srgb, var(--bg) 45%, transparent); font-weight: 300; }
.months-lb span.now { color: var(--mark); font-weight: 700; }

.me-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.me-stats .tile { min-height: 128px; }
.me-stats a.tile:hover { background: var(--bg-3); }
.me-stats .tile em { font-style: normal; font-size: 13px; color: var(--ink-3); font-weight: 300; margin-top: 8px; }
.me-stats .tile b { margin-top: 18px; }

.roster b { font-size: 15px; }
.roster .names { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.roster .names span { padding: 4px 11px; border-radius: 999px; background: var(--bg-2); font-size: 13.5px; }

/* 모임 탭: 더 있으면 오른쪽이 흐려짐 */
.tabs.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }

/* 줄거리 접기 */
.prose details.spoil { margin: 30px 0; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); }
.prose details.spoil > summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.prose details.spoil > summary::-webkit-details-marker { display: none; }
.prose details.spoil > summary > span { display: flex; flex-direction: column; }
.prose details.spoil > summary b { font-size: 18px; }
.prose details.spoil > summary small { font-size: 13px; color: var(--ink-3); font-weight: 300; }
.prose details.spoil > summary::after { content: '펼치기'; margin-left: auto; font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); flex: none; }
.prose details.spoil[open] > summary::after { content: '접기'; }
.prose details.spoil[open] > summary small { display: none; }
.prose details.spoil > :not(summary) { margin-left: 20px; margin-right: 20px; }
.prose details.spoil > :last-child { margin-bottom: 20px; }

/* 발제문 탭 */
.live-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-radius: var(--r); background: var(--mark-soft); margin-bottom: 24px; }
.live-cta > span { display: flex; gap: 12px; align-items: center; }
.live-cta small { color: var(--ink-2); font-weight: 300; font-size: 13.5px; }
.arc { padding: 18px 0; border-top: 1px solid var(--line); }
.arc-q { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.arc-q .qn { font-weight: 700; color: var(--ink-3); min-width: 32px; }
.arc-q small { color: var(--ink-3); font-size: 12.5px; font-weight: 300; }
.arc-p { list-style: none; margin: 10px 0 0 44px; padding: 0; display: grid; gap: 8px; }
.arc-p li { background: var(--bg-2); border-radius: 14px; padding: 10px 14px; font-weight: 300; }
.arc-p li b { font-weight: 700; margin-right: 8px; }

/* 관리 목록 (표 대신 줄) */
.arows { list-style: none; margin: 0; padding: 6px 18px; }
.arows li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.arows li:last-child { border-bottom: 0; }
.arow-c .bk { width: 44px; }
.arow-t b { font-weight: 700; }
.arow-t > span { display: block; font-size: 13px; color: var(--ink-3); font-weight: 300; margin-top: 2px; }
.arow-a { display: flex; gap: 6px; justify-content: flex-end; }
.arow-a select { width: auto; min-height: 36px; }

/* 마크다운 입력 머리 */
.md-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 8px; }
.md-label { font-size: 14px; white-space: nowrap; }
.md-hint { font-size: 13px; }
.md-tabs { flex: none; }
.md-tabs button { white-space: nowrap; }

/* 검색 */
.search.big { margin-top: 24px; max-width: 640px; }
.search.big input { min-height: 54px; font-size: 17px; }
.sres { margin-top: 28px; max-width: 820px; }
.sres-sec { margin-top: 28px; }
.sres-sec .h2 { display: flex; align-items: baseline; gap: 10px; font-size: 19px; margin-bottom: 4px; }
.sres-sec .count { color: var(--ink-3); font-size: 14px; font-weight: 300; }
.sres .list a { align-items: flex-start; }
.sres .list .bk { width: 40px; flex: none; }
.sres .list .sub { display: block; margin-top: 4px; line-height: 1.55; }
mark { background: var(--mark); color: var(--mark-ink); border-radius: 3px; padding: 0 1px; }

@media (max-width: 1000px) { .me-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .arows { padding: 4px 14px; }
  .arows li { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; }
  .arow-c .bk { width: 40px; }
  .arow-c { grid-row: span 2; align-self: start; }
  .arow-a { justify-content: flex-start; flex-wrap: wrap; }
  .live-cta { flex-wrap: wrap; }
  .arc-p { margin-left: 0; }
  .md-hint { order: 3; flex-basis: 100%; }
  .md-tabs { margin-left: auto; }
}

/* ── 모임 진행 화면 ── */
body.live-on .topbar, body.live-on .foot { display: none; }
body.live-on main { max-width: none; padding: 0; min-height: 100dvh; }
.live { --stage: #15171E; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--bg); }
.lv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.lv-back { display: flex; align-items: center; gap: 6px; font-weight: 700; min-width: 0; }
.lv-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.lv-live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.lv-live i { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; animation: lvpulse 1.6s ease-in-out infinite; }
@keyframes lvpulse { 50% { opacity: .3; } }
.lv-main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); min-height: 0; }
.lv-stage { background: var(--stage); color: #F6F5F0; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; min-height: 0; }
.lv-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; color: rgb(246 245 240 / .6); }
.lv-no { background: var(--mark); color: var(--mark-ink); font-weight: 700; padding: 3px 12px; border-radius: 999px; font-size: 17px; }
.lv-tag { border: 1px solid rgb(255 255 255 / .2); padding: 2px 10px; border-radius: 999px; font-size: 13px; }
.lv-tag.on { border-color: var(--mark); color: var(--mark); }
.lv-q { margin: auto 0; padding: 32px 0; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.35; letter-spacing: -0.035em; font-weight: 700; overflow-y: auto; }
.lv-q.long { font-size: clamp(24px, 2.8vw, 40px); }
.lv-q small { font-size: .5em; font-weight: 300; color: rgb(246 245 240 / .6); letter-spacing: 0; }
.lv-nav { display: flex; align-items: center; gap: 16px; }
.lv-arrow { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .06); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.lv-arrow:hover { background: rgb(255 255 255 / .14); }
.lv-arrow[disabled] { opacity: .25; pointer-events: none; }
.lv-arrow .i { width: 24px; height: 24px; }
.lv-dots { flex: 1; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.lv-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgb(255 255 255 / .2); }
.lv-dots i.cur { box-shadow: 0 0 0 2px var(--mark); }
.lv-dots i.on { background: #fff; width: 22px; border-radius: 4px; }
.lv-feed { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; border-left: 1px solid var(--line); }
.lv-feed-h { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 20px 8px; }
.lv-feed-h span { color: var(--ink-3); font-size: 14px; }
.lv-posts { list-style: none; margin: 0; padding: 4px 20px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.lv-posts li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.lv-posts li > div { background: var(--bg-2); border-radius: 4px 16px 16px 16px; padding: 10px 14px; }
.lv-posts li.mine > div { background: var(--mark-soft); }
.lv-posts p { margin: 2px 0 0; white-space: pre-wrap; font-size: 16px; line-height: 1.55; }
.lv-who { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.lv-who span { color: var(--ink-3); font-weight: 300; }
.lv-del { margin-left: auto; border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 0; display: grid; }
.lv-del .i { width: 15px; height: 15px; }
.lv-posts .lv-empty { display: block; text-align: center; color: var(--ink-3); font-weight: 300; padding: 40px 0; }
.lv-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.lv-form[hidden] { display: none; }
.lv-form textarea { flex: 1; min-height: 46px; max-height: 140px; resize: none; border-radius: 22px; padding: 11px 16px; line-height: 1.45; }
.lv-form .btn { min-height: 46px; }
.lv-list { border-top: 1px solid var(--line); padding: 10px 14px; background: var(--bg); }
.lv-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.lv-chip { flex: none; max-width: 260px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; font-size: 14px; position: relative; }
.lv-chip b { flex: none; white-space: nowrap; }
.lv-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.lv-chip em { font-style: normal; font-size: 12px; background: var(--bg-2); border-radius: 999px; padding: 1px 7px; color: var(--ink-2); }
.lv-chip.cur { border-color: var(--mark); box-shadow: inset 0 0 0 1px var(--mark); }
.lv-chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lv-chip.on span, .lv-chip.on em { color: var(--bg); background: transparent; }
.lv-chip.add { border-style: dashed; color: var(--ink-2); }
.lv-qdel { display: grid; margin-right: -4px; opacity: .6; }
.lv-qdel .i { width: 14px; height: 14px; }
.lv-add { display: flex; gap: 8px; margin-top: 10px; }
.lv-add[hidden] { display: none; }
.lv-add input { flex: 1; min-height: 40px; }
@media (max-width: 820px) {
  .live { height: auto; min-height: 100dvh; grid-template-rows: auto auto auto 1fr; }
  .lv-main { display: contents; }
  .lv-stage { padding: 22px 20px; order: 1; }
  .lv-q { padding: 18px 0; font-size: clamp(22px, 6vw, 30px); }
  .lv-q.long { font-size: clamp(19px, 5vw, 24px); }
  .lv-arrow { width: 44px; height: 44px; }
  .lv-list { order: 2; border-top: 0; border-bottom: 1px solid var(--line); }
  .lv-feed { order: 3; border-left: 0; grid-template-rows: auto auto auto; }
  .lv-posts { overflow: visible; padding-bottom: 96px; }
  .lv-form { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; box-shadow: 0 -8px 24px -16px rgb(0 0 0 / .3); }
  .lv-live { display: none; }
  .lv-top { position: sticky; top: 0; z-index: 10; background: var(--bg); }
}
@media (prefers-reduced-motion: reduce) { .lv-live i { animation: none; } }

/* 저장공간 (운영자 전용) */
.gauge { height: 12px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin-top: 16px; }
.gauge i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.gauge.warn i { background: #E8A317; }
.gauge.full i { background: var(--danger); }
.store-warn { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: var(--r); background: var(--mark-soft); margin-bottom: 18px; border: 1px solid color-mix(in srgb, #E8A317 40%, transparent); }
.store-warn span { font-size: 14px; color: var(--ink-2); font-weight: 300; }
.store-warn.full { background: color-mix(in srgb, var(--danger) 10%, var(--bg)); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }

/* 특별 모임: 책 대신 초대장 티켓. 양옆 반원 홈 + 점선으로 자르는 선 (cqw는 안쪽 요소에서만 표지 너비 기준) */
.bk.ticket {
  --tk-bg: light-dark(#FFF3BF, #3A3418); --tk-ink: light-dark(#3B2F00, #FFE88A); --tk-cut: 72%;
  background: transparent; color: var(--tk-ink); border-radius: 10px; box-shadow: none; overflow: visible;
  filter: drop-shadow(0 10px 14px rgb(0 0 0 / .14));
}
.bk.ticket .fb { background: var(--tk-bg); border-radius: 10px;
  -webkit-mask: radial-gradient(circle 6cqw at 0 var(--tk-cut), #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 6cqw at 100% var(--tk-cut), #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 6cqw at 0 var(--tk-cut), #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 6cqw at 100% var(--tk-cut), #0000 98%, #000) right / 51% 100% no-repeat; }
.bk.ticket::after { background: none; }
.bk.ticket::before { content: ''; position: absolute; z-index: 1; left: 9cqw; right: 9cqw; top: var(--tk-cut); border-top: 0.9cqw dashed color-mix(in srgb, var(--tk-ink) 35%, transparent); }
.bk.ticket .fb { padding: 10cqw 10cqw 0; }
.bk.ticket .tk-top { margin: 0; display: flex; align-items: center; gap: 2.5cqw; font-size: 6.4cqw; font-weight: 700; opacity: 1; letter-spacing: -0.01em; }
.bk.ticket .tk-ic { width: 9cqw; height: 9cqw; display: grid; place-items: center; border-radius: 50%; background: var(--tk-ink); color: var(--tk-bg); margin: 0; opacity: 1; }
.bk.ticket .tk-ic svg { width: 6cqw; height: 6cqw; }
.bk.ticket .fb b { margin-top: 9cqw; font-size: 12cqw; line-height: 1.2; }
.bk.ticket .tk-stub { position: absolute; left: 10cqw; right: 10cqw; top: calc(var(--tk-cut) + 6cqw); bottom: 7cqw; margin: 0; opacity: 1; display: flex; flex-direction: column; justify-content: center; }
.bk.ticket .tk-stub em { font-style: normal; font-size: 6cqw; font-weight: 300; opacity: .75; }
.bk.ticket .tk-stub strong { font-size: 15cqw; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.book:hover .bk.ticket { box-shadow: none; filter: drop-shadow(0 18px 18px rgb(0 0 0 / .2)); }

/* 진행 중 입구 */
.live-pill { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13.5px; margin-right: 6px; }
.live-pill i, .live-banner i, .live-join i { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; flex: none; animation: lvpulse 1.6s ease-in-out infinite; }
.live-pill b { background: var(--mark); color: var(--mark-ink); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; }
.live-banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r); background: var(--ink); color: var(--bg); margin-bottom: 18px; }
.live-banner span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.live-banner small { font-size: 13.5px; opacity: .7; font-weight: 300; }
.live-banner em { font-style: normal; margin-left: auto; flex: none; background: var(--mark); color: var(--mark-ink); font-weight: 700; padding: 8px 16px; border-radius: 999px; font-size: 14px; }
.btn.live-join { background: var(--mark); border-color: var(--mark); color: var(--mark-ink); font-weight: 700; gap: 8px; }
.lv-other { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 30px; }
.live-off { max-width: 520px; margin: 12vh auto; text-align: center; padding: 0 20px; }
.live-off .dot-ic { margin: 0 auto 18px; }
@media (max-width: 760px) {
  .live-pill { height: 34px; padding: 0 4px 0 10px; }
  .live-pill span { display: none; }
  .live-banner { flex-wrap: wrap; }
  .live-banner > i { display: none; }
  .live-banner em { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .live-pill i, .live-banner i, .live-join i { animation: none; } }

/* 참석 응답 명단 (회원 모두 보기) */
.rsvp-who { margin: 14px 0 0; display: grid; gap: 8px; }
.rsvp-who > div { display: flex; align-items: baseline; gap: 10px; }
.rsvp-who dt { flex: none; min-width: 52px; font-size: 13px; font-weight: 700; }
.rsvp-who dd { margin: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.rsvp-who dd span { font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.rsvp-who dd span.me { background: var(--ink); color: var(--bg); }
.rsvp-who .rw-yes dt { color: var(--ink); }
.rsvp-who .rw-maybe dt, .rsvp-who .rw-no dt { color: var(--ink-3); }
.next .rsvp-who dt { color: rgb(246 245 240 / .9); }
.next .rsvp-who .rw-maybe dt, .next .rsvp-who .rw-no dt { color: rgb(246 245 240 / .55); }
.next .rsvp-who dd span { background: rgb(255 255 255 / .1); color: rgb(246 245 240 / .85); }
.next .rsvp-who dd span.me { background: var(--mark); color: var(--mark-ink); }

/* ── 비회원·승인 대기 공개 화면 ── */
.login-btn { min-height: 38px; padding: 0 16px; }
.pub-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; padding: 12px 0 40px; }
.pub-hero .pun { font-size: clamp(40px, 5.6vw, 72px); isolation: isolate; margin: 0; }
.pub-hero .lead { font-size: 17.5px; margin-top: 22px; max-width: 34em; }
.pub-hero .login { margin-top: 26px; }
.pub-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pub-stats .tile { min-height: 118px; }
.pub-stats .tile.ink { grid-column: span 2; min-height: 108px; }
.next.pub .pub-tag { margin: 14px 0 0; font-size: 16px; color: rgb(246 245 240 / .78); font-weight: 300; max-width: 36em; }
.pending-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--r); background: var(--mark-soft); margin-bottom: 22px; }
.pending-bar > span:first-child { display: flex; gap: 12px; align-items: flex-start; }
.pending-bar small { display: block; font-size: 13.5px; color: var(--ink-2); font-weight: 300; margin-top: 2px; }
.pending-bar .i { flex: none; margin-top: 2px; }
.members-only { max-width: 520px; margin: 10vh auto; text-align: center; }
.members-only .dot-ic { margin: 0 auto 18px; }
.members-only .login { margin: 26px auto 0; }
.pub-more p { margin: 6px 0 12px; font-size: 14px; color: var(--ink-2); font-weight: 300; line-height: 1.55; }
@media (max-width: 860px) {
  .pub-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 28px; }
}

/* ── 다음 모임 카드: 더 낮게 ── */
.next.slim { grid-template-columns: 132px minmax(0, 1fr); gap: 32px; padding: 28px 36px; align-items: center; }
.next.slim .bk { width: 132px; }
.next.slim h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 10px; }
.next.slim .by { font-size: 15px; margin-top: 4px; }
.next.slim .facts { margin-top: 14px; font-size: 14px; }
.next.slim .rsvp { margin-top: 16px; gap: 12px; }
.next.slim .seg button { height: 32px; padding: 0 14px; font-size: 13.5px; }
.next.slim .next-acts { margin-top: 12px; }
.rsvp-fold { font-size: 13.5px; color: rgb(246 245 240 / .85); }
.rsvp-fold summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rsvp-fold summary::-webkit-details-marker { display: none; }
.rsvp-fold summary span { color: rgb(246 245 240 / .65); font-weight: 300; }
.rsvp-fold summary em { font-style: normal; font-size: 12.5px; padding: 2px 9px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .25); }
.rsvp-fold[open] summary em { display: none; }
.rsvp-fold .rsvp-who { margin-top: 10px; }
@media (max-width: 760px) {
  .next.slim { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 20px 18px; align-items: start; }
  .next.slim .bk { width: 84px; }
  .next.slim .rsvp, .next.slim .next-acts { grid-column: 1 / -1; }
  .next.slim > div:last-child { display: contents; }
  .next.slim > div:last-child > :not(.rsvp):not(.next-acts) { grid-column: 2; }
  .next.slim > div:last-child > .row:first-child { margin-top: 0; }
  .next.slim > a:first-of-type { grid-row: span 3; align-self: start; }
  .next.slim > div:last-child > .facts { grid-column: 1 / -1 !important; margin-top: 4px !important; }
  .next.slim > div:last-child > :not(.rsvp):not(.next-acts) { margin-top: 0; }
  .next.slim h2 { margin-top: 6px !important; }
  .next.slim .by { margin-top: 2px !important; }
  .next.slim .facts { margin-top: 8px !important; }
  .next.slim h2 { font-size: 22px; margin-top: 8px; }
  .next.slim .facts { gap: 4px 14px; font-size: 13px; }
}

/* ── 공유·통계·가입 문의 ── */
.vis-hint { display: block; margin-top: 8px; font-size: 12.5px; color: var(--ink-3); font-weight: 300; }
.join-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 32px 36px; border-radius: var(--r-lg); background: var(--mark-soft); }
.join-cta .lead { margin: 6px 0 0; font-size: 16px; }
.join-alert { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r); background: var(--mark-soft); margin-bottom: 14px; }
.join-alert span { display: flex; flex-direction: column; }
.join-alert small { font-size: 13px; color: var(--ink-2); font-weight: 300; }
.stat-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-top .tile { min-height: 128px; }
.stat-top .tile em { font-style: normal; font-size: 12.5px; color: var(--ink-3); font-weight: 300; margin-top: 6px; }
.stat-top .tile.ink em { color: rgb(246 245 240 / .6); }
.bars { display: grid; gap: 10px; margin-top: 18px; }
.bar { display: grid; grid-template-columns: 84px minmax(0, 1fr) 28px; gap: 12px; align-items: center; font-size: 14px; }
.bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar i { height: 12px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.bar i em { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.bar b { text-align: right; }
.author-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.author-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--bg-2); font-size: 14px; }
.author-chips b { background: var(--mark); color: var(--mark-ink); border-radius: 999px; padding: 0 7px; font-size: 12px; }
.join-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 48px; align-items: start; }
.join-hero .h1 { margin-top: 16px; }
.join-covers { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.join-q { margin-top: 24px; padding: 18px 20px; border-left: 4px solid var(--mark); background: var(--bg-2); border-radius: 0 var(--r) var(--r) 0; }
.join-q small { font-size: 13px; color: var(--ink-3); }
.join-q p { margin: 6px 0 0; font-size: 18px; line-height: 1.55; font-weight: 500; }
.join-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin: 4px 0 8px; }
.agree input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.join-done { text-align: center; padding: 24px 0; }
.join-done .dot-ic { margin: 0 auto 14px; }
.joins { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.join-card.new { border-color: var(--mark); box-shadow: inset 0 0 0 1px var(--mark); }
.join-card.closed, .join-card.joined { opacity: .7; }
.join-card select { width: auto; min-height: 34px; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.jc-contact { font-size: 16px; font-weight: 700; margin-top: 6px; }
.jc-intro { margin: 8px 0; font-weight: 300; line-height: 1.6; white-space: pre-wrap; }
.admin-tabs { flex-wrap: wrap; border-radius: 22px; }
.arow-t .phone { display: block; font-size: 13px; margin-top: 2px; }
.arow-t .phone.none { color: var(--ink-3); font-weight: 300; }
.pick-users { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.pick-users label { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); font-size: 14px; }
.phone-req { margin-bottom: 18px; border-color: var(--mark); box-shadow: inset 0 0 0 1px var(--mark); }
.phone-req p { margin: 6px 0 12px; font-size: 14px; color: var(--ink-2); font-weight: 300; }
/* 추천 → 투표 */
.pick-bar { margin-top: 22px; }
.pick-on { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--ink); color: var(--bg); position: sticky; top: 76px; z-index: 5; }
.pick-on[hidden] { display: none; }
.pick-on input[type=text] { flex: 1; min-width: 160px; min-height: 40px; }
.pick-date { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.pick-date input { min-height: 40px; width: auto; }
.pick-on .btn.ghost { color: var(--bg); }
.reccard { position: relative; }
.reccard .pick { position: absolute; top: 12px; right: 12px; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); font-size: 13px; cursor: pointer; z-index: 2; }
.reccard .pick[hidden] { display: none; }
.recs.picking .reccard { cursor: default; }
.reccard.picked { box-shadow: inset 0 0 0 2px var(--mark); }
/* 팝업 */
.pop-wrap { position: fixed; inset: 0; z-index: 900; background: rgb(10 11 15 / .45); display: grid; place-items: center; padding: 16px; animation: popin .18s ease-out; }
.pop { width: 100%; max-width: 420px; background: var(--card); border-radius: 24px; padding: 26px 24px 18px; box-shadow: 0 30px 70px -30px rgb(0 0 0 / .6); display: flex; flex-direction: column; gap: 10px; }
.pop .dot-ic { margin-bottom: 4px; }
.pop h2 { margin: 0; font-size: 21px; letter-spacing: -0.03em; }
.pop p { margin: 0; color: var(--ink-2); font-weight: 300; line-height: 1.6; }
.pop .pop-body { max-height: 40vh; overflow: auto; font-weight: 300; }
.pop .btn { width: 100%; min-height: 48px; }
.pop .btn.ghost { min-height: 40px; color: var(--ink-3); }
.pop input { min-height: 48px; }
.pop-book { display: flex; gap: 14px; align-items: center; }
.pop-book h2 { margin-top: 6px; }
.pop-seg { display: flex; width: 100%; }
.pop-seg button { flex: 1; height: 44px; font-size: 15px; }
@keyframes popin { from { opacity: 0; } }
@media (max-width: 860px) {
  .stat-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .join-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .join-cta { padding: 24px 22px; }
  .pop-wrap { place-items: end center; }
}
@media (prefers-reduced-motion: reduce) { .pop-wrap { animation: none; } }

.stat-two > section { margin: 0; align-self: stretch; }
.stat-top .tile b.word { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; }

[hidden] { display: none !important; }
.pick-on input { color: var(--ink); }
.pick-on .btn.dark { background: var(--mark); border-color: var(--mark); color: var(--mark-ink); font-weight: 700; }

/* ── 반 (운영자 전용) ── */
.chip.grp { background: #E8EEFF; color: #23408E; height: 22px; padding: 0 9px; font-size: 11.5px; font-weight: 700; }
.chip.grp.all { background: var(--bg-2); color: var(--ink-2); font-weight: 400; }
@media (prefers-color-scheme: dark) { .chip.grp { background: #22305A; color: #C9D6FF; } }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.group-card .gn-in { font-weight: 700; font-size: 17px; border-color: transparent; background: transparent; padding-left: 0; min-height: 38px; }
.group-card .gn-in:focus { border-color: var(--line-2); background: var(--card); padding-left: 12px; }
.gm { display: flex; flex-wrap: wrap; gap: 6px; }
.gm span { padding: 4px 11px; border-radius: 999px; background: var(--bg-2); font-size: 13.5px; }
.gm em { font-style: normal; font-size: 11px; margin-left: 5px; color: var(--ink-3); }
.arow-a select + select { margin-left: 2px; }
.group-next .gn-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gn { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--r); background: var(--bg-2); }
.gn b { font-size: 16px; }
.gn > span:last-child { font-size: 13px; color: var(--ink-3); }
.gn.none { background: transparent; border: 1px dashed var(--line-2); }
.group-card .gn-in { flex: 1; width: auto; min-width: 0; }
.group-card > .row:first-child { flex-wrap: nowrap; }

/* ── 홈 다음 모임: 낮은 가로 카드 ── */
.nx { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; background: #15171E; color: #F6F5F0;
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 22px; padding: 18px 22px; align-items: center; }
.nx .glow { position: absolute; inset: -30%; z-index: -1; background-size: cover; background-position: center; filter: blur(60px) saturate(1.4); opacity: .5; }
.nx .glow.none { background: radial-gradient(60% 60% at 15% 30%, #3B4A7A 0, transparent 70%), radial-gradient(50% 60% at 90% 80%, #5A3E2B 0, transparent 70%); filter: none; opacity: 1; }
.nx .bk { width: 92px; box-shadow: 0 14px 28px -12px rgb(0 0 0 / .7); }
.nx-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.nx-top { display: flex; align-items: center; gap: 8px; }
.nx-top .chip { height: 24px; font-size: 12px; padding: 0 10px; }
.nx-more { font-size: 12.5px; color: rgb(246 245 240 / .6); }
.nx-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.nx-title b { font-size: 21px; letter-spacing: -0.03em; line-height: 1.25; }
.nx-title span { font-size: 14px; color: rgb(246 245 240 / .65); font-weight: 300; }
.nx-meta { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: rgb(246 245 240 / .8); flex-wrap: wrap; }
.nx-meta .i { width: 15px; height: 15px; }
.nx-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; margin: 0 4px; }
.nx-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.nx .seg { background: rgb(255 255 255 / .1); padding: 3px; }
.nx .seg button { height: 30px; padding: 0 13px; font-size: 13px; color: rgb(246 245 240 / .78); }
.nx .seg button.on { background: var(--mark); color: var(--mark-ink); }
.nx-count { font-size: 13px; color: rgb(246 245 240 / .75); padding: 4px 2px; border-bottom: 1px dashed rgb(255 255 255 / .3); }
.nx-count:hover { color: #fff; }
.nx .btn { min-height: 34px; border-color: rgb(255 255 255 / .2); background: rgb(255 255 255 / .08); color: #fff; }
.nx .btn.on-mark { background: var(--mark); border-color: var(--mark); color: var(--mark-ink); font-weight: 700; }
.nx-cal { width: 34px; height: 34px; margin-left: auto; border-color: rgb(255 255 255 / .2); background: rgb(255 255 255 / .06); color: #fff; }
.nx-cal .i { width: 17px; height: 17px; }
@media (max-width: 760px) {
  .nx { grid-template-columns: 68px minmax(0, 1fr); gap: 14px; padding: 14px 14px 14px 16px; border-radius: 20px; align-items: start; }
  .nx .bk { width: 68px; }
  .nx-title b { font-size: 18px; }
  .nx-title span { font-size: 12.5px; }
  .nx-meta { font-size: 12.5px; }
  .nx-acts { margin-top: 2px; gap: 6px; }
  .nx .seg button { height: 28px; padding: 0 10px; font-size: 12.5px; }
}
@media (max-width: 760px) {
  .nx-cal { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; margin: 0; }
  .nx-top { padding-right: 40px; }
  .nx-meta { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
}

/* 로그인 버튼: 로고 + 글자, 두 개가 한 줄에 */
.login { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; gap: 8px; }
.login:has(> .btn:only-child) { grid-template-columns: minmax(0, 1fr); max-width: 260px; }
.login .btn { min-height: 48px; font-size: 15px; padding: 0 12px; gap: 8px; white-space: nowrap; }
.login .btn .brand { width: 19px; height: 19px; flex: none; }
.btn.google { box-shadow: 0 1px 2px rgb(0 0 0 / .06); }
@media (max-width: 380px) { .login .btn { font-size: 13.5px; padding: 0 8px; gap: 6px; } .login .btn .brand { width: 17px; height: 17px; } }
.members-only .login { justify-content: center; margin-left: auto; margin-right: auto; }

/* ── 모임 달력 ── */
.cal-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cal-ynav { display: flex; align-items: center; gap: 10px; }
.cal-ynav b { font-size: 22px; letter-spacing: -0.03em; }
.cal-ynav .muted { font-size: 13.5px; min-width: 68px; }
.cal-ynav .icon-btn[disabled] { opacity: .3; pointer-events: none; }
.cal-mrow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin: 22px 0 28px; }
.cal-mrow button { border: 1px solid var(--line); background: var(--card); border-radius: 12px; height: 54px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-3); padding: 0; }
.cal-mrow button b { font-size: 14px; font-weight: 500; white-space: nowrap; }
.cal-mrow button span { font-size: 11.5px; min-height: 14px; }
.cal-mrow button.has { color: var(--ink); background: var(--bg-2); border-color: transparent; }
.cal-mrow button.has b { font-weight: 700; }
.cal-mrow button.now { border-color: var(--ink); }
.cal-mrow button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cal-mrow button.on span { color: var(--mark); }
.cal-sub { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-sub .h2 { margin: 0; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.cal-w { padding: 10px 0; text-align: center; font-size: 13px; color: var(--ink-3); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.cal-w.sun, .cal-d.sun .cal-n { color: #D1435B; }
.cal-w.sat, .cal-d.sat .cal-n { color: #3B6FD8; }
.cal-d { min-height: 96px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cal-d:nth-child(7n) { border-right: 0; }
.cal-d.cal-x { background: color-mix(in srgb, var(--bg-2) 55%, transparent); }
.cal-n { font-size: 13px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal-d.today .cal-n { background: var(--ink); color: var(--bg) !important; font-weight: 700; }
.cal-m { display: flex; flex-direction: column; gap: 4px; min-width: 0; border-radius: 8px; }
.cal-m:hover .cs { filter: brightness(1.08); }
.cs { display: block; height: 30px; border-radius: 7px; background-size: cover; background-position: center 45%; position: relative; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.cs i { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.cs i svg, .cs i .i { width: 16px; height: 16px; }
.cs.movie i { color: #FFE14D; }
.cs.special i { color: #3B2F00; }
.cal-d.future .cs { box-shadow: 0 0 0 2px var(--mark); }
.ct { font-size: 12.5px; font-weight: 500; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: keep-all; }
.cal-list .list { margin-top: 0; }
.cal-when { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 760px) {
  .cal-ynav b { font-size: 19px; }
  .cal-mrow { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin: 16px 0 22px; }
  .cal-mrow button { height: 46px; border-radius: 10px; }
  .cal-mrow button b { font-size: 13px; }
  .cal-d { min-height: 62px; padding: 4px 3px; gap: 4px; }
  .cal-n { width: 22px; height: 22px; font-size: 12px; margin: 0 auto; }
  .cs { height: 18px; border-radius: 5px; }
  .cs i svg, .cs i .i { width: 12px; height: 12px; }
  .ct { display: none; }
}

/* ── 여러 모임 서비스 (2026-12) ───────────────────────── */
/* 한 화면을 조금 더 멀리서 보는 느낌: 큰 화면은 전체를 살짝 줄이고 폭을 넓힘, 작은 화면은 글자만 한 단계 낮춤 */
:root { --max: 1280px; }
@media (min-width: 900px) {
  html { zoom: .9; }
  /* 확대·축소된 화면에서도 입력칸 글자는 16px 이상 (휴대폰 자동 확대 방지와 같은 기준) */
}
@media (max-width: 899px) {
  body { font-size: 15px; }
  .lead { font-size: 15.5px; }
  .prose { font-size: 16px; line-height: 1.8; }
  .h1 { font-size: clamp(25px, 6.6vw, 32px); }
  .h-display { font-size: clamp(32px, 9vw, 44px); }
  .btn { font-size: 14.5px; }
  .nav a { font-size: 14px; }
}

/* 모임 머리: 다독리더로 돌아가기 + 모임 이름 */
.hub-back { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--bg); display: grid; place-items: center; flex: none; margin-right: -16px; }
.hub-back svg { width: 18px; height: 18px; }
.hub-back:hover { opacity: .85; }
#clubName { max-width: 14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 모임 설정 · 사용량 */
.grid2 > .card { margin: 0; }
.grid2:has(> .card) { gap: 20px; }
.meters { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.meter { font-size: 14px; }
.meter .gauge { height: 6px; margin-top: 6px; }
.meter b { font-weight: 700; }
.meter.off { opacity: .55; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg); background: var(--sw); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.swatches button.on { box-shadow: 0 0 0 2px var(--ink); }
.f > .md-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.f { display: block; margin-bottom: 18px; }
label.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
label.check input { width: 18px; height: 18px; accent-color: var(--ink); }

/* 회비 */
.dues-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 16px; }
.dues-m { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); cursor: pointer; text-align: left; font-size: 14px; }
.dues-m small { margin-left: auto; color: var(--ink-3); font-size: 12px; }
.dues-m.on { background: var(--mark-soft); border-color: color-mix(in srgb, var(--mark) 60%, var(--line)); font-weight: 700; }

/* 연간 기록집 */
.yearbook { max-width: 820px; margin: 0 auto; }
.yb-cover { padding: 56px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.yb-cover small { font-size: 14px; color: var(--ink-3); letter-spacing: .02em; }
.yb-cover h1 { font-size: 96px; line-height: 1; letter-spacing: -0.06em; margin: 8px 0 6px; }
.yb-cover p { font-size: 20px; color: var(--ink-2); font-weight: 300; margin: 0; }
.yb-stats { display: flex; gap: 28px; margin-top: 28px; color: var(--ink-2); }
.yb-stats b { font-size: 28px; color: var(--ink); margin-right: 4px; }
.yb-item { padding: 32px 0; border-bottom: 1px solid var(--line); break-inside: avoid-page; }
.yb-head { display: flex; gap: 20px; align-items: flex-start; }
.yb-head small { color: var(--ink-3); font-size: 13px; }
.yb-head h2 { font-size: 24px; letter-spacing: -0.03em; margin: 2px 0 0; }
.yb-head p { margin: 4px 0 0; font-weight: 300; }
.yb-who { font-size: 14px; color: var(--ink-2); margin: 16px 0 0; }
.yb-rec { margin-top: 16px; font-size: 15px; }
.yb-rec h3 { font-size: 16px; margin: 0 0 6px; }
.yb-rev { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; font-size: 14.5px; font-weight: 300; }
.yb-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.yb-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
@media print {
  html { zoom: 1; }
  .topbar, .foot, .no-print, .live-pill { display: none !important; }
  body { background: #fff; color: #000; }
  .yb-cover { break-after: page; padding-top: 30vh; }
}

/* 작은 공유 아이콘 (투표·추천·다음 모임) */
.icon-btn.share-ic { width: 32px; height: 32px; flex: none; color: var(--ink-2); }
.icon-btn.share-ic .i { width: 16px; height: 16px; }
.nx .icon-btn.share-ic { width: 34px; height: 34px; border-color: rgb(255 255 255 / .2); background: rgb(255 255 255 / .06); color: #fff; }
.nx .icon-btn.share-ic .i { width: 17px; height: 17px; }
@media (max-width: 760px) { .nx .icon-btn.share-ic { position: absolute; top: 12px; right: 52px; width: 32px; height: 32px; } .nx-top { padding-right: 84px; } }
.poll .icon-btn.share-ic, .reccard .icon-btn.share-ic { margin-left: 2px; }

/* 저장 버튼: 긴 입력 화면에서도 늘 보이도록 아래에 붙는 막대 + 크고 노란 버튼 */
.save-bar { position: sticky; bottom: 0; z-index: 15; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 28px -16px 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); }
.btn.save-main { min-height: 54px; padding: 0 34px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em;
  background: var(--mark); color: var(--mark-ink); border-color: var(--mark); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--mark) 80%, #000); }
.btn.save-main:hover { filter: brightness(.96); }
.btn.save-main:disabled { opacity: .55; box-shadow: none; }
.btn.save-main .i { width: 20px; height: 20px; }
.save-bar .muted { font-size: 13px; }
@media (max-width: 760px) {
  .save-bar { bottom: calc(66px + env(safe-area-inset-bottom)); padding-bottom: 12px; }
  .btn.save-main { flex: 1; }
}

/* 모임 안의 '내 서재' 탭 */
.mine-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding: 16px 18px; border-radius: var(--r); background: var(--bg-2); }
.mine-bar > span:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mine-bar b { font-size: 17px; }
.mine-bar .muted { font-size: 13.5px; }
.mine-list { list-style: none; margin: 16px 0 0; padding: 0; }
.mine-list li { display: flex; align-items: center; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.mine-list .bk { flex: none; }
.mine-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mine-t b { font-size: 15.5px; }
.mine-t small { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.mine-intro { margin-top: 28px; padding: 32px; border-radius: var(--r); background: var(--bg-2); max-width: 760px; }
.mine-intro h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -0.03em; }
.mine-intro p { margin: 0 0 20px; font-weight: 300; line-height: 1.7; color: var(--ink-2); }
@media (max-width: 760px) {
  .mine-list li { flex-wrap: wrap; }
  .mine-acts { width: 100%; justify-content: flex-start; padding-left: 58px; }
}
.foot .font-credit { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-3); opacity: .8; }

/* 공유 이미지 카드 미리보기 */
.card-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgb(10 11 14 / .72); backdrop-filter: blur(6px); }
.card-modal-in { width: min(440px, 100%); max-height: 100%; overflow: auto; display: grid; gap: 14px; justify-items: center; }
.card-modal-in img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 30px 70px -20px rgb(0 0 0 / .6); }
.card-modal-acts { display: flex; gap: 8px; width: 100%; }
.card-modal-acts .btn { flex: 1; justify-content: center; }
.card-modal-note { margin: 0; font-size: 13px; color: rgb(246 245 240 / .75); text-align: center; }

/* AI 질문 후보 */
.aiq { margin: -4px 0 24px; padding: 18px 20px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); }
.aiq-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.aiq-head > div { flex: 1 1 280px; min-width: 0; }
.aiq-head b { display: flex; align-items: center; gap: 6px; font-size: 17px; }
.aiq-head b .i { width: 18px; height: 18px; }
.aiq-head small { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 300; color: var(--ink-2); }
.aiq-h { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 8px; font-size: 14px; letter-spacing: -0.02em; }
.aiq-h span { font-weight: 300; color: var(--ink-3); }
.aiq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.aiq-q { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.aiq-q:hover { border-color: var(--line-2); }
.aiq-q.on { border-color: var(--ink); background: var(--mark-soft); }
.aiq-q input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.aiq-q b { display: block; font-size: 15.5px; font-weight: 500; line-height: 1.55; letter-spacing: -0.02em; }
.aiq-q small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.aiq-bar { position: sticky; bottom: 96px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); box-shadow: 0 10px 30px -12px rgb(0 0 0 / .35); }
.aiq-bar span { flex: 1; padding-left: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.aiq-note { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
.aiq-note.warn { margin: 16px 0 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--mark-soft); color: var(--ink); }
.aiq-wait { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.aiq-wait i { width: 18px; height: 18px; border: 3px solid var(--line-2); border-top-color: var(--ink); border-radius: 50%; animation: aiq-spin .8s linear infinite; }
@keyframes aiq-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .aiq-wait i { animation-duration: 3s; } }
@media (max-width: 640px) { .aiq { padding: 16px 14px; } .aiq-head .btn { width: 100%; justify-content: center; } .aiq-bar { border-radius: var(--r); } .aiq-bar .btn.dark { flex: 1 1 100%; justify-content: center; } }

/* 참여 통계 */
.ps-table { display: grid; }
.ps-row { display: grid; grid-template-columns: minmax(140px, 1.4fr) minmax(160px, 2fr) repeat(4, minmax(64px, .6fr)); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.ps-row.head { font-size: 12.5px; color: var(--ink-3); border-bottom: 2px solid var(--ink); padding-top: 0; }
.ps-row:last-child { border-bottom: 0; }
.ps-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ps-who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-who small { font-size: 12px; color: var(--ink-3); flex: none; }
.ps-bar { display: grid; grid-template-columns: minmax(0, 1fr) 28px 40px; gap: 8px; align-items: center; }
.ps-bar i { height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.ps-bar em { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.ps-bar b { text-align: right; }
.ps-bar small { font-size: 12px; color: var(--ink-3); }
@media (max-width: 760px) {
  .ps-row.head { display: none; }
  .ps-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 10px; padding: 14px 0; }
  .ps-who, .ps-bar { grid-column: 1 / -1; }
  .ps-row [data-l] { font-size: 13px; }
  .ps-row [data-l]::before { content: attr(data-l); display: block; font-size: 11.5px; color: var(--ink-3); }
}

/* 회비 장부 */
.ledger .end { display: inline-flex; align-items: center; gap: 10px; }
.lg-in { color: #17794B; } .lg-out { color: var(--ink); }
.ledger .icon-btn { width: 30px; height: 30px; } .ledger .icon-btn .i { width: 14px; height: 14px; }
@media (max-width: 760px) { .ledger-form { flex-direction: column; align-items: stretch !important; } }

/* 방문 통계 */
.vchart { display: flex; align-items: flex-end; gap: 3px; height: 180px; margin-top: 18px; }
.vcol { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 4px; }
.vcol i { display: flex; align-items: flex-end; min-height: 2px; background: var(--line-2); border-radius: 3px 3px 0 0; }
.vcol em { display: block; width: 100%; background: var(--ink); border-radius: 3px 3px 0 0; }
.vcol small { font-size: 10px; color: var(--ink-3); text-align: center; overflow: hidden; }
.vlegend { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 12.5px; color: var(--ink-3); }
.vlegend span { width: 10px; height: 10px; border-radius: 2px; margin-left: 10px; } .vlegend span:first-child { margin-left: 0; }
.vlegend .a { background: var(--ink); } .vlegend .b { background: var(--line-2); }

/* 회원 탈퇴 */
.acc-leave { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.acc-leave summary { cursor: pointer; color: var(--ink-3); }
.acc-leave ul { margin: 8px 0; padding-left: 20px; }
.acc-leave form { margin-top: 14px; }
.btn.danger:not(.ghost) { background: #B3261E; border-color: #B3261E; color: #fff; }
.btn.danger:not(.ghost):disabled { opacity: .4; }

/* AI 질문 후보: 무료·유료 고르기 */
.plan-pick { width: min(520px, 100%); max-height: 100%; overflow: auto; padding: 26px; border-radius: var(--r); background: var(--card); color: var(--ink); display: grid; gap: 14px; }
.plan-pick h3 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.plan-lead { margin: -6px 0 0; font-size: 14px; font-weight: 300; color: var(--ink-2); }
.plan-opts { display: grid; gap: 10px; }
.plan-opt { display: grid; gap: 4px; text-align: left; padding: 16px 18px; border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--card); font: inherit; color: inherit; cursor: pointer; }
.plan-opt:hover:not(:disabled) { background: var(--mark-soft); }
.plan-opt:disabled { border-color: var(--line); color: var(--ink-3); cursor: default; }
.plan-opt.soon { border-style: dashed; border-color: var(--line-2); }
.plan-opt b { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.plan-opt b i { font-style: normal; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.plan-opt span { font-size: 14px; font-weight: 700; }
.plan-opt small { font-size: 13px; font-weight: 300; color: var(--ink-2); line-height: 1.5; }
.plan-msg { margin: 0; min-height: 1.4em; font-size: 14px; font-weight: 700; }
.plan-pick > .btn { justify-self: end; }
