/* ============================================================
   온학당 v4 — 수묵 담채 디자인 (로고·참고 시안 기반)
   팔레트: 한지 종이 / 쑥 초록 / 먹 남색
   ============================================================ */
:root {
  --paper: #FDFCF9;
  --paper-deep: #F6F3EC;
  --card: #FFFFFF;
  --line: #E7E4DB;
  --line-soft: #F0EEE7;
  --ink: #20262C;
  --ink-soft: #67727E;
  --green: #6F8F52;
  --green-deep: #55713E;
  --green-soft: #EBF0E4;
  --navy: #223A57;
  --navy-deep: #15263A;
  --navy-soft: #E8EDF3;
  --amber: #C0762F;
  --amber-soft: #F7EBDB;
  --danger: #B5482F;
  --serif: 'Noto Serif KR', serif;
  --sans: 'Pretendard Variable', Pretendard, 'Noto Sans KR', sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 10px rgba(21,38,58,0.05);
  --shadow-lift: 0 10px 26px rgba(21,38,58,0.12);
  --sidebar-w: 250px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--paper);
  line-height: 1.65; word-break: keep-all;
}
img { max-width: 100%; }
button { font-family: var(--sans); cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.84rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 26px; }
.wrap.narrow { max-width: 860px; }

/* ---------- 앱 셸 ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: none;
  position: sticky; top: 0; height: 100vh;
  background: linear-gradient(180deg, #FBFAF5, var(--paper));
  border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column;
  padding: 26px 16px 20px;
}
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav .nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 12px;
  text-decoration: none; color: var(--ink);
  font-size: 0.95rem; font-weight: 500;
  border: 1px solid transparent; transition: all 0.15s;
}
.side-nav .nav-link .ni { font-size: 1rem; width: 22px; text-align: center; filter: grayscale(0.2); }
.side-nav .nav-link:hover { background: #F1EFE6; }
.side-nav .nav-link.active {
  background: var(--green-soft); border-color: #DCE5D0;
  color: var(--green-deep); font-weight: 700;
}
.side-foot {
  margin-top: auto; padding: 16px 10px 0; border-top: 1px dashed var(--line);
  font-family: var(--serif); color: var(--navy); font-size: 0.9rem; font-weight: 600;
}
.side-foot .sf-sub { font-family: var(--sans); font-weight: 400; font-size: 0.76rem; color: var(--ink-soft); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ---------- 상단바 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 26px;
  background: rgba(246,244,237,0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.tb-brand { display: none; align-items: center; gap: 8px; text-decoration: none; }
.tb-brand img { width: 30px; height: 30px; }
.tb-brand span { font-family: var(--serif); font-weight: 900; font-size: 1.1rem; color: var(--navy); }
.tb-welcome { font-size: 0.88rem; color: var(--ink-soft); flex: 1; }
.auth-area { display: flex; align-items: center; gap: 10px; }
.user-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 0.88rem; font-weight: 600; color: var(--navy); }

/* ---------- 버튼 ---------- */
.btn {
  border: none; border-radius: 999px; font-weight: 600;
  padding: 10px 20px; font-size: 0.92rem; transition: all 0.15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-lg { padding: 13px 26px; font-size: 1rem; }
.btn-sm { padding: 7px 15px; font-size: 0.84rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-primary:disabled { background: #A9B4C2; cursor: default; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { filter: brightness(0.93); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); }
.btn-danger-ghost {
  background: none; border: none; color: var(--danger); font-size: 0.8rem;
  cursor: pointer; padding: 3px 6px; border-radius: 6px; font-family: var(--sans);
}
.btn-danger-ghost:hover { background: #F8ECE8; }
.gear-btn {
  background: var(--card); border: 1px solid var(--line); border-radius: 50%;
  width: 36px; height: 36px; font-size: 1rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; color: var(--navy);
}
.gear-btn:hover { background: var(--navy); color: #fff; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative; overflow: hidden;
  margin: 22px 0 20px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 85% 15%, rgba(111,143,82,0.1), transparent 45%),
    linear-gradient(150deg, #FDFCF7 20%, #F4F2E8 70%, #EDEDE4);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  min-height: 340px;
  display: flex; align-items: center;
}
.hero-art { position: absolute; inset: 0; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-copy { position: relative; z-index: 1; padding: 46px 52px; max-width: 560px; }
.hero-title {
  font-family: var(--serif); font-weight: 900; color: var(--navy-deep);
  font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.25; letter-spacing: -0.01em;
}
.hero-title em { font-style: normal; color: var(--green-deep); }
.hero-sub {
  font-family: var(--serif); font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--ink); margin: 10px 0 14px; font-weight: 600;
}
.hero-desc { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 24px; }

/* ---------- 책 전환 칩 ---------- */
.book-switch { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 0 0 22px; }
.bs-chip {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 9px 22px 9px 9px;
  font-size: 1.02rem; font-weight: 700; color: var(--ink); transition: all 0.15s;
  box-shadow: 0 3px 10px -6px rgba(35,48,60,.25);
}
.bs-chip img { width: 40px; height: 56px; object-fit: cover; border-radius: 7px; }
.bs-chip:hover { border-color: var(--green); }
.bs-chip.active { background: var(--green); border-color: var(--green); color: #fff; box-shadow: var(--shadow-lift); }

/* ---------- 카드 공통 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
}
.card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px; gap: 10px;
}
.card-head h2 { font-family: var(--serif); font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.more-link { font-size: 0.82rem; color: var(--green-deep); text-decoration: none; font-weight: 600; cursor: pointer; }
.more-link:hover { text-decoration: underline; }
.section-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--ink); }

.dash-row { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.dash-row.bottom-row { grid-template-columns: 1fr 1fr 1fr; }
.dash-card { display: flex; flex-direction: column; }

/* 이번 달 책 카드 */
.hb-grid { display: grid; grid-template-columns: 108px 1fr; gap: 18px; flex: 1; }
.hb-cover {
  width: 108px; aspect-ratio: 2/3; border-radius: 4px 10px 10px 4px;
  overflow: hidden; box-shadow: 5px 8px 18px rgba(44,74,110,0.22); align-self: start;
}
.hb-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-title { font-family: var(--serif); font-weight: 900; font-size: 1.5rem; color: var(--ink); line-height: 1.3; }
.hb-author { font-size: 0.88rem; color: var(--ink-soft); margin: 2px 0 8px; }
.hb-desc { font-size: 0.88rem; color: var(--ink); margin-bottom: 10px; }
.hb-period { font-size: 0.84rem; color: var(--ink-soft); margin-bottom: 12px; }
.hb-label {
  display: block; font-size: 0.74rem; color: var(--ink-soft); letter-spacing: 0.06em;
}
.apply-state { font-size: 0.84rem; color: var(--green-deep); font-weight: 600; margin-top: 8px; }

/* 도넛 (나의 읽기 현황) */
.donut-top { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.pub-pill {
  font-size: 0.74rem; font-weight: 700; border-radius: 999px; padding: 3px 12px;
  background: var(--paper-deep); color: var(--ink-soft);
}
.pub-pill.on { background: var(--green-soft); color: var(--green-deep); }
.pub-pill.on::before { content: "● "; font-size: 0.6rem; }
.donut-wrap { position: relative; width: 168px; margin: 4px auto 10px; }
.donut { width: 100%; transform: rotate(-90deg); }
.donut-bg { fill: none; stroke: var(--paper-deep); stroke-width: 11; }
.donut-fg {
  fill: none; stroke: var(--green); stroke-width: 11; stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease;
}
.donut-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.donut-center strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 900; color: var(--ink); }
.donut-center span { font-size: 0.8rem; color: var(--ink-soft); }
.donut-goal {
  margin-top: auto; background: #FAF9F4; border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 0.82rem; color: var(--ink-soft);
}
.donut-goal strong { color: var(--ink); font-size: 0.88rem; }

/* 다가오는 일정 카드 */
.ev-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 2px; border-bottom: 1px dashed var(--line-soft);
}
.ev-row:last-child { border-bottom: none; }
.ev-dcol { width: 62px; flex: none; text-align: left; }
.ev-dday { display: block; font-family: var(--serif); font-weight: 900; color: var(--green-deep); font-size: 1.02rem; }
.ev-dday.today { color: var(--amber); }
.ev-date { font-size: 0.76rem; color: var(--ink-soft); }
.ev-info { flex: 1; min-width: 0; }
.ev-title { font-weight: 700; font-size: 0.94rem; color: var(--ink); }
.ev-meta { font-size: 0.8rem; color: var(--ink-soft); }
.ev-ico {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  background: var(--green-soft); display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

/* 감명/질문 미니 카드 */
.mini-quote { position: relative; padding-left: 6px; flex: 1; display: flex; flex-direction: column; }
.mini-quote .qq {
  font-family: var(--serif); font-size: 2.4rem; color: var(--green); line-height: 1;
  display: block; height: 26px;
}
.mini-quote p { font-family: var(--serif); font-size: 0.98rem; line-height: 1.75; color: var(--ink); }
.mq-page { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }
.mq-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.84rem; color: var(--ink-soft); }

/* 함께 읽는 사람들 */
.people-count { font-size: 0.84rem; color: var(--ink-soft); margin: -8px 0 14px; }
.people-strip { display: flex; gap: 14px; flex-wrap: wrap; }
.person { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 62px; }
.p-ring {
  width: 56px; height: 56px; border-radius: 50%; padding: 3px;
  background: conic-gradient(var(--green) calc(var(--p, 0) * 1%), var(--paper-deep) 0);
  display: flex; align-items: center; justify-content: center;
}
.p-ring .avatar { width: 46px; height: 46px; font-size: 1.05rem; }
.p-ring.plus {
  background: var(--paper-deep); color: var(--ink-soft); font-weight: 700; font-size: 0.85rem;
}
.p-name { font-size: 0.78rem; font-weight: 600; color: var(--ink); max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-pct { font-size: 0.74rem; color: var(--green-deep); font-weight: 700; }

/* ---------- 아바타 ---------- */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--serif); font-size: 1rem; flex: none;
}
.avatar.sm { width: 26px; height: 26px; font-size: 0.78rem; }

/* ---------- 한 줄 출석 ---------- */
.line-card { margin-bottom: 20px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FDFCF6, #F7F4E9); }
.line-card::before {
  content: "一日一文"; position: absolute; right: 20px; top: 10px;
  font-family: var(--serif); font-weight: 900; font-size: 2.2rem;
  color: rgba(111,143,82,0.1); letter-spacing: 0.14em;
}
.line-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.line-date { font-family: var(--sans); font-weight: 500; font-size: 0.84rem; color: var(--ink-soft); }
.line-streak { font-size: 0.85rem; font-weight: 700; color: var(--amber); }
.line-input-row { display: flex; gap: 10px; margin: 6px 0 16px; }
.line-input-row input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 11px 18px; font-family: var(--sans); font-size: 0.95rem; background: #fff;
}
.line-input-row input:focus { outline: 2px solid var(--green); border-color: transparent; }
.line-list { display: flex; flex-direction: column; gap: 8px; }
.line-item { display: flex; align-items: center; gap: 10px; font-size: 0.93rem; }
.line-item .li-name { font-weight: 700; color: var(--navy); flex: none; }
.line-item .li-text { color: var(--ink); }
.line-item .li-mine { font-size: 0.72rem; color: var(--green-deep); background: var(--green-soft); border-radius: 999px; padding: 2px 8px; }
.line-empty { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- 예고 카드 ---------- */
.home-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 26px 0 14px;
}
.upcoming-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 10px; }
.upcoming-card {
  display: grid; grid-template-columns: 110px 1fr; gap: 20px;
  background: linear-gradient(120deg, var(--navy), #3A5C82);
  color: #fff; border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.upcoming-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.uc-cover {
  width: 110px; aspect-ratio: 2/3; border-radius: 4px 9px 9px 4px; overflow: hidden;
  box-shadow: 6px 10px 22px rgba(0,0,0,0.35); transform: rotate(-2deg);
}
.uc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uc-badge {
  display: inline-block; background: var(--amber); color: #fff;
  font-size: 0.7rem; font-weight: 700; border-radius: 999px; padding: 3px 11px; margin-bottom: 8px;
  letter-spacing: 0.08em;
}
.uc-title { font-family: var(--serif); font-weight: 900; font-size: 1.35rem; }
.uc-author { font-size: 0.87rem; opacity: 0.85; margin: 2px 0 8px; }
.uc-period { font-size: 0.83rem; opacity: 0.9; }
.uc-dday { font-family: var(--serif); font-weight: 900; color: #F0C987; font-size: 1.02rem; margin-top: 6px; }
.uc-actions { margin-top: 12px; }
.uc-actions .applied { font-size: 0.85rem; font-weight: 700; color: #CFE7D8; }

/* ---------- 저자 카드 ---------- */
.author-feature {
  display: grid; grid-template-columns: 60px 1fr; gap: 8px;
  margin: 22px 0;
}
.author-mark {
  font-family: var(--serif); font-size: 4rem; line-height: 1; color: var(--green);
  font-weight: 900;
}
.author-name { font-family: var(--serif); font-weight: 700; color: var(--navy); margin: 4px 0 6px; }
.author-intro { font-size: 0.94rem; color: var(--ink); }

/* ---------- 책장 ---------- */
.bookshelf-wrap { position: relative; margin-bottom: 30px; }
.bookshelf {
  display: flex; gap: 22px; overflow-x: auto; padding: 10px 6px 20px;
  scrollbar-width: thin;
}
.shelf-book { flex: none; width: 108px; text-align: center; }
.sb-cover {
  width: 108px; aspect-ratio: 2/3; border-radius: 3px 8px 8px 3px; overflow: hidden;
  box-shadow: 5px 8px 16px rgba(59,65,55,0.2);
  transition: transform 0.2s;
}
.shelf-book:hover .sb-cover { transform: translateY(-6px) rotate(-1.5deg); }
.sb-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-title { font-family: var(--serif); font-weight: 700; font-size: 0.82rem; margin-top: 8px; color: var(--ink); }
.sb-author { font-size: 0.72rem; color: var(--ink-soft); }
.shelf-board {
  height: 12px; border-radius: 4px; margin-top: -14px;
  background: linear-gradient(180deg, #D8CDB4, #C4B694);
  box-shadow: 0 6px 12px rgba(59,65,55,0.14);
}

/* ---------- 페이지 헤더 (하위 뷰) ---------- */
.page-head { position: relative; overflow: hidden; padding: 42px 0 30px; margin-bottom: 26px;
  border-bottom: 1px solid var(--line-soft); background: #FBFAF5; }
.page-head-backdrop {
  position: absolute; inset: -30px; background-size: cover; background-position: center;
  filter: blur(46px) saturate(0.8); opacity: 0.16;
}
.page-head .wrap { position: relative; }
.page-head.plain { background: #FBFAF5; }
.page-title { font-family: var(--serif); font-weight: 900; font-size: 1.7rem; color: var(--navy-deep); }
.page-sub { color: var(--ink-soft); font-size: 0.93rem; margin-top: 4px; }

/* ---------- 나눔 ---------- */
.write-card { margin-bottom: 16px; }
.write-types { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.type-pill {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 7px 16px; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft);
}
.type-pill.active { background: var(--green); border-color: var(--green); color: #fff; }
textarea, input[type="text"], input[type="number"], input[type="url"],
input[type="password"], input[type="date"], select {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 14px; font-family: var(--sans); font-size: 0.94rem;
  background: #FDFDFB; color: var(--ink); resize: vertical;
}
textarea:focus, input:focus, select:focus { outline: 2px solid var(--green); border-color: transparent; }
.write-foot { display: flex; gap: 10px; margin-top: 10px; align-items: center; }
.write-foot input[type="number"] { width: 150px; }
.login-hint { margin-top: 8px; font-size: 0.86rem; }
.filter-row { display: flex; gap: 8px; margin: 4px 0 20px; flex-wrap: wrap; }
.filter-pill {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 6px 16px; font-size: 0.84rem; color: var(--ink-soft); font-weight: 600;
}
.filter-pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; padding-bottom: 30px; }
.post-grid.compact { padding-bottom: 0; }
.post-card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.quote-visual {
  padding: 30px 24px; color: #FBF7EF; position: relative; min-height: 150px;
  display: flex; flex-direction: column; justify-content: center;
}
.quote-visual::before {
  content: "“"; font-family: var(--serif); font-weight: 900; font-size: 3.4rem;
  position: absolute; top: 6px; left: 16px; opacity: 0.35; line-height: 1;
}
.quote-visual p { font-family: var(--serif); font-size: 1.02rem; line-height: 1.8; font-weight: 600; }
.quote-visual .q-page { margin-top: 10px; font-size: 0.8rem; opacity: 0.8; }
.qbg-0 { background: linear-gradient(140deg, #2C4A6E, #1B2F47); }
.qbg-1 { background: linear-gradient(140deg, #55713E, #35492A); }
.qbg-2 { background: linear-gradient(140deg, #7E4A1D, #573312); }
.qbg-3 { background: linear-gradient(140deg, #5A4A7E, #3B3055); }
.qbg-4 { background: linear-gradient(140deg, #2F5D5D, #1D3B3B); }
.post-body { padding: 20px 22px 6px; }
.post-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; border-radius: 999px;
  padding: 2px 11px; margin-bottom: 8px;
}
.post-badge.question { background: var(--navy-soft); color: var(--navy); }
.post-badge.thought { background: var(--amber-soft); color: var(--amber); }
.post-content { font-size: 0.95rem; }
.post-content.question-style { font-family: var(--serif); }
.post-foot {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px 14px;
  font-size: 0.82rem; color: var(--ink-soft);
}
.pf-name { font-weight: 700; color: var(--ink); }
.pf-meta { margin-left: auto; }

/* ---------- 인증샷 ---------- */
.photo-upload-card { margin-bottom: 20px; }
.photo-btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.photo-preview { margin-bottom: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.photo-preview img { max-width: 260px; max-height: 260px; border-radius: 12px; box-shadow: var(--shadow); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; padding-bottom: 30px; }
.photo-card {
  border-radius: var(--radius); overflow: hidden; background: var(--card);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.photo-card .pc-img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--paper-deep); }
.photo-card .pc-caption { padding: 12px 16px 0; font-size: 0.92rem; }

/* ---------- 읽기 현황 ---------- */
.my-progress-card { margin-bottom: 26px; }
.progress-edit .row { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; }
.progress-edit input[type="range"] { flex: 1; accent-color: var(--green); }
.progress-edit input[type="number"] { width: 90px; }
.page-total { color: var(--ink-soft); font-size: 0.9rem; flex: none; }
.book-bar {
  position: relative; height: 14px; border-radius: 999px; background: var(--paper-deep);
  overflow: visible; margin: 10px 0 6px;
  background-image: repeating-linear-gradient(90deg, transparent 0 14px, rgba(59,65,55,0.045) 14px 15px);
}
.book-bar .fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #8CA96E, var(--green)); transition: width 0.35s;
}
.book-bar .bookmark {
  position: absolute; top: -7px; width: 12px; height: 26px; margin-left: -6px;
  background: var(--amber); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
  transition: left 0.35s;
}
.toggle-row { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; margin: 12px 0 14px; }
.toggle-row input { width: auto; accent-color: var(--green); }
.members-title { margin-bottom: 14px; }
.member-list { display: flex; flex-direction: column; gap: 14px; padding-bottom: 30px; }
.member-item {
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto;
  column-gap: 14px; background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow);
}
.member-item .avatar { grid-row: 1 / 3; align-self: center; }
.member-head { display: flex; justify-content: space-between; align-items: baseline; }
.member-name { font-weight: 700; font-size: 0.94rem; }
.me-tag {
  background: var(--green-soft); color: var(--green-deep); font-size: 0.7rem;
  border-radius: 999px; padding: 2px 8px; margin-left: 6px; font-weight: 700;
}
.member-pct { font-family: var(--serif); font-weight: 900; color: var(--green-deep); }
.member-pages { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- 일정 ---------- */
.week-list { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 30px; }
.week-item {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow); position: relative;
}
.week-item.current { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft), var(--shadow); }
.week-item.current::after {
  content: "이번 주"; position: absolute; right: 16px; top: 14px;
  background: var(--green); color: #fff; font-size: 0.72rem; font-weight: 700;
  border-radius: 999px; padding: 2px 10px;
}
.week-no { font-family: var(--serif); font-weight: 900; color: var(--green-deep); font-size: 0.9rem; }
.week-title { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; margin: 2px 0; }
.week-desc { font-size: 0.88rem; color: var(--ink-soft); }
.week-pages { font-size: 0.82rem; color: var(--amber); font-weight: 600; margin-top: 4px; }
.events-title { margin-top: 8px; }
.event-list { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 40px; }
.event-item {
  display: flex; gap: 18px; align-items: center;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 16px 22px; box-shadow: var(--shadow);
}
.event-item.past { opacity: 0.5; }
.event-item.today { border-color: var(--amber); }
.event-dday {
  font-family: var(--serif); font-weight: 900; font-size: 1.15rem; color: var(--green-deep);
  width: 74px; flex: none;
}
.event-item.today .event-dday { color: var(--amber); }
.event-title { font-weight: 700; }
.ev-type {
  font-size: 0.7rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; margin-left: 8px;
  background: var(--paper-deep); color: var(--ink-soft); vertical-align: middle;
}
.ev-type.author { background: var(--amber-soft); color: var(--amber); }
.ev-type.meeting { background: var(--green-soft); color: var(--green-deep); }
.event-meta { font-size: 0.84rem; color: var(--ink-soft); }

/* ---------- 운영 ---------- */
.admin-card { margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.form-grid .full { grid-column: 1 / -1; }
.cover-upload-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.cover-preview { width: 72px; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); }
.admin-form-actions { display: flex; gap: 10px; align-items: center; }
.admin-sub-title {
  font-family: var(--serif); font-weight: 700; font-size: 1.02rem; color: var(--navy);
  margin: 26px 0 10px; padding-top: 18px; border-top: 1px dashed var(--line);
}
.admin-book-sel-label { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.admin-item-list { display: flex; flex-direction: column; margin-bottom: 14px; }
.admin-item-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 2px;
  border-bottom: 1px dashed var(--line-soft); font-size: 0.9rem; flex-wrap: wrap;
}
.admin-item-row:last-child { border-bottom: none; }
.admin-item-row .air-main { flex: 1; min-width: 180px; }
.admin-item-row .air-main strong { color: var(--navy); }
.admin-item-row .air-meta { color: var(--ink-soft); font-size: 0.82rem; }
.air-btn {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; font-size: 0.8rem; color: var(--navy); font-weight: 600;
}
.air-btn:hover { background: var(--navy); color: #fff; }
.air-btn.danger { color: var(--danger); }
.air-btn.danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.status-pill { font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.status-pill.active { background: var(--green-soft); color: var(--green-deep); }
.status-pill.upcoming { background: var(--amber-soft); color: var(--amber); }
.status-pill.archived { background: var(--paper-deep); color: var(--ink-soft); }
.admin-book-cover { width: 34px; height: 50px; object-fit: cover; border-radius: 4px; flex: none; }
.applicant-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 2px; border-bottom: 1px dashed var(--line-soft); font-size: 0.9rem; flex-wrap: wrap;
}
.applicant-row:last-child { border-bottom: none; }

/* ---------- 모달 ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(30,53,80,0.4); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.modal {
  background: var(--card); border-radius: 22px; padding: 30px 28px;
  width: 100%; max-width: 400px; position: relative; box-shadow: var(--shadow-lift);
  max-height: calc(100dvh - 40px); max-height: calc(100vh - 40px);
  overflow-y: auto; overscroll-behavior: contain;
  margin: auto 0; /* 세로로 길어도 위가 잘리지 않게 */
}
.modal-logo { width: 52px; display: block; margin: 0 auto 8px; }
.modal-close {
  position: absolute; top: 12px; right: 16px; background: none; border: none;
  font-size: 1.6rem; color: var(--ink-soft); line-height: 1;
}
.modal-title { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin-bottom: 6px; }
.modal-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.modal-tab {
  flex: 1; padding: 9px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-weight: 600; font-size: 0.9rem; color: var(--ink-soft);
}
.modal-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form label { font-size: 0.85rem; font-weight: 600; color: var(--navy); display: flex; flex-direction: column; gap: 6px; }
.auth-form .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.78rem; }
.auth-error { color: var(--danger); font-size: 0.85rem; min-height: 1.2em; }

/* ---------- 푸터 / 토스트 / 하단 탭 ---------- */
.footer {
  margin-top: auto; border-top: 1px solid var(--line-soft); padding: 22px 26px 26px;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-soft); font-size: 0.86rem;
}
.footer img { width: 26px; height: 26px; opacity: 0.85; }
.toast {
  position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%);
  background: var(--navy-deep); color: #fff; border-radius: 999px;
  padding: 11px 22px; font-size: 0.9rem; z-index: 200; box-shadow: var(--shadow-lift);
  max-width: 90vw; text-align: center;
}
.bottom-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(251,250,245,0.94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-soft);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around;
}
.bn-item {
  background: none; border: none; display: flex; flex-direction: column; align-items: center;
  gap: 2px; color: var(--ink-soft); font-size: 0.68rem; font-weight: 600; padding: 4px 10px;
  border-radius: 12px; min-width: 58px;
}
.bn-item svg { width: 22px; height: 22px; fill: currentColor; }
.bn-item.active { color: var(--green-deep); }
.bn-item.active svg { fill: var(--green-deep); }

/* ---------- 반응형 ---------- */
@media (max-width: 1240px) {
  .dash-row { grid-template-columns: 1fr 1fr; }
  .dash-row .dash-card:first-child { grid-column: 1 / -1; }
  .dash-row.bottom-row { grid-template-columns: 1fr 1fr; }
  .dash-row.bottom-row .dash-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .sidebar { display: none; }
  .tb-brand { display: inline-flex; }
  .tb-welcome { display: none; }
  .bottom-nav { display: flex; }
  body { padding-bottom: 74px; }
  .wrap { padding: 0 16px; }
  .hero { min-height: 280px; }
  .hero-copy { padding: 32px 26px; }
  .hero-art { opacity: 0.55; }
  .dash-row, .dash-row.bottom-row { grid-template-columns: 1fr; }
  .dash-row .dash-card:first-child,
  .dash-row.bottom-row .dash-card:last-child { grid-column: auto; }
  .post-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .upcoming-list { grid-template-columns: 1fr; }
  .upcoming-card { grid-template-columns: 92px 1fr; gap: 14px; padding: 18px; }
  .uc-cover { width: 92px; }
  .form-grid { grid-template-columns: 1fr; }
  .hb-grid { grid-template-columns: 92px 1fr; gap: 14px; }
  .hb-cover { width: 92px; }
  .hb-title { font-size: 1.25rem; }
  .line-input-row { flex-direction: column; }
  .line-input-row .btn { align-self: flex-end; }
  .event-item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .author-feature { grid-template-columns: 40px 1fr; }
  .toast { bottom: 96px; }
}
@media (min-width: 1001px) and (max-width: 1240px) {
  :root { --sidebar-w: 220px; }
}


/* ---------- 히어로 한자 (붓글씨) ---------- */
.hangul-art text { font-family: 'Nanum Brush Script', 'Noto Serif KR', serif; }

.footer .ver { font-size: 0.72rem; color: var(--ink-soft); opacity: 0.7; margin-left: 6px; }

/* ---------- 댓글 ---------- */
.cmt-area { border-top: 1px dashed var(--line-soft); padding: 8px 16px 12px; }
.cmt-toggle {
  background: none; border: none; color: var(--ink-soft); font-size: 0.82rem;
  font-weight: 600; padding: 4px 0; font-family: var(--sans);
}
.cmt-toggle:hover, .cmt-toggle.open { color: var(--green-deep); }
.cmt-box { margin-top: 6px; display: flex; flex-direction: column; gap: 8px; }
.cmt-item { display: flex; align-items: flex-start; gap: 8px; font-size: 0.86rem; }
.cmt-item .cmt-body { flex: 1; line-height: 1.5; }
.cmt-item strong { color: var(--navy); margin-right: 4px; }
.cmt-input-row { display: flex; gap: 8px; margin-top: 4px; }
.cmt-input-row input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: 0.86rem;
}

/* ---------- v4.5: 미니 목록, 예고 소개, 모바일 최적화 강화 ---------- */
.mini-list { display: flex; flex-direction: column; }
.mini-item {
  display: flex; gap: 8px; padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft); align-items: flex-start;
}
.mini-item:last-child { border-bottom: none; }
.mi-q { font-family: var(--serif); font-weight: 900; color: var(--green); font-size: 1.1rem; line-height: 1.2; flex: none; }
.mi-body { min-width: 0; }
.mi-body p { font-size: 0.88rem; line-height: 1.55; font-family: var(--serif); }
.mi-meta { font-size: 0.76rem; color: var(--ink-soft); }

.uc-desc { font-size: 0.85rem; opacity: 0.9; line-height: 1.6; margin: 4px 0 8px; }
.uc-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.uc-edit { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); color: #fff; }
.uc-edit:hover { background: rgba(255,255,255,0.25); color: #fff; }

.author-feature { display: block; }
.hb-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 모바일 세밀 조정 ---------- */
@media (max-width: 700px) {
  .hero { min-height: 220px; }
  .hero-copy { padding: 26px 20px; }
  .hangul-art { display: none; }          /* 좁은 화면에선 문장이 제목과 겹치지 않게 숨김 */
  .hero-art { opacity: 0.45; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 12px; }
  .card, .dash-card { padding: 18px 16px; }
  .card-head h2 { font-size: 1rem; }
  .hb-grid { grid-template-columns: 84px 1fr; gap: 12px; }
  .hb-cover { width: 84px; }
  .hb-title { font-size: 1.15rem; }
  .hb-desc { font-size: 0.84rem; }
  .upcoming-card { grid-template-columns: 80px 1fr; gap: 12px; padding: 16px; }
  .uc-cover { width: 80px; }
  .uc-title { font-size: 1.15rem; }
  .uc-desc { font-size: 0.8rem; }
  .donut-wrap { width: 140px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .shelf-book { width: 88px; }
  .sb-cover { width: 88px; }
  .page-title { font-size: 1.4rem; }
  .btn-lg { padding: 11px 20px; font-size: 0.92rem; }
  .topbar { padding: 10px 12px; }
  .auth-area .btn-sm { padding: 6px 11px; font-size: 0.78rem; }
  .line-card::before { display: none; }
  .cmt-input-row input { font-size: 16px; } /* iOS 자동 확대 방지 */
  .line-input-row input, .write-foot input, textarea { font-size: 16px; }
}

/* ---------- 일정 화면 관리자 버튼 ---------- */
.week-item .sched-admin { margin-top: 10px; display: flex; gap: 8px; }
.week-item.current .sched-admin { margin-top: 12px; }
.event-item { flex-wrap: wrap; }
.event-item .sched-admin { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 700px) {
  .event-item .sched-admin { margin-left: 0; }
}

/* ---------- v4.7: 구절 / 질문 시각적 구분 ---------- */
.ct-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 8px; margin-right: 8px;
  font-size: 0.95rem; vertical-align: -4px;
}
.ico-quote { background: var(--green-soft); color: var(--green-deep); font-family: var(--serif); font-weight: 900; font-size: 1.2rem; padding-top: 6px; }
.ico-q { background: var(--navy); color: #fff; font-weight: 800; font-size: 0.85rem; font-family: var(--sans); }

.home-quote { border-top: 3px solid var(--green); }
.home-question { border-top: 3px solid var(--navy); background: linear-gradient(180deg, #F7F9FC, #FFFFFF 40%); }

.mi-qmark {
  flex: none; width: 20px; height: 20px; border-radius: 6px; margin-top: 2px;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 0.72rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.home-question .mi-body p { font-family: var(--sans); }

/* 나눔 피드 카드 유형 구분 */
.post-card.type-question { border-left: 5px solid var(--navy); background: linear-gradient(180deg, #F8FAFD, #fff 55%); }
.post-card.type-thought { border-left: 5px solid #E4C89A; }
.post-badge.question { background: var(--navy); color: #fff; }
.post-content.question-style::before {
  content: "Q. "; color: var(--navy); font-weight: 900; font-family: var(--sans);
}

/* 글쓰기·필터 버튼 색 통일: 구절=초록(기본), 질문=남색, 감상=호박색 */
.type-pill[data-type="question"].active,
.filter-pill[data-filter="question"].active { background: var(--navy); border-color: var(--navy); color: #fff; }
.type-pill[data-type="thought"].active,
.filter-pill[data-filter="thought"].active { background: var(--amber); border-color: var(--amber); color: #fff; }
.filter-pill[data-filter="quote"].active { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- v4.8: 새 슬로건 ---------- */
.hero-title { font-size: clamp(1.7rem, 3.5vw, 2.7rem); }
.hero-title .ht-q { color: var(--green-deep); }

/* ---------- v4.9: 신청자 관리 도구 ---------- */
.app-summary { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.app-sum-chip {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 5px 14px; font-size: 0.82rem; color: var(--ink); font-family: var(--sans);
}
.app-sum-chip strong { color: var(--green-deep); }
.app-sum-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.app-sum-chip.on strong { color: #F0C987; }
.app-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.applicant-row { align-items: flex-start; }
.ar-who { display: flex; align-items: center; gap: 8px; min-width: 160px; }
.ar-contact { font-size: 0.86rem; display: flex; align-items: center; gap: 6px; }
.ar-memo { flex: 1; min-width: 120px; font-size: 0.84rem; }
@media (max-width: 700px) {
  .applicant-row { flex-direction: column; gap: 4px; }
}

/* ---------- v5.0: 슬로건 한 줄 표기 ---------- */
.hero-copy { max-width: 780px; }
.hero-title { white-space: nowrap; letter-spacing: -0.02em; font-size: clamp(1.2rem, 2.7vw, 2.35rem); }
@media (max-width: 480px) {
  .hero-title { font-size: clamp(1rem, 4.8vw, 1.35rem); }
}

/* ---------- v5.2: 책 카드 클릭 이동 ---------- */
.hb-cover, .hb-title, .hb-author { cursor: pointer; }
.hb-cover { transition: transform 0.18s, box-shadow 0.18s; }
.hb-cover:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 7px 12px 24px rgba(44,74,110,0.3); }
.hb-title:hover { color: var(--green-deep); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* ---------- v5.3: 상단 흐르는 명언 자막 ---------- */
.tb-quotes {
  flex: 1; overflow: hidden; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.tbq-track {
  display: inline-flex; align-items: center; white-space: nowrap;
  animation: tbq-flow 90s linear infinite; will-change: transform;
}
.tb-quotes:hover .tbq-track { animation-play-state: paused; }
.tbq {
  font-family: var(--serif); font-size: 0.88rem; color: var(--ink);
}
.tbq strong { color: var(--green-deep); font-weight: 600; font-size: 0.8rem; margin-left: 2px; }
.tbq-sep { margin: 0 26px; font-size: 0.75rem; opacity: 0.7; }
@keyframes tbq-flow { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tbq-track { animation: none; } }
@media (max-width: 1000px) { .tb-quotes { display: none; } }

/* ---------- v5.6: 공개/비공개 & 홈 통합 피드 ---------- */
.pub-toggle { display: flex; gap: 8px; margin-bottom: 10px; }
.pubt {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 6px 14px; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
  font-family: var(--sans);
}
.pubt.active { background: var(--green); border-color: var(--green); color: #fff; }
.pubt[data-pub="0"].active { background: var(--ink); border-color: var(--ink); }
.pub-mini {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 2px 10px; font-size: 0.72rem; font-weight: 700; color: var(--green-deep);
  font-family: var(--sans); cursor: pointer;
}
.pub-mini.locked { color: var(--ink-soft); background: var(--paper-deep); }
.pub-mini:hover { border-color: var(--green); }
#homeFeed { margin-bottom: 8px; }

/* ---------- v5.7: 후기 · 내 서재 · 명예의 전당 ---------- */
.star { color: #D9CFB6; font-size: 1.2rem; }
.star.on { color: #E0A93B; }
.star-row .star { cursor: pointer; font-size: 1.5rem; margin-right: 2px; }
.rw-title { font-family: var(--serif); font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.review-write-card { margin: 14px 0 20px; }
.review-write-card textarea { margin-top: 8px; }
.review-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: 30px; }
.review-card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); position: relative;
}
.review-card.featured { border-color: #E7C67A; background: linear-gradient(180deg, #FFFDF6, #fff); }
.feat-badge {
  position: absolute; top: 14px; right: 16px; background: #F3E5C0; color: #8A6A1F;
  font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 3px 10px;
}
.review-stars { margin-bottom: 6px; }
.review-text { font-family: var(--serif); font-size: 1rem; line-height: 1.75; }
.review-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.82rem; color: var(--ink-soft); }

.myshelf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.myshelf-item {
  display: grid; grid-template-columns: 70px 1fr; gap: 14px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s;
}
.myshelf-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.msi-cover { width: 70px; aspect-ratio: 2/3; border-radius: 4px 8px 8px 4px; overflow: hidden; box-shadow: 3px 5px 12px rgba(44,74,110,0.2); }
.msi-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msi-title { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; margin: 4px 0 1px; }
.msi-author { font-size: 0.8rem; color: var(--ink-soft); }
.msi-review { font-size: 0.8rem; margin-top: 6px; }
.msi-review .star { font-size: 0.9rem; }
.msi-noreview { font-size: 0.78rem; color: var(--ink-soft); margin-top: 6px; }

.hall-list { display: flex; flex-direction: column; gap: 16px; padding-bottom: 36px; }
.hall-card {
  display: grid; grid-template-columns: 76px 1fr; gap: 18px;
  background: linear-gradient(180deg, #FFFDF6, #fff); border: 1px solid #EAD9AE;
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.hall-cover { width: 76px; aspect-ratio: 2/3; border-radius: 4px 8px 8px 4px; overflow: hidden; box-shadow: 4px 7px 16px rgba(44,74,110,0.22); }
.hall-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hall-quote { font-family: var(--serif); font-size: 1.05rem; line-height: 1.8; margin: 6px 0 10px; }
.hall-quote::before { content: "“"; color: #E0A93B; font-weight: 900; font-family: var(--serif); }
.hall-quote::after { content: "”"; color: #E0A93B; font-weight: 900; font-family: var(--serif); }
.hall-meta { font-size: 0.86rem; }
@media (max-width: 700px) {
  .myshelf-grid { grid-template-columns: 1fr; }
  .hall-card { grid-template-columns: 60px 1fr; gap: 12px; padding: 16px; }
  .hall-cover { width: 60px; }
}

/* ---------- v5.8: 그룹 · 리더 ---------- */
.member-pick {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px;
  max-height: 200px; overflow-y: auto; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px; background: #FDFDFB;
}
.mp-item { display: flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 400; color: var(--ink); }
.mp-item input { width: auto; accent-color: var(--green); }
.group-card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 10px;
}
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.group-name { font-family: var(--serif); font-size: 1.05rem; color: var(--navy); }
.leader-badge { font-size: 0.76rem; font-weight: 700; color: var(--amber); background: var(--amber-soft); border-radius: 999px; padding: 2px 10px; margin-left: 8px; }
.group-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.group-members { font-size: 0.86rem; color: var(--ink-soft); margin-top: 8px; }
.my-group-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.my-group-chip {
  background: var(--green-soft); border: 1px solid #DCE5D0; border-radius: 12px;
  padding: 10px 16px; font-size: 0.92rem; color: var(--green-deep);
}

/* ---------- v5.9: 모임 안내 · 약관 · 사업자 ---------- */
.host-card { margin-bottom: 18px; }
.host-top { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.host-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--green-soft); background: var(--paper-deep); }
.host-label { font-size: 0.76rem; color: var(--green-deep); font-weight: 700; letter-spacing: 0.05em; }
.host-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 900; color: var(--navy-deep); }
.host-title { font-size: 0.9rem; color: var(--ink-soft); }
.host-bio { font-size: 0.96rem; line-height: 1.8; }
.about-body { font-size: 0.98rem; line-height: 1.9; font-family: var(--serif); }
.about-cta { text-align: center; margin: 24px 0 40px; }
.legal-card { margin-bottom: 40px; }
.legal-body { font-size: 0.92rem; line-height: 1.85; color: var(--ink); }
.side-legal { margin-top: 10px; font-size: 0.72rem; }
.side-legal a { color: var(--ink-soft); text-decoration: none; cursor: pointer; }
.side-legal a:hover { color: var(--green-deep); }
.footer { flex-direction: column; align-items: stretch; }
.footer-main { display: flex; align-items: flex-start; gap: 12px; }
.biz-info { font-size: 0.76rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.6; }
.footer-legal { font-size: 0.78rem; margin-top: 6px; }
.footer-legal a { color: var(--ink-soft); text-decoration: none; cursor: pointer; margin-right: 2px; }
.footer-legal a:hover { color: var(--green-deep); text-decoration: underline; }

/* ---------- v6.0: 포스트잇 보드 ---------- */
.board-panel {
  background: #FBFAF4; border-radius: 22px; padding: 24px;
  width: 100%; max-width: 860px; max-height: 90vh; overflow-y: auto;
  position: relative; box-shadow: var(--shadow-lift);
  background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 22px 22px;
}
.board-head { text-align: center; margin-bottom: 10px; }
.board-title { font-family: var(--serif); font-weight: 900; font-size: 1.5rem; color: var(--navy-deep); }
.board-sub { font-size: 0.86rem; color: var(--ink-soft); }
.sticky-board { min-height: 300px; }
.board-inner {
  display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: start;
  padding: 16px 4px;
}
.board-cover { justify-self: center; }
.board-cover img {
  width: 170px; aspect-ratio: 2/3; object-fit: cover; border-radius: 4px 10px 10px 4px;
  box-shadow: 8px 14px 30px rgba(44,74,110,0.35); transform: rotate(-2deg);
}
.sticky-wrap { display: flex; flex-wrap: wrap; gap: 14px; align-content: flex-start; }
.sticky {
  background: var(--c); width: 150px; min-height: 120px; padding: 14px 14px 8px;
  transform: rotate(var(--r)); box-shadow: 2px 4px 10px rgba(0,0,0,0.14);
  display: flex; flex-direction: column; transition: transform 0.15s;
  font-family: 'Nanum Brush Script', var(--serif);
}
.sticky:hover { transform: rotate(0deg) scale(1.04); z-index: 2; }
.sticky::before {
  content: ""; position: absolute; margin: -22px 0 0 52px; width: 44px; height: 16px;
  background: rgba(255,255,255,0.45); transform: rotate(-4deg);
}
.sticky p { font-size: 1.15rem; line-height: 1.5; color: #3a3a2e; flex: 1; word-break: keep-all; }
.sticky-foot { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: #6a6a55; font-family: var(--sans); }
.sticky-del { background: none; border: none; font-size: 1rem; color: #99997c; cursor: pointer; line-height: 1; }
.sticky-del:hover { color: var(--danger); }
.board-empty { width: 100%; padding: 40px 0; text-align: center; }
.board-foot { display: flex; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.board-foot input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 11px 18px;
  font-size: 0.95rem; background: #fff;
}
.shelf-book[data-openboard] { cursor: pointer; }
@media (max-width: 700px) {
  .board-inner { grid-template-columns: 1fr; justify-items: center; }
  .sticky-wrap { justify-content: center; }
  .board-foot input { font-size: 16px; }
  .sticky { width: 140px; }
}

/* ---------- v6.1: ON AIR & 모임 전체보기 ---------- */
.live-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #E14D45; margin-right: 7px; vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(225,77,69,0.5); animation: live-pulse 1.6s infinite;
}
.live-dot.sm { width: 7px; height: 7px; margin-right: 4px; }
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(225,77,69,0.45); }
  70% { box-shadow: 0 0 0 7px rgba(225,77,69,0); }
  100% { box-shadow: 0 0 0 0 rgba(225,77,69,0); }
}
.book-switch { display: block; }
.onair-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.02rem; font-weight: 800; color: #B23A33; letter-spacing: 0.02em;
  margin-bottom: 12px; font-family: var(--sans);
}
.onair-label .live-dot { width: 11px; height: 11px; }
.onair-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip-live { margin-left: 2px; }
.bs-more {
  border: none; background: none; color: var(--green-deep); font-weight: 700;
  font-size: 0.84rem; font-family: var(--sans); cursor: pointer; padding: 6px 8px;
}
.bs-more:hover { text-decoration: underline; }
.onair-mini {
  display: inline-flex; align-items: center; font-size: 0.76rem; font-weight: 800;
  color: #B23A33; background: #FCEBEA; border-radius: 999px; padding: 3px 12px;
}
.soon-mini { display: inline-block; font-size: 0.76rem; font-weight: 700; color: var(--green-deep); background: var(--green-soft); border-radius: 999px; padding: 3px 12px; }
.past-mini { display: inline-block; font-size: 0.76rem; font-weight: 700; color: var(--ink-soft); background: var(--paper-deep); border-radius: 999px; padding: 3px 12px; }

.meet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 14px 0 30px; }
.meet-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.meet-card.live { border-color: #F2C9C6; }
.meet-cover { width: 96px; aspect-ratio: 2/3; border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: 4px 7px 16px rgba(44,74,110,0.22); cursor: pointer; }
.meet-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meet-title { font-family: var(--serif); font-weight: 900; font-size: 1.2rem; margin-top: 6px; color: var(--navy-deep); }
.meet-author { font-size: 0.84rem; color: var(--ink-soft); }
.meet-meta { font-size: 0.82rem; color: var(--ink-soft); margin: 6px 0 10px; line-height: 1.6; }
.meet-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 900px) { .meet-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .meet-card { grid-template-columns: 76px 1fr; gap: 12px; padding: 14px; }
  .meet-cover { width: 76px; }
  .meet-title { font-size: 1.05rem; }
}

/* ---------- v6.2: 리더 도구 ---------- */
.leader-card { border-color: #E7C67A; background: linear-gradient(180deg, #FFFDF6, #fff 30%); margin-bottom: 20px; }

/* ---------- v6.4: 비회원 소개 화면 ---------- */
body.guest-mode .member-only { display: none !important; }
body.guest-mode .hero { display: none !important; }
body.guest-mode .dash-row { grid-template-columns: 1fr; max-width: 620px; }
.guest-intro { margin: 6px 0 10px; }
.gi-block { margin-bottom: 26px; }
.gi-stickies { display: flex; flex-wrap: wrap; gap: 12px; }
.gi-sticky {
  position: relative; width: 168px; min-height: 108px; padding: 14px 14px 26px;
  border-radius: 3px; transform: rotate(var(--r, 0deg)); cursor: pointer;
  box-shadow: 3px 5px 12px rgba(44,74,110,0.16); transition: transform 0.16s, box-shadow 0.16s;
}
.gi-sticky:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 5px 9px 20px rgba(44,74,110,0.24); }
.gi-sticky p { font-family: var(--serif); font-size: 0.9rem; line-height: 1.55; color: #3B3B33; }
.gi-sticky-meta { position: absolute; left: 14px; bottom: 10px; font-size: 0.72rem; color: #6B6B5E; }
.gi-sticky.c0 { background: #FCE88E; }
.gi-sticky.c1 { background: #BFE3B6; }
.gi-sticky.c2 { background: #F7C0C9; }
.gi-sticky.c3 { background: #BFD8F2; }
.gi-sticky.c4 { background: #E7CDF2; }
.gi-reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gi-review {
  background: linear-gradient(180deg, #FFFDF6, #fff); border: 1px solid #EAD9AE;
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
}
.gi-review p { font-family: var(--serif); font-size: 0.95rem; line-height: 1.75; margin: 6px 0 8px; }
.gi-review cite { font-size: 0.8rem; color: var(--ink-soft); font-style: normal; }
.gi-cta {
  text-align: center; background: var(--green-soft); border: 1px solid #DCE5D0;
  border-radius: var(--radius); padding: 28px 20px; margin-bottom: 26px;
}
.gi-cta-text { font-size: 1rem; line-height: 1.8; color: var(--green-deep); margin-bottom: 16px; }
.gi-cta-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 700px) {
  .gi-reviews { grid-template-columns: 1fr; }
  .gi-sticky { width: calc(50% - 6px); }
}

/* ---------- v6.5: 운영 책 찾기 패널 ---------- */
.finder-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.finder-filters { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 14px; }
.finder-period { display: flex; gap: 8px; flex-wrap: wrap; }
.finder-period select, .finder-period input {
  border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px;
  font-size: 0.85rem; font-family: var(--sans); background: var(--card); color: var(--ink);
}
.finder-period input { flex: 1; min-width: 150px; }
.finder-pager {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 14px; font-size: 0.84rem; color: var(--ink-soft);
}
.finder-pager .air-btn:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 700px) {
  .finder-period select, .finder-period input { flex: 1 1 auto; }
}

/* ================= v6.6: 비회원 랜딩 (새 디자인) ================= */
.lp-off { display: none !important; }
body.guest-mode .hero { border-bottom: 1px solid var(--line-soft); }
body.guest-mode .hero-copy { padding-bottom: 34px; }

.lp-trust {
  display: flex; gap: 34px; padding: 22px 0 26px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.lp-trust b {
  display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 900;
  letter-spacing: -0.02em; color: var(--navy-deep); line-height: 1.2;
}
.lp-trust span { font-size: 0.78rem; color: var(--ink-soft); }

.lp-eyebrow {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em;
  color: var(--green-deep); text-transform: uppercase;
}
.lp-title {
  font-family: var(--serif); font-weight: 900; font-size: 1.5rem;
  letter-spacing: -0.02em; margin-top: 5px; color: var(--navy-deep);
}
.lp-title-sm { font-size: 1.2rem; }
.lp-sub { font-size: 0.88rem; color: var(--ink-soft); margin-top: 5px; }
.lp-sec { padding: 34px 0; border-bottom: 1px solid var(--line-soft); }
.lp-sec:last-of-type { border-bottom: none; }
.lp-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.lp-hint { font-size: 0.74rem; color: var(--ink-soft); }

/* ON AIR */
.lp-onair { padding: 18px 0 4px; }
.lp-onair-label { font-size: 0.76rem; font-weight: 800; color: #B23A33; margin-bottom: 10px; }
.lp-onair-row {
  display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.lp-onair-item {
  flex: none; display: flex; gap: 11px; align-items: center; cursor: pointer;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 11px 15px 11px 11px; min-width: 230px; max-width: 300px; transition: 0.16s;
  scroll-snap-align: center;
}
.lp-onair-item > div { min-width: 0; text-align: left; }
.lp-onair-item b {
  white-space: normal; word-break: keep-all; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lp-onair-item:hover { border-color: var(--green); transform: translateY(-2px); }
.lp-onair-item img { width: 40px; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 4px 4px 2px; box-shadow: 2px 4px 10px rgba(44,74,110,0.22); }
.lp-onair-item b { font-family: var(--serif); font-size: 0.94rem; display: block; }

/* 모집 카드 */
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-club {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: 0.18s;
}
.lp-club:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line); }
.lp-club-cover { position: relative; aspect-ratio: 16/10; background: var(--paper-deep); overflow: hidden; }
.lp-club-cover img {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%) rotate(-3deg);
  width: 96px; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px 6px 6px 3px;
  box-shadow: 5px 10px 24px rgba(44,74,110,0.32);
}
.lp-badge {
  position: absolute; top: 11px; left: 11px; z-index: 2; display: inline-flex; align-items: center;
  font-size: 0.7rem; font-weight: 800; padding: 4px 11px; border-radius: 999px; color: #fff;
}
.lp-badge.soon { background: var(--green-deep); }
.lp-badge.live { background: #C93A32; }
.lp-club-body { padding: 16px 17px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.lp-club-title { font-family: var(--serif); font-weight: 900; font-size: 1.08rem; letter-spacing: -0.02em; line-height: 1.4; }
.lp-club-meta { font-size: 0.8rem; color: var(--ink-soft); }
.lp-club-desc { font-size: 0.84rem; color: var(--ink); line-height: 1.65; margin-top: 4px; }
.lp-club-foot {
  margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}

/* 후기 */
.lp-revs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.lp-rev {
  background: linear-gradient(180deg, #FFFDF6, #fff); border: 1px solid #EAD9AE;
  border-radius: var(--radius); padding: 22px 24px; position: relative;
}
.lp-rev::before {
  content: "“"; position: absolute; top: 8px; right: 18px; font-family: var(--serif);
  font-size: 3rem; color: #EFE3C4; line-height: 1;
}
.lp-rev p { font-family: var(--serif); font-size: 0.98rem; line-height: 1.85; margin: 8px 0 12px; position: relative; }
.lp-rev cite { font-size: 0.8rem; color: var(--ink-soft); font-style: normal; }

/* 포스트잇 */
.lp-stickies { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-sticky {
  position: relative;
  width: 172px; min-height: 102px; padding: 14px 14px 28px; border-radius: 2px;
  transform: rotate(var(--r, 0deg)); cursor: pointer; transition: 0.16s;
  box-shadow: 3px 6px 14px rgba(44,74,110,0.14);
}
.lp-sticky:hover { transform: rotate(0deg) translateY(-4px); }
.lp-sticky p { font-family: var(--serif); font-size: 0.88rem; line-height: 1.55; color: #3B3B33; }
.lp-sticky span { position: absolute; left: 14px; bottom: 9px; font-size: 0.7rem; color: #6C6C5E; }
.lp-sticky.c0 { background: #FCE88E; } .lp-sticky.c1 { background: #BFE3B6; }
.lp-sticky.c2 { background: #F7C0C9; } .lp-sticky.c3 { background: #BFD8F2; }
.lp-sticky.c4 { background: #E7CDF2; }

/* 진행 방식 */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.lp-num { font-family: var(--serif); font-size: 0.9rem; font-weight: 900; color: var(--green-deep); border-bottom: 2px solid var(--green); padding-bottom: 3px; }
.lp-steps h3 { font-family: var(--serif); font-size: 1.08rem; font-weight: 900; margin: 13px 0 6px; }
.lp-steps p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.8; }

/* 아카이브 */
.lp-arch { display: grid; grid-template-columns: repeat(7, 1fr); gap: 13px; }
.lp-arch-item { text-align: center; cursor: pointer; }
.lp-arch-item img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 6px 6px 2px; box-shadow: 3px 6px 16px rgba(44,74,110,0.2); transition: 0.16s; }
.lp-arch-item:hover img { transform: translateY(-5px); }
.lp-arch-item b { display: block; font-size: 0.76rem; font-weight: 500; margin-top: 7px; color: var(--ink-soft); }

/* 가입 유도 */
.lp-cta {
  background: var(--navy-deep); color: #fff; border-radius: var(--radius);
  padding: 38px 40px; margin: 30px 0 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.lp-cta h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 900; letter-spacing: -0.02em; }
.lp-cta p { color: #B9C2CB; font-size: 0.9rem; margin-top: 6px; }
.lp-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--navy-deep); }
.btn-white:hover { background: #F1EFE9; }
.btn-ghost-w { background: transparent; color: #fff; border: 1.5px solid #4A5764; }
.btn-ghost-w:hover { border-color: #fff; }

@media (max-width: 900px) {
  .lp-grid, .lp-revs, .lp-steps { grid-template-columns: 1fr; }
  .lp-arch { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .lp-trust { gap: 20px; }
  .lp-trust b { font-size: 1.4rem; }
  .lp-title { font-size: 1.25rem; }
  .lp-arch { grid-template-columns: repeat(3, 1fr); }
  .lp-sticky { width: calc(50% - 6px); }
  .lp-cta { padding: 26px 22px; }
}

/* ================= v6.7: 회원 화면 디자인 언어 통일 ================= */
/* 사이드바 선 아이콘 */
svg.ni {
  width: 19px; height: 19px; flex: none; fill: none;
  stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  opacity: .78; vertical-align: -4px; margin-right: 10px;
}
.nav-link { display: flex; align-items: center; }
.nav-link.active svg.ni { opacity: 1; stroke-width: 1.85; }

/* 카드 위계: 그림자 축소 + 얇은 테두리 */
.card, .dash-card, .post-card, .photo-card, .review-card, .group-card, .meet-card, .admin-item-row {
  box-shadow: 0 1px 2px rgba(35,48,60,.04), 0 10px 30px -20px rgba(35,48,60,.25);
  border-color: var(--line-soft);
}
.card:hover, .dash-card:hover { border-color: var(--line); }

/* 카드 제목 대비 강화 */
.card-head h2, .section-title {
  font-family: var(--serif); font-weight: 900; letter-spacing: -0.02em; color: var(--navy-deep);
}
.card-head h2 { font-size: 1.02rem; }
.section-title { font-size: 1.32rem; }
.more-link { font-size: .84rem; font-weight: 700; color: var(--green-deep); }

/* 라벨(eyebrow) 공통 */
.page-sub { font-size: .9rem; color: var(--ink-soft); }
.page-title { font-family: var(--serif); font-weight: 900; letter-spacing: -.025em; }

/* 내 모임 현황 띠 */
.mystat {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 4px; margin: 4px 0 18px;
  box-shadow: 0 1px 2px rgba(35,48,60,.04), 0 10px 30px -20px rgba(35,48,60,.25);
}
.ms-item {
  padding: 14px 18px; display: flex; flex-direction: column; gap: 3px;
  border-right: 1px solid var(--line-soft);
}
.ms-item:last-child { border-right: none; }
.ms-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--green-deep); text-transform: uppercase; }
.ms-value { font-family: var(--serif); font-size: 1.02rem; font-weight: 900; letter-spacing: -.02em; color: var(--navy-deep); line-height: 1.4; }
.ms-sub { font-size: .76rem; color: var(--ink-soft); }
.ms-sub-inline { font-family: var(--sans); font-size: .72rem; font-weight: 400; color: var(--ink-soft); }
.ms-done { color: var(--green-deep); }
.ms-bar { height: 5px; border-radius: 99px; background: var(--paper-deep); overflow: hidden; margin-top: 6px; }
.ms-bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.ms-action { justify-content: center; align-items: flex-start; }
.ms-action .btn { margin-top: 4px; }

@media (max-width: 1000px) { .mystat { grid-template-columns: repeat(2, 1fr); } .ms-item:nth-child(2) { border-right: none; } }
@media (max-width: 560px) {
  .mystat { grid-template-columns: 1fr; }
  .ms-item { border-right: none; border-bottom: 1px solid var(--line-soft); padding: 12px 15px; }
  .ms-item:last-child { border-bottom: none; }
  .section-title { font-size: 1.2rem; }
}

/* ================= v6.8: 랜딩 중앙 정렬 (항목 수와 무관하게 균형) ================= */
#guestIntro { max-width: 1040px; margin: 0 auto; }

/* 신뢰 지표 중앙 */
.lp-trust { justify-content: center; text-align: center; gap: 46px; }

/* 섹션 제목 중앙 + 링크는 아래 */
.lp-sec-head { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.lp-sec-head .more-link { margin-top: 2px; }

/* 모집 카드: 개수에 따라 자동 중앙 배치 */
.lp-grid {
  grid-template-columns: repeat(auto-fit, minmax(270px, 320px));
  justify-content: center;
}
/* ON AIR / 포스트잇 / 서가 중앙 */
.lp-onair { text-align: center; }
.lp-onair-row { justify-content: flex-start; }
.lp-onair-row > :first-child { margin-left: auto; }
.lp-onair-row > :last-child { margin-right: auto; }
.lp-revs { grid-template-columns: repeat(auto-fit, minmax(300px, 460px)); justify-content: center; }
.lp-stickies { justify-content: center; }
.lp-arch { grid-template-columns: repeat(auto-fit, minmax(110px, 140px)); justify-content: center; }
.lp-steps { text-align: center; }
.lp-steps h3 { margin-top: 12px; }
.lp-cta { justify-content: center; text-align: center; }
.lp-cta-btns { justify-content: center; }

@media (max-width: 900px) {
  .lp-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); }
  .lp-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lp-onair-row { scroll-snap-type: x mandatory; }
  .lp-onair-item { min-width: min(78vw, 260px); }
  .lp-trust { gap: 22px; }
  .lp-grid, .lp-revs { grid-template-columns: minmax(0, 1fr); }
  .lp-arch { grid-template-columns: repeat(3, 1fr); }
}

/* ================= v6.9: ON 인트로 ================= */
html.oi-lock { overflow: hidden; }
#onIntro {
  position: fixed; inset: 0; z-index: 9999; background: #000;
  display: none; place-items: center; overflow: hidden;
  transition: opacity .55s ease, visibility .55s;
}
#onIntro.oi-gone { opacity: 0; visibility: hidden; }
.oi-stage { position: relative; display: grid; place-items: center; padding-bottom: 4vh; }
.oi-lh { position: relative; width: min(58vw, 270px); }
.oi-lh svg { width: 100%; overflow: visible; display: block; }
.oi-beams { position: absolute; left: 50%; top: 26.5%; width: 0; height: 0; pointer-events: none; }
.oi-beams i {
  position: absolute; left: 0; top: 0; width: 64vmax; height: 76px; margin-top: -38px;
  transform-origin: 0 50%; border-radius: 50%;
  background: linear-gradient(90deg, rgba(243,200,107,.30), rgba(231,169,59,.10) 45%, rgba(231,169,59,0) 82%);
  filter: blur(10px); animation: oi-sweep 8.5s ease-in-out infinite;
}
.oi-beams i:nth-child(2) { animation: oi-sweep-l 8.5s ease-in-out infinite; }
@keyframes oi-sweep { 0%,100% { transform: rotate(-13deg); } 50% { transform: rotate(12deg); } }
@keyframes oi-sweep-l { 0%,100% { transform: rotate(193deg); } 50% { transform: rotate(168deg); } }
.oi-core { animation: oi-pulse 3.2s ease-in-out infinite; }
@keyframes oi-pulse { 0%,100% { opacity: .85; } 50% { opacity: 1; } }
.oi-halo { animation: oi-halo 3.2s ease-in-out infinite; }
@keyframes oi-halo { 0%,100% { opacity: .16; } 50% { opacity: .26; } }
.oi-word {
  margin-top: 30px; font-family: var(--serif); font-weight: 900; font-size: 2rem;
  color: #8A94A0; letter-spacing: .1em; text-align: center; transition: color .5s;
}
.oi-word span { color: #C9A050; }
.oi-sub { margin-top: 8px; font-size: .78rem; color: #5A6470; text-align: center; letter-spacing: .02em; }
.oi-hint {
  position: absolute; bottom: 8%; left: 0; right: 0; text-align: center;
  color: #57616D; font-size: .85rem; animation: oi-blink 2.6s ease-in-out infinite;
}
@keyframes oi-blink { 0%,100% { opacity: .35; } 50% { opacity: .9; } }
.oi-skip {
  position: absolute; top: max(22px, env(safe-area-inset-top)); right: 22px; z-index: 5;
  color: #4A545F; font-size: .8rem; background: none; border: none; cursor: pointer; font-family: inherit;
}
.oi-skip:hover { color: #B9C2CB; }
#oiBurst {
  position: fixed; width: 60px; height: 60px; border-radius: 50%; pointer-events: none; z-index: 4;
  background: radial-gradient(circle, #FFFEF8 0%, #FCEFC9 38%, #F3C86B 74%, #E7A93B 100%);
  transform: translate(-50%, -50%) scale(0);
}
#onIntro.oi-go #oiBurst {
  transform: translate(-50%, -50%) scale(46);
  transition: transform 1.05s cubic-bezier(.55, 0, .28, 1);
}
#onIntro.oi-go .oi-word { color: #fff; }
#onIntro.oi-go .oi-hint, #onIntro.oi-go .oi-sub { opacity: 0; transition: opacity .3s; }

/* ================= v7.0: 로고 조판 (명조 웹폰트 렌더) ================= */
.side-logo {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 2px 4px 20px; text-decoration: none; text-align: center;
}
.sl-head { display: flex; align-items: center; justify-content: center; gap: 10px; }
.sl-mark { width: 44px; height: 53px; flex: none; }
.sl-wm {
  font-family: var(--serif); font-weight: 900; font-size: 1.86rem;
  letter-spacing: 0.035em; line-height: 1; color: var(--navy-deep); white-space: nowrap;
}
.sl-wm em { font-style: normal; color: #C9902E; }
.sl-slogan {
  font-size: 0.665rem; font-weight: 500; color: #77828E; letter-spacing: 0;
  white-space: nowrap; display: block; max-width: 100%;
}
.tb-wm { font-family: var(--serif); font-weight: 900; font-size: 1.1rem; color: var(--navy-deep); letter-spacing: 0.03em; }
.tb-wm em { font-style: normal; color: #C9902E; }


/* ================= v7.1: 관심 장르 ================= */
.genre-block {
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 14px 15px; background: #FDFDFB; margin-top: 2px;
}
.genre-head { font-size: 0.86rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 10px; }
.genre-pick { max-height: 230px; overflow-y: auto; padding-right: 4px; }
.genre-group + .genre-group { margin-top: 12px; }
.genre-group-name {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--green-deep); margin-bottom: 6px;
}
.genre-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.genre-chip { position: relative; cursor: pointer; }
.genre-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.genre-chip span {
  display: inline-block; font-size: 0.8rem; font-weight: 500; color: var(--ink-soft);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 12px;
  background: var(--card); transition: 0.14s; white-space: nowrap;
}
.genre-chip:hover span { border-color: var(--green); color: var(--green-deep); }
.genre-chip.on span {
  background: var(--green-soft); border-color: var(--green);
  color: var(--green-deep); font-weight: 700;
}
.genre-chip.on span::before { content: "✓ "; }
.genre-etc { display: block; margin-top: 12px; }
.genre-etc input { width: 100%; }
.mi-card { padding: 16px 18px; margin-bottom: 22px; }
.mi-view { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.mi-tag {
  font-size: 0.8rem; font-weight: 600; color: var(--green-deep);
  background: var(--green-soft); border: 1px solid #DCE5D0;
  border-radius: 999px; padding: 4px 12px;
}
@media (max-width: 560px) { .genre-pick { max-height: 200px; } }

/* ================= v7.3: 신청 취소 ================= */
.link-btn {
  border: none; background: none; padding: 0 2px; cursor: pointer;
  font-family: inherit; font-size: 0.82rem; font-weight: 600;
  color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px;
}
.link-btn:hover { color: #B23A33; }
.air-btn.danger { color: #B23A33; border-color: #F2C9C6; }
.air-btn.danger:hover { background: #FCEBEA; }

/* ================= v7.4: 후기 작성 ================= */
.review-modal { max-width: 480px; }
.rvm-stars { display: flex; gap: 4px; margin: 14px 0 12px; }
.rvm-star {
  border: none; background: none; cursor: pointer; padding: 0 2px;
  font-size: 1.9rem; line-height: 1; color: #DDD8CA; transition: 0.12s;
}
.rvm-star.on { color: var(--amber, #D89A32); }
.rvm-star:hover { transform: scale(1.12); }
#rvmContent { width: 100%; resize: vertical; }
.board-review-link { margin-left: 6px; white-space: nowrap; }
.msi-review-btn { margin-top: 6px; }
.msi-review .link-btn { font-size: 0.76rem; margin-left: 4px; }
.check-label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check-label input { width: auto; accent-color: var(--green); }

/* v7.5: 전당 하단 모든 후기 */
.hall-cta { text-align: center; margin: 26px 0 10px; }

/* ================= v7.6: 후기 표시 개선 ================= */
/* 줄바꿈·공백을 쓴 그대로 표시 */
.review-text, .hall-quote { white-space: pre-line; }

/* 후기 사진 */
.review-photo {
  display: block; max-width: min(100%, 380px); max-height: 300px;
  object-fit: cover; border-radius: 10px; margin: 10px 0 4px;
  border: 1px solid var(--line-soft); box-shadow: 0 4px 14px -8px rgba(35,48,60,.3);
}
.hall-card .review-photo { max-width: 100%; max-height: 220px; }

/* 모달 사진 첨부 */
.rvm-photo { margin: 10px 0 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rvm-photo-btn { cursor: pointer; }
.rvm-photo-preview { display: flex; align-items: center; gap: 10px; width: 100%; }
.rvm-photo-preview img {
  width: 92px; height: 92px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line);
}

/* ================= v7.7: 후기 동선·공개범위 ================= */
.board-tabs { display: flex; gap: 6px; margin-top: 10px; }
.btab {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 6px 15px; font-family: inherit; font-size: 0.84rem; font-weight: 600;
  color: var(--ink-soft); cursor: pointer; transition: 0.14s;
}
.btab.on { background: var(--green-soft); border-color: var(--green); color: var(--green-deep); font-weight: 700; }
.board-reviews { max-height: 56vh; overflow-y: auto; padding: 4px 2px 8px; }
.br-top { margin-bottom: 12px; }
.vis-badge {
  font-size: 0.7rem; font-weight: 700; color: #8A6D1F;
  background: #FBF3DB; border: 1px solid #EAD9AE; border-radius: 999px; padding: 2px 9px;
}
.vis-select {
  font-family: inherit; font-size: 0.76rem; padding: 3px 6px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink-soft);
}
.rvm-vis { display: block; margin: 4px 0 10px; font-size: 0.85rem; font-weight: 600; }
.rvm-vis select { width: 100%; margin-top: 5px; }

/* ================= v7.8: 후기 관리 ================= */
.rm-filter { margin-bottom: 12px; }
.rm-filter select { max-width: 260px; }
.rm-row {
  display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
  padding: 12px 2px; border-bottom: 1px solid var(--line-soft);
}
.rm-row.featured { background: #FDFAF0; border-radius: 8px; padding: 12px 10px; }
.rm-main { min-width: 0; flex: 1; }
.rm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.rm-text { font-size: 0.84rem; color: var(--ink-soft); margin-top: 4px; white-space: pre-line; }
.rm-tag {
  font-size: 0.68rem; font-weight: 700; color: var(--green-deep);
  background: var(--green-soft); border-radius: 999px; padding: 2px 8px;
}
.rm-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; flex: none; max-width: 46%; }
.feat-badge.sm { font-size: 0.72rem; padding: 1px 7px; }
.review-stars.sm { font-size: 0.8rem; }
.rvm-author { display: block; margin: 4px 0 8px; font-size: 0.85rem; font-weight: 600; }
.rvm-author input { width: 100%; margin-top: 5px; }
@media (max-width: 640px) {
  .rm-row { flex-direction: column; }
  .rm-actions { max-width: 100%; justify-content: flex-start; }
}

/* ================= v8.0: 책별 관리 패널 ================= */
#fdSort { min-width: 130px; }
.bm-count { font-size: 0.78rem; font-weight: 700; color: var(--green-deep); margin-left: 8px; }
.bm-open.on { background: var(--green-soft); border-color: var(--green); color: var(--green-deep); }
.bm-detail {
  border: 1px solid var(--line); border-top: none; border-radius: 0 0 12px 12px;
  background: #FBFBF7; padding: 16px 18px; margin: -6px 0 12px;
}
.bm-stats {
  display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line-soft);
  border-radius: 10px; background: var(--card); overflow: hidden; margin-bottom: 14px;
}
.bm-stats > div {
  flex: 1; min-width: 76px; text-align: center; padding: 10px 6px;
  border-right: 1px solid var(--line-soft);
}
.bm-stats > div:last-child { border-right: none; }
.bm-stats b { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 900; color: var(--navy-deep); }
.bm-stats b i { font-style: normal; font-size: 0.72rem; color: #C9902E; }
.bm-stats span { font-size: 0.7rem; color: var(--ink-soft); }
.bm-sec { margin-bottom: 12px; }
.bm-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.bm-app {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  padding: 7px 2px; border-bottom: 1px dashed var(--line-soft); font-size: 0.85rem;
}
.bm-app:last-child { border-bottom: none; }
.bm-app-name { font-weight: 700; color: var(--navy-deep); }
.bm-app-contact { color: var(--ink-soft); font-size: 0.8rem; }
.bm-app-memo { color: var(--ink-soft); font-size: 0.78rem; font-style: italic; }
.bm-app .air-btn { margin-left: auto; }
.bm-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
@media (max-width: 640px) {
  .bm-stats > div { min-width: 33%; border-bottom: 1px solid var(--line-soft); }
  .bm-app .air-btn { margin-left: 0; }
}

/* ================= v8.1: 저자 사진 ================= */
.author-feature { display: flex; gap: 18px; align-items: flex-start; }
.author-photo { flex: none; margin: 2px 0 0; }
.author-photo img {
  width: 92px; height: 92px; object-fit: cover; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 4px 16px -6px rgba(35,48,60,.35);
  background: var(--paper-deep);
}
.author-photo-preview-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.author-photo-preview { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); }
@media (max-width: 560px) {
  .author-feature { gap: 14px; }
  .author-photo img { width: 74px; height: 74px; }
}

/* ================= v8.5: 책 소개 탭 ================= */
.board-info { max-height: 58vh; overflow-y: auto; padding: 6px 4px 10px; }
.bi-head { display: flex; gap: 18px; align-items: flex-start; }
.bi-cover {
  width: 96px; aspect-ratio: 2/3; object-fit: cover; flex: none;
  border-radius: 3px 7px 7px 3px; box-shadow: 5px 9px 22px rgba(44,74,110,.3);
}
.bi-meta { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.bi-status { font-size: .76rem; font-weight: 800; color: #B23A33; }
.bi-title { font-family: var(--serif); font-weight: 900; font-size: 1.2rem; letter-spacing: -.02em; }
.bi-author, .bi-period { font-size: .84rem; color: var(--ink-soft); }
.bi-meta .btn, .bi-meta .applied { margin-top: 6px; }
.bi-desc { font-size: .9rem; line-height: 1.85; margin-top: 14px; white-space: pre-line; }
.bi-sec { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.bi-sec-title { font-size: .74rem; font-weight: 800; letter-spacing: .1em; color: var(--green-deep); margin-bottom: 9px; }
.bi-authorbox { display: flex; gap: 13px; align-items: flex-start; }
.bi-authorphoto {
  width: 62px; height: 62px; object-fit: cover; border-radius: 50%; flex: none;
  border: 2px solid #fff; box-shadow: 0 3px 12px -4px rgba(35,48,60,.35);
}
.bi-authorbox p { font-size: .84rem; color: var(--ink-soft); line-height: 1.75; margin-top: 3px; }
.bi-weeks { margin: 0; padding-left: 4px; list-style: none; }
.bi-weeks li { padding: 6px 0; border-bottom: 1px dashed var(--line-soft); font-size: .88rem; }
.bi-weeks li:last-child { border-bottom: none; }
.bi-weeks b { color: var(--green-deep); margin-right: 6px; }
.bi-events { margin-top: 10px; }
.bi-event { font-size: .85rem; padding: 4px 0; }
@media (max-width: 560px) { .bi-cover { width: 82px; } }

/* ================= v8.7: 공지 팝업 ================= */
.notice-modal { max-width: 440px; text-align: center; padding-top: 36px; }
.np-image {
  display: block; width: 100%; max-height: 420px; object-fit: contain;
  border-radius: 12px; margin-bottom: 14px; background: var(--paper-deep);
}
.np-title { font-family: var(--serif); font-weight: 900; font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: 8px; }
.np-body { font-size: .92rem; line-height: 1.8; color: var(--ink-soft); white-space: pre-line; margin-bottom: 14px; text-align: left; }
.notice-modal .btn-block { margin-bottom: 4px; }
.np-today {
  border: none; background: none; cursor: pointer; font-family: inherit;
  font-size: .8rem; color: var(--ink-soft); text-decoration: underline;
  text-underline-offset: 3px; padding: 8px 4px 2px;
}
.np-today:hover { color: var(--ink); }
.pp-image-preview { max-width: 160px; max-height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.pp-actions { display: flex; gap: 8px; }

/* ================= v8.8: 홈 재배치 — 모집 스포트라이트 + ON AIR ================= */
.up-spotlight { margin-top: 26px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.up-flag {
  display: inline-block; font-family: inherit; font-size: 0.74rem; font-weight: 800;
  letter-spacing: .06em; color: #7A5B14; background: linear-gradient(135deg, #FBEFCB, #F6E3A8);
  border: 1px solid #EAD389; border-radius: 999px; padding: 5px 13px;
  margin-right: 10px; vertical-align: 3px;
}
/* 모집 카드 강조 (남색 배경은 원래대로, 금색 테두리·빛만) */
.upcoming-card {
  border: 2px solid #E7C56A;
  box-shadow: 0 12px 34px -12px rgba(216, 154, 50, .5);
}
.uc-badge {
  background: #F0C987 !important; color: #4A3608 !important;
  border: none !important; font-weight: 800 !important;
}
/* ON AIR 칩 */
.onair-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: .08em;
  color: #B23A33; background: #FCEBEA; border: 1px solid #F2C9C6;
  border-radius: 999px; padding: 3px 10px; margin-right: 9px; vertical-align: 2px;
  white-space: nowrap;
}
.onair-chip .live-dot.sm { width: 7px; height: 7px; }


/* ================= v9.0 리브랜딩: "등대의 빛" ================= */
/* 사이드바·내비 — 종이색 위 남색 포인트 */
.sidebar { background: var(--paper-deep); border-right: 1px solid var(--line); }
.side-nav .nav-link.active { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: var(--shadow); }
.side-nav .nav-link:hover { color: var(--navy); }
.sl-wm { color: var(--navy); }
.bottom-nav { border-top: 1px solid var(--line); background: rgba(253,252,249,.96); backdrop-filter: blur(8px); }
.bn-item.active { color: var(--navy); }
.top-bar { background: rgba(253,252,249,.95); }

/* 섹션 제목·링크 포인트 */
.section-title { letter-spacing: -.02em; }
.more-link { color: var(--ink-soft); }
.more-link:hover { color: var(--navy); }

/* 카드: 선 중심, 그림자 절제 */
.card { border: 1px solid var(--line); box-shadow: var(--shadow); }

/* 상태 칩 톤 정리 */
.status-pill.active { background: #FDEBE9; color: #C24438; }
.status-pill.upcoming { background: #FBF3DB; color: #8A6D1F; }
.filter-pill.active { background: var(--navy); border-color: var(--navy); }

/* 모집 카드(회원 홈) — 최종안 톤과 통일 */
.upcoming-card { background: linear-gradient(120deg, var(--navy), #31537B); border: 2px solid #E2C684; }
.up-flag { background: #FBF3DB; border-color: #EAD9AE; color: #8A6D1F; }

/* ================= 비회원 랜딩 v9 (lp2-) ================= */
.lp2 { margin: 0 -4px; }
.lp2 section { margin-bottom: 0; }
/* 히어로 */
.lp2-hero { position: relative; padding: 34px 8px 46px; border-bottom: 1px solid var(--line); }
.lp2-hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; max-width: 1040px; margin: 0 auto; }
.lp2-vert { position: absolute; top: 50%; right: -6px; transform: translateY(-50%); writing-mode: vertical-rl; white-space: nowrap;
  font-family: var(--serif); font-weight: 600; font-size: .78rem; letter-spacing: .4em; color: #CDD2D8; user-select: none; }
.lp2-eyebrow { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--amber); margin-bottom: 13px; }
.lp2-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #C9902E; }
.lp2-title { font-family: var(--serif); font-weight: 900; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.45; letter-spacing: -.02em; word-break: keep-all; }
.lp2-desc { margin-top: 13px; color: var(--ink-soft); font-size: .97rem; line-height: 1.85; max-width: 32em; word-break: keep-all; white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.lp2-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 15px; font-size: .87rem; color: var(--ink-soft); }
.lp2-ctas { display: flex; align-items: center; gap: 15px; margin-top: 24px; }
.lp2-note { font-size: .84rem; color: #99A2AB; }
.lp2-shelf { justify-self: center; position: relative; padding: 24px 14px 28px; }
.lp2-shelf::before { content: ""; position: absolute; inset: -30px -56px;
  background: radial-gradient(closest-side, rgba(231,169,59,.22), rgba(231,169,59,.07) 55%, transparent 75%); pointer-events: none; }
.lp2-book { position: relative; width: min(210px, 52vw); aspect-ratio: 3/4.35; border-radius: 5px 12px 12px 5px;
  box-shadow: 14px 24px 46px -12px rgba(21,38,58,.45); overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding: 24px 20px; text-align: center; }
.lp2-book img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp2-book .ct { font-family: var(--serif); font-weight: 900; font-size: 1.2rem; line-height: 1.6; color: #fff; word-break: keep-all; position: relative; }
.lp2-book .ca { font-size: .8rem; color: rgba(255,255,255,.82); margin-top: 10px; position: relative; }
.lp2-badge { position: absolute; top: -12px; right: -12px; background: var(--navy); color: #fff; font-size: .76rem; font-weight: 800;
  border-radius: 999px; padding: 6px 14px; box-shadow: 0 6px 14px -4px rgba(34,58,87,.5); z-index: 2; }
.lp2-prev { position: absolute; right: -44px; bottom: 8px; width: 102px; aspect-ratio: 3/4.3; border-radius: 4px 8px 8px 4px;
  box-shadow: 6px 10px 22px rgba(21,38,58,.3); transform: rotate(5deg); overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding: 9px; text-align: center; }
.lp2-prev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp2-prev .pc { font-family: var(--serif); font-weight: 900; font-size: .58rem; line-height: 1.5; color: #fff; word-break: keep-all; position: relative; }
.lp2-prev .pl { position: relative; font-size: .54rem; font-weight: 700; color: #fff; margin-top: 5px; background: rgba(21,38,58,.55); border-radius: 999px; padding: 2px 6px; display: inline-block; }
.lp2-prev .pl i { font-style: normal; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #FF8A7E; margin-right: 4px; vertical-align: 1px; animation: lpulse 1.8s infinite; }
@keyframes lpulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }
/* 숫자 증명 */
.lp2-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 0; padding: 20px 8px; border-bottom: 1px solid var(--line); background: var(--card); margin: 0 -24px; }
.lp2-pf { display: flex; align-items: baseline; gap: 8px; padding: 0 30px; }
.lp2-pf + .lp2-pf { border-left: 1px solid var(--line-soft); }
.lp2-pf b { font-family: var(--serif); font-weight: 900; font-size: 1.35rem; }
.lp2-pf span { font-size: .85rem; color: var(--ink-soft); }
/* 피드 */
.lp2-main { display: grid; grid-template-columns: 1fr 318px; gap: 42px; align-items: start; padding: 40px 8px 50px; max-width: 1100px; margin: 0 auto; }
.lp2-main > section, .lp2-main > aside { min-width: 0; }
.lp2-row > div { min-width: 0; }
.lp2-fhead { display: flex; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 11px; }
.lp2-fhead h2 { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.lp2-fhead .cnt { font-size: .84rem; color: #99A2AB; font-weight: 600; }
.lp2-row { display: grid; grid-template-columns: 1fr 78px; gap: 20px; padding: 22px 2px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.lp2-row:hover .lp2-rtitle { color: var(--navy); }
.lp2-rtags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.lp2-kind { font-size: .75rem; font-weight: 700; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 11px; background: #fff; }
.lp2-kind.live { color: #C24438; border-color: #EFD2CE; }
.lp2-kind.live::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #C24438; margin-right: 5px; vertical-align: 2px; animation: lpulse 1.8s infinite; }
.lp2-kind.soon { color: #8A6D1F; border-color: #EAD9AE; background: #FFFDF6; }
.lp2-rtitle { font-family: var(--serif); font-size: 1.12rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.55; word-break: keep-all; }
.lp2-rmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; font-size: .83rem; color: var(--ink-soft); }
.lp2-rquote { margin-top: 11px; background: var(--paper-deep); border-radius: 10px; padding: 10px 13px; font-size: .87rem; color: var(--ink-soft); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp2-rquote b { color: var(--ink); font-weight: 700; }
.lp2-rquote .ago { color: #99A2AB; margin-right: 6px; }
.lp2-rcover { width: 78px; aspect-ratio: 3/4.3; border-radius: 4px 8px 8px 4px; align-self: start; margin-top: 30px; overflow: hidden; position: relative;
  box-shadow: 4px 7px 16px rgba(21,38,58,.24); display: flex; flex-direction: column; justify-content: center; padding: 8px 7px; text-align: center; }
.lp2-rcover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp2-rcover .ct { font-family: var(--serif); font-weight: 900; font-size: .62rem; line-height: 1.5; color: #fff; word-break: keep-all; position: relative; }
/* 레일 */
.lp2-rail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
.lp2-rc { background: var(--paper-deep); border: 1px solid var(--line); border-radius: 13px; padding: 17px 19px; }
.lp2-rc h3 { font-size: .94rem; font-weight: 800; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.lp2-rc h3 a { font-size: .77rem; font-weight: 600; color: #99A2AB; cursor: pointer; }
.lp2-rc ul { list-style: none; }
.lp2-rc li { font-size: .86rem; color: var(--ink-soft); padding: 5px 0; display: flex; gap: 8px; align-items: center; cursor: pointer; }
.lp2-rc li:hover { color: var(--ink); }
.lp2-rc li .d { flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.lp2-rc li.hot .d { background: #C9902E; }
.lp2-rc li span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp2-rc.cta { background: var(--navy); border-color: var(--navy); color: #fff; text-align: center; padding: 22px 18px; }
.lp2-rc.cta strong { display: block; font-size: 1.02rem; font-weight: 800; margin-bottom: 4px; }
.lp2-rc.cta p { font-size: .9rem; line-height: 1.7; opacity: .85; }
.lp2-rc.cta .btn { background: #fff; color: var(--navy); margin-top: 13px; padding: 9px 20px; font-size: .87rem; }
/* 밤바다 */
.lp2-night { position: relative; overflow: hidden; background: linear-gradient(180deg, #15263A, #0F1D2E); color: #E8EDF3;
  margin: 0 -24px; padding: 70px 24px 96px; text-align: center; }
.lp2-night .nl { font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: #8FA3BC; margin-bottom: 22px; }
.lp2-night q { font-family: var(--serif); font-weight: 600; font-size: clamp(1.08rem, 2.2vw, 1.4rem); line-height: 2; quotes: none;
  word-break: keep-all; color: #F3F0E7; display: block; max-width: 680px; margin: 0 auto; }
.lp2-night q::before { content: "\201C"; color: #E7A93B; margin-right: 2px; }
.lp2-night q::after { content: "\201D"; color: #E7A93B; margin-left: 2px; }
.lp2-night .who { margin-top: 16px; font-size: .87rem; color: #8FA3BC; }
.lp2-night .who b { color: #D9E2EC; }
.lp2-night .nm { display: inline-block; margin-top: 24px; font-weight: 700; font-size: .87rem; color: #F3F0E7;
  border: 1px solid rgba(243,240,231,.35); border-radius: 999px; padding: 8px 20px; cursor: pointer; background: none; font-family: inherit; }
.lp2-night .nm:hover { border-color: #F3F0E7; }
.lp2-hz { position: absolute; left: 0; right: 0; bottom: 56px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143,163,188,.4) 20%, rgba(143,163,188,.4) 80%, transparent); }
.lp2-bc { position: absolute; bottom: 52.5px; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; border-radius: 50%; background: #E7A93B;
  box-shadow: 0 0 14px 3px rgba(231,169,59,.75), 0 0 44px 13px rgba(231,169,59,.28); animation: lbeacon 3.2s ease-in-out infinite; }
@keyframes lbeacon { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
/* 참여 방법 */
.lp2-how { max-width: 920px; margin: 0 auto; padding: 54px 8px 60px; text-align: center; }
.lp2-how h2 { font-family: var(--serif); font-weight: 900; font-size: 1.4rem; letter-spacing: -.02em; }
.lp2-hgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; text-align: left; }
.lp2-hw { padding: 20px 19px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; }
.lp2-hw .no { font-family: var(--serif); font-weight: 900; font-size: 1.35rem; color: #C9902E; }
.lp2-hw h3 { font-size: .99rem; font-weight: 800; margin: 7px 0 5px; letter-spacing: -.01em; }
.lp2-hw p { font-size: .87rem; color: var(--ink-soft); line-height: 1.75; word-break: keep-all; }
.lp2-how .btn { margin-top: 30px; }
/* 반응형 */
@media (max-width: 1020px) { .lp2-main { grid-template-columns: 1fr; } .lp2-rail { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .lp2-vert { display: none; } }
@media (max-width: 720px) {
  .lp2-hero-in { grid-template-columns: 1fr; gap: 28px; }
  .lp2-shelf { justify-self: start; margin-left: 2px; }
  .lp2-prev { right: -10px; bottom: -4px; }
  .lp2-proof { margin: 0; border-radius: 12px; border: 1px solid var(--line); } .lp2-pf { padding: 0 14px; } .lp2-pf b { font-size: 1.1rem; }
  .lp2-rail { grid-template-columns: minmax(0,1fr); }
  .lp2-row { grid-template-columns: 1fr 62px; gap: 13px; }
  .lp2-rcover { width: 62px; margin-top: 34px; }
  .lp2-rtitle { font-size: 1.02rem; }
  .lp2-hgrid { grid-template-columns: 1fr; }
  .lp2-night { margin: 0; border-radius: 16px; }
}


/* ================= v9.1: 비회원 상단 내비게이션 ================= */
.gnb2 { display: none; }
body.guest-mode .sidebar { display: none !important; }
body.guest-mode .topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253,252,249,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 0 26px; min-height: 64px;
  display: flex; align-items: center; gap: 22px;
}
body.guest-mode .tb-brand { display: inline-flex; }
body.guest-mode .tb-brand img { width: 34px; height: 34px; }
body.guest-mode .tb-wm { font-size: 1.32rem; }
body.guest-mode .tb-quotes { display: none; }
body.guest-mode .gnb2 { display: flex; gap: 2px; margin-left: 6px; }
.gnb2 a {
  font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 9px;
  color: var(--ink-soft); cursor: pointer;
}
.gnb2 a:hover { background: var(--paper-deep); color: var(--ink); }
.gnb2 a.on { color: var(--ink); font-weight: 800; }
body.guest-mode .auth-area { margin-left: auto; }
/* 비회원 콘텐츠 폭 정돈 (사이드바 빠진 자리) */
body.guest-mode main > .view > .wrap,
body.guest-mode main .wrap { max-width: 1160px; margin-left: auto; margin-right: auto; }
@media (max-width: 760px) {
  body.guest-mode .topbar { padding: 0 14px; min-height: 56px; gap: 10px; }
  body.guest-mode .gnb2 { display: none; }
  body.guest-mode .tb-wm { font-size: 1.15rem; }
}
