*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f4efe5;color:#352419;font-family:'Noto Sans KR',sans-serif}
header{height:74px;position:fixed;top:0;width:100%;z-index:10;background:#21130c;color:#f5ede2;display:flex;align-items:center;padding:0 4%;gap:25px}.logo{min-width:270px;font-size:18px}.logo small{display:block;font-size:10px;margin-left:26px;color:#b9a797}nav{flex:1;display:flex;justify-content:center;gap:28px}nav a{color:#d9c9ba;text-decoration:none;font-size:13px}.on{color:#fff!important;border-bottom:2px solid #c58c52;padding-bottom:7px}
.hero{height:565px;padding-top:74px;background:linear-gradient(90deg,rgba(26,13,7,.76),rgba(26,13,7,.4)),url('https://images.unsplash.com/photo-1513001900722-370f803f498d?auto=format&fit=crop&w=1800&q=85') center/cover;color:#fff;text-align:center}.hero>div{padding-top:90px}.eyebrow{letter-spacing:3px;color:#e4b57e;font-size:11px}.hero h1,.random h2{font-family:'Gowun Batang';font-weight:400;font-size:55px;line-height:1.3;margin:8px}.hero p{line-height:1.8;color:#eadfd5}
button{border:1px solid #d8c7b2;background:#fffaf1;color:#69442d;border-radius:9px;padding:14px 25px;margin:10px 5px;cursor:pointer;font:inherit}.hero button{min-width:265px;font-size:16px}.brown{background:#724523;color:#fff;border-color:#8d6749}
main{width:min(1360px,92%);margin:auto}.moods{background:#faf8f2;border:1px solid #e5dacb;border-radius:18px;padding:24px 38px 28px;margin-top:-60px;position:relative;box-shadow:0 12px 35px #5d412022}.head{display:flex;justify-content:space-between;align-items:center}.head h2{font-size:20px;margin:0}.head p{font-size:13px;color:#887665;margin:5px 0}
.grid{display:grid;grid-template-columns:repeat(10,1fr);gap:10px;margin-top:15px}.grid button{height:100px;margin:0;background:linear-gradient(#fffdfa,#f4ecdf);border-color:#e1d5c4;font-size:23px}.grid button span{display:block;font-size:13px;margin-top:7px}.grid button:hover{border-color:#bc8658;transform:translateY(-3px)}
.cards{display:grid;grid-template-columns:1fr 1.3fr 1.2fr;gap:14px;padding:14px 0 35px}.cards article{background:#faf7f0;border:1px solid #e5dac9;border-radius:15px;padding:24px}.cards h3{margin-top:0;font-size:16px}.quote{text-align:center;padding:25px;background:linear-gradient(135deg,#f0e3cf,#fffaf1);border-radius:12px;font-family:'Gowun Batang';font-size:19px;color:#79543a;line-height:1.8}.book{display:flex;gap:20px}.cover{width:150px;height:190px;background:linear-gradient(145deg,#071221,#3d567b);color:#f4e0aa;padding:30px 15px;text-align:center;display:flex;flex-direction:column;justify-content:center;gap:10px;box-shadow:0 7px 16px #0004}.cover small{font-size:9px}.book h2{margin:0;font-size:19px}.book blockquote{font-family:'Gowun Batang';margin:15px 0}.book span{font-size:11px;color:#806e5d}.cards article>a{display:block;padding:9px 0;border-bottom:1px solid #eadfd2;font-size:13px}
.random{padding:80px 20px;text-align:center;color:#fff;background:linear-gradient(#25150dc9,#25150dc9),url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&w=1800&q=80') center/cover}.random h2{font-size:38px}.random>div{max-width:700px;margin:auto}.random div div{margin:20px auto;padding:18px;border:1px solid #ffffff33;border-radius:12px;background:#ffffff11;min-height:60px}.result{margin-top:20px;padding:22px;text-align:center;background:#fffaf3;border:1px solid #dcc8b0;border-radius:13px}.hide{display:none!important}
footer{background:#29170e;color:#cdbbab;padding:35px 5%;display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:25px;font-size:12px}footer b{display:block;color:#f2e5d7;margin-bottom:10px}footer a{display:block;margin:8px 0}.modal{position:fixed;inset:0;background:#160d08aa;z-index:20;display:grid;place-items:center}.modalBox{width:min(520px,90%);background:#fffaf1;padding:30px;border-radius:18px;position:relative}.modal i{position:absolute;right:18px;top:10px;font-size:28px;cursor:pointer}.modal textarea{width:100%;height:140px;padding:14px;border:1px solid #d9c8b5;border-radius:10px;font:inherit}
@media(max-width:1000px){nav{display:none}.logo{flex:1}.grid{grid-template-columns:repeat(5,1fr)}.cards{grid-template-columns:1fr}.hero h1{font-size:45px}}@media(max-width:600px){.hero h1{font-size:35px}.hero button{display:block;margin:10px auto}.moods{padding:20px 13px}.grid{grid-template-columns:repeat(2,1fr)}.book{gap:12px}.cover{width:120px;min-width:120px;height:160px}footer{grid-template-columns:1fr 1fr}.hero{height:540px}}
/* v3 — cover, quote typography, page-turn animation */
.recommend-layout{display:grid;grid-template-columns:190px 1fr;gap:30px;align-items:center;max-width:760px;margin:auto;text-align:left}
.cover-slot{width:180px;height:255px;display:flex;align-items:center;justify-content:center;perspective:900px}
.cover-slot img{width:100%;height:100%;object-fit:cover;border-radius:4px;box-shadow:0 16px 28px #3b241b3b;animation:coverArrive .65s ease both}
.cover-slot.small{width:125px;height:180px;min-width:125px}
.generated-cover{width:100%;height:100%;padding:22px 14px;background:linear-gradient(145deg,#2d1b12,#7d5639);color:#f7e8cf;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border-radius:4px;box-shadow:0 16px 28px #0003}
.generated-cover span{font-size:10px;letter-spacing:2px;opacity:.7}.generated-cover b{font-family:'Gowun Batang';font-size:20px;margin:15px 0}.generated-cover small{font-size:10px}
.book-meta{color:#8a7666;font-size:13px}.recommend-reason{line-height:1.8}
.heart-line{font-family:'Nanum Pen Script','Gowun Batang',serif;font-size:27px;line-height:1.45;color:#8a5b3b;margin:18px 0;padding:14px 18px;border-top:1px solid #eadcc9;border-bottom:1px solid #eadcc9;text-align:center}
.book-stage{position:relative;overflow:hidden;padding:8px}
.page-turn{pointer-events:none;position:absolute;z-index:5;top:0;right:0;width:52%;height:100%;transform-origin:left center;background:linear-gradient(90deg,#fffdf8 0%,#eadcc9 80%,#c6a982 100%);box-shadow:-12px 0 22px #3d281722;animation:turnPage .85s cubic-bezier(.5,.05,.3,1) forwards}
.page-turn-two{animation-delay:.12s;opacity:.85}
@keyframes turnPage{0%{transform:perspective(900px) rotateY(0deg)}100%{transform:perspective(900px) rotateY(-178deg);opacity:0}}
@keyframes coverArrive{from{opacity:0;transform:translateY(8px) rotateY(8deg)}to{opacity:1;transform:none}}
.mini-book-flip{height:90px;position:relative;display:flex;align-items:flex-end;justify-content:center;gap:2px;padding-bottom:5px}.mini-book-flip i{position:absolute;width:54px;height:70px;background:#f5ead9;border:1px solid #d8c4a8;border-radius:3px 8px 8px 3px;transform-origin:left center;animation:miniFlip .72s ease-in-out infinite}.mini-book-flip i:nth-child(2){animation-delay:.16s}.mini-book-flip i:nth-child(3){animation-delay:.32s}.mini-book-flip span{position:relative;z-index:3;font-size:12px;color:#e8d7c4}
@keyframes miniFlip{0%{transform:perspective(500px) rotateY(0)}75%,100%{transform:perspective(500px) rotateY(-175deg)}}
.random-picked{display:flex;gap:22px;align-items:center;text-align:left;justify-content:center}.random-picked h3{font-family:'Gowun Batang';font-size:25px;margin:6px 0}.random-picked p{font-size:12px}
#quote .quote{cursor:pointer;min-height:170px;display:flex;flex-direction:column;justify-content:center;transition:.25s}#quote .quote:hover{transform:translateY(-2px);box-shadow:0 8px 22px #6b4a2520}
#quote .quote b{font-family:'Nanum Pen Script','Gowun Batang',serif;font-size:30px;font-weight:400;line-height:1.45}.quote-mark{font-family:'Gowun Batang';font-size:25px;color:#c69c72}
@media(max-width:650px){.recommend-layout{grid-template-columns:1fr;text-align:center}.cover-slot{margin:auto;width:145px;height:205px}.heart-line{font-size:24px}.random-picked{flex-direction:column;text-align:center}}


/* v4 — elegant book-selection motion + sturdier real-edition cover presentation */
.page-turn,.mini-book-flip{display:none!important}

.elegant-book-loader{
  min-height:310px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:25px;
  overflow:hidden;
}
.loader-book{
  position:relative;
  width:150px;
  height:205px;
  perspective:1400px;
  transform:rotateX(7deg) rotateZ(-1.5deg);
  filter:drop-shadow(0 26px 20px rgba(61,38,25,.19));
}
.loader-back,.loader-cover,.loader-paper{
  position:absolute;
  inset:0;
  transform-origin:left center;
  border-radius:3px 10px 10px 3px;
}
.loader-back{
  background:linear-gradient(145deg,#382218,#7a5235);
  transform:translateZ(-7px);
}
.loader-cover{
  background:
    linear-gradient(120deg,rgba(255,255,255,.12),transparent 34%),
    linear-gradient(145deg,#43291c,#845d3e 58%,#5d3d29);
  box-shadow:inset 0 0 0 1px rgba(255,240,215,.15);
  animation:elegantCoverOpen 1.35s cubic-bezier(.55,.08,.22,.98) forwards;
}
.loader-cover:after{
  content:"오늘의 책장";
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  font-family:'Gowun Batang',serif;
  letter-spacing:.16em;
  color:#f1dfc7;
  font-size:14px;
}
.loader-paper{
  left:5px;top:4px;bottom:4px;width:142px;
  background:
    linear-gradient(90deg,rgba(127,95,65,.11),transparent 14%),
    #fffaf0;
  border:1px solid rgba(172,139,103,.22);
}
.loader-paper:after{
  content:"";
  position:absolute;left:22px;right:15px;top:30px;height:1px;
  background:#dccdb9;
  box-shadow:0 14px #e7dac9,0 28px #e7dac9,0 42px #e7dac9,0 56px #e7dac9,0 70px #e7dac9,0 84px #e7dac9,0 98px #e7dac9;
}
.loader-paper.p1{animation:softLeaf 1.05s .20s cubic-bezier(.62,.03,.28,.99) forwards}
.loader-paper.p2{animation:softLeaf 1.02s .38s cubic-bezier(.62,.03,.28,.99) forwards}
.loader-paper.p3{animation:softLeaf 1s .56s cubic-bezier(.62,.03,.28,.99) forwards}
.loader-paper.p4{animation:softLeaf .95s .72s cubic-bezier(.62,.03,.28,.99) forwards}
.loader-caption{
  font-family:'Gowun Batang',serif;
  color:#8a7666;
  font-size:13px;
  letter-spacing:.03em;
  text-align:center;
}
.loader-caption i{
  display:inline-block;width:4px;height:4px;border-radius:50%;
  background:currentColor;margin:0 2px;opacity:.28;
  animation:dotBreath 1.1s infinite ease-in-out;
}
.loader-caption i:nth-child(2){animation-delay:.18s}
.loader-caption i:nth-child(3){animation-delay:.36s}

@keyframes elegantCoverOpen{
  0%{transform:rotateY(0deg) translateZ(4px)}
  56%{transform:rotateY(-112deg) translateZ(4px)}
  100%{transform:rotateY(-158deg) translateZ(4px)}
}
@keyframes softLeaf{
  0%{transform:rotateY(0deg) translateZ(1px)}
  100%{transform:rotateY(-165deg) translateZ(1px)}
}
@keyframes dotBreath{
  0%,100%{opacity:.22;transform:translateY(0)}
  50%{opacity:.85;transform:translateY(-2px)}
}

.recommend-reveal{
  animation:recommendReveal .8s cubic-bezier(.2,.75,.2,1) both;
}
@keyframes recommendReveal{
  from{opacity:0;transform:translateY(16px) scale(.988);filter:blur(3px)}
  to{opacity:1;transform:none;filter:blur(0)}
}

.cover-wrap{
  position:relative;
  width:max-content;
  margin:auto;
  padding:9px 9px 21px;
}
.cover-glow{
  position:absolute;
  inset:20% 5% 8%;
  border-radius:50%;
  background:rgba(180,129,77,.15);
  filter:blur(24px);
  transform:scale(1.13);
}
.cover-slot{
  position:relative;
  z-index:1;
  background:#f8f0e4;
  border-radius:3px 8px 8px 3px;
  overflow:hidden;
  box-shadow:
    0 24px 35px rgba(56,35,22,.20),
    -4px 0 0 #dbc8ac,
    inset 0 0 0 1px rgba(91,62,41,.08);
}
.cover-slot:after{
  content:"";
  position:absolute;inset:0;
  pointer-events:none;
  background:linear-gradient(105deg,rgba(255,255,255,.20),transparent 23%,transparent 78%,rgba(60,35,20,.07));
  mix-blend-mode:screen;
}
.cover-slot img{
  position:relative;
  z-index:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  background:#f8f0e4;
  border-radius:0;
  box-shadow:none;
  animation:coverArrive .7s cubic-bezier(.2,.75,.2,1) both;
}
.edition-note{
  display:block;
  position:relative;
  z-index:2;
  text-align:center;
  margin-top:8px;
  color:#a28c78;
  font-size:10px;
  letter-spacing:.08em;
}
.random-picked{padding-top:12px}

@media(max-width:650px){
  .loader-book{width:124px;height:170px}
  .loader-paper{width:117px}
  .elegant-book-loader{min-height:265px}
}


/* v5 — smoother "사-악" page motion, quote provenance */
#result,#randomResult{transition:opacity .22s ease,transform .22s ease}
#result.is-switching,#randomResult.is-switching{opacity:.15;transform:translateY(3px)}

.elegant-book-loader{
  min-height:325px;
  contain:layout paint;
}
.loader-book{
  transform:translateZ(0) rotateX(5deg) rotateZ(-1deg);
  will-change:transform;
  filter:none;
  box-shadow:0 30px 45px rgba(58,37,24,.16);
}
.loader-cover,.loader-paper{
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  will-change:transform;
}
.loader-cover{
  animation:v5CoverSweep 1.72s cubic-bezier(.20,.66,.18,1) forwards;
}
.loader-paper.p1{animation:v5LeafSweep 1.34s .20s cubic-bezier(.20,.68,.17,1) forwards}
.loader-paper.p2{animation:v5LeafSweep 1.34s .38s cubic-bezier(.20,.68,.17,1) forwards}
.loader-paper.p3{animation:v5LeafSweep 1.34s .56s cubic-bezier(.20,.68,.17,1) forwards}
.loader-paper.p4{animation:v5LeafSweep 1.34s .74s cubic-bezier(.20,.68,.17,1) forwards}

@keyframes v5CoverSweep{
  0%{transform:translate3d(0,0,3px) rotateY(0deg)}
  20%{transform:translate3d(-1px,0,3px) rotateY(-18deg)}
  72%{transform:translate3d(-2px,0,3px) rotateY(-142deg)}
  100%{transform:translate3d(-2px,0,3px) rotateY(-166deg)}
}
@keyframes v5LeafSweep{
  0%{transform:translate3d(0,0,1px) rotateY(0deg)}
  18%{transform:translate3d(-1px,0,1px) rotateY(-10deg)}
  78%{transform:translate3d(-2px,0,1px) rotateY(-150deg)}
  100%{transform:translate3d(-2px,0,1px) rotateY(-171deg)}
}

.recommend-reveal{
  animation:v5Reveal .72s cubic-bezier(.18,.82,.25,1) both;
}
@keyframes v5Reveal{
  from{opacity:0;transform:translate3d(0,10px,0) scale(.992)}
  to{opacity:1;transform:translate3d(0,0,0) scale(1)}
}

.heart-line blockquote{
  margin:5px 0 9px;
  font-family:'Nanum Pen Script','Gowun Batang',serif;
  font-size:27px;
  line-height:1.42;
  font-weight:400;
}
.quote-kicker{
  display:block;
  font-family:'Noto Sans KR',sans-serif;
  font-size:10px;
  letter-spacing:.12em;
  color:#aa8263;
  margin-bottom:5px;
}
.verified-quote blockquote{
  font-family:'Gowun Batang',serif;
  font-size:19px;
  line-height:1.65;
  font-style:italic;
}
.quote-meaning{
  font-family:'Gowun Dodum','Noto Sans KR',sans-serif;
  font-size:12px;
  line-height:1.65;
  color:#77685d;
  margin:7px 0;
}
.quote-source{
  font-family:'Noto Sans KR',sans-serif;
  font-size:9px;
  color:#a08772;
  text-decoration:none;
  border-bottom:1px solid #d8c3ad;
}
.site-line small{
  display:block;
  font-family:'Noto Sans KR',sans-serif;
  font-size:9px;
  line-height:1.5;
  color:#a79483;
  margin-top:7px;
}


/* v6 — original cover fallback + expanding book detail */
.recommend-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.recommend-actions button{margin:0}
.primary-action{background:#6f4c34!important;color:#fff7ed!important;border-color:#6f4c34!important}
.ghost-action{background:transparent!important;color:#6f4c34!important;border:1px solid #cdb79f!important}

.book-detail-modal{
  position:fixed;inset:0;z-index:9999;
  display:grid;place-items:center;
  opacity:0;pointer-events:none;
  transition:opacity .38s ease;
}
.book-detail-modal.show{opacity:1;pointer-events:auto}
.detail-backdrop{
  position:absolute;inset:0;
  background:rgba(21,14,10,.64);
  backdrop-filter:blur(5px);
}
.detail-book{
  position:relative;z-index:2;
  width:min(1080px,92vw);
  height:min(720px,88vh);
  display:grid;
  grid-template-columns:42% 58%;
  background:#f5ead8;
  border-radius:8px 14px 14px 8px;
  overflow:hidden;
  box-shadow:0 40px 90px rgba(0,0,0,.38);
  transform:perspective(1600px) rotateY(-9deg) scale(.92);
  transform-origin:left center;
  opacity:0;
  transition:transform .68s cubic-bezier(.18,.8,.18,1),opacity .5s ease;
}
.book-detail-modal.show .detail-book{
  transform:perspective(1600px) rotateY(0deg) scale(1);
  opacity:1;
}
.detail-book:after{
  content:"";position:absolute;left:42%;top:0;bottom:0;width:18px;
  transform:translateX(-50%);
  background:linear-gradient(90deg,rgba(86,60,40,.16),rgba(255,255,255,.45),rgba(86,60,40,.12));
  opacity:.45;pointer-events:none;
}
.detail-left-page{
  position:relative;
  padding:48px 40px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:
    linear-gradient(90deg,rgba(80,52,33,.07),transparent 12%),
    #eee0ca;
}
.detail-right-page{
  padding:58px 64px 50px;
  overflow:auto;
  background:
    linear-gradient(90deg,rgba(80,52,33,.08),transparent 7%),
    #fbf5e9;
}
.detail-cover{
  width:190px;height:285px;
  background:#e7d7bf;
  box-shadow:0 24px 38px rgba(75,49,31,.20);
  overflow:hidden;border-radius:3px 8px 8px 3px;
}
.detail-cover img{width:100%;height:100%;object-fit:cover;display:block}
.detail-title{text-align:center;margin-top:24px}
.detail-title span,.detail-eyebrow{font-size:10px;letter-spacing:.15em;color:#aa886c}
.detail-title h2{font-family:'Gowun Batang',serif;font-size:28px;margin:8px 0}
.detail-title p{font-size:12px;color:#826f60}
.detail-right-page h3{font-family:'Gowun Batang',serif;font-size:30px;margin:8px 0 18px}
.detail-right-page h4{font-family:'Gowun Batang',serif;font-size:17px;margin:24px 0 8px}
.detail-right-page>p{font-family:'Gowun Dodum','Noto Sans KR',sans-serif;font-size:14px;line-height:1.9;color:#5d5148}
.detail-rule{height:1px;background:#dfcfba;margin:25px 0}
.detail-meta-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:24px 0}
.detail-meta-grid div{padding:14px 12px;border:1px solid #e1d2bd;border-radius:8px;background:#fffaf1}
.detail-meta-grid span{display:block;font-size:9px;color:#a48f7d;margin-bottom:5px}
.detail-meta-grid b{font-size:12px;color:#5d4c40}
.detail-close{
  position:absolute;right:18px;top:15px;z-index:5;
  width:34px;height:34px;border-radius:50%;border:1px solid #dac8b2;
  background:#fff9ef;color:#785e4b;font-size:22px;line-height:1;cursor:pointer
}
.detail-open{overflow:hidden}

@media(max-width:760px){
  .detail-book{
    width:94vw;height:90vh;grid-template-columns:1fr;
    overflow:auto;border-radius:12px;
  }
  .detail-book:after{display:none}
  .detail-left-page{padding:36px 20px 24px}
  .detail-right-page{padding:32px 25px 40px;overflow:visible}
  .detail-cover{width:140px;height:210px}
  .detail-meta-grid{grid-template-columns:1fr}
}


/* ---------- v7 update ---------- */

.v7-cards{grid-template-columns:1.05fr 1.35fr 1.05fr;align-items:stretch}
.card-topline{display:flex;justify-content:space-between;align-items:end;gap:10px;margin-bottom:14px}
.card-topline span,.tiny-note{font-size:11px;color:#967b67}
.quote-card-v7,.daily-book-card-v7{position:relative;overflow:hidden}
.quote-stage-v7{min-height:360px;display:flex;align-items:center;justify-content:center;padding:8px 0 18px}
.daily-quote-sheet{width:100%;min-height:320px;border-radius:18px;background:
linear-gradient(180deg,rgba(255,255,255,.28),rgba(255,255,255,.06)),
linear-gradient(135deg,#cfb8a0,#a58c74 45%,#8f765f 100%);
position:relative;overflow:hidden;box-shadow:0 18px 30px #5d412020}
.daily-quote-sheet:before{content:"";position:absolute;inset:0;background:
radial-gradient(circle at 20% 18%,rgba(255,255,255,.32),transparent 32%),
radial-gradient(circle at 75% 78%,rgba(255,255,255,.18),transparent 28%),
linear-gradient(180deg,rgba(255,255,255,.1),transparent 55%);
opacity:.9}
.daily-quote-sheet.switching{animation:quoteSheetTurn .56s cubic-bezier(.22,.73,.18,1)}
@keyframes quoteSheetTurn{
0%{transform:perspective(1000px) rotateY(0) scale(1);opacity:1}
50%{transform:perspective(1000px) rotateY(-16deg) translateX(10px) scale(.985);opacity:.14}
100%{transform:perspective(1000px) rotateY(0) scale(1);opacity:1}
}
.quote-paper-content{position:relative;z-index:2;min-height:320px;padding:38px 28px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}
.quote-kicker{display:block;margin-bottom:20px;font-size:11px;letter-spacing:.26em;color:#f7eee5;opacity:.88}
.quote-paper-content p{font-family:'Noto Serif KR','Nanum Myeongjo',serif;font-size:34px;line-height:1.7;color:#fffaf6;text-shadow:0 2px 10px rgba(0,0,0,.10);margin:0}
.quote-bottomline{display:flex;justify-content:space-between;align-items:center;gap:10px}
.quote-change-btn{background:#efe4d4}
.quote-dots{display:flex;gap:7px;align-items:center}
.quote-dots i{width:8px;height:8px;border-radius:50%;display:block;background:#d9cab8;transition:.24s}
.quote-dots i.on{width:24px;border-radius:20px;background:#a57852}

.daily-book-content{height:100%}
.daily-book-shell{height:100%;display:flex;flex-direction:column;gap:14px}
.daily-book-head{font-size:12px;color:#8f7865}
.daily-book-body{display:grid;grid-template-columns:210px 1fr;gap:22px;align-items:center}
.daily-book-body h2{font-family:'Gowun Batang',serif;font-size:32px;margin:0 0 8px}
.daily-book-right{display:flex;flex-direction:column;gap:8px}

.recommend-wrap-v7{display:grid;grid-template-columns:210px 1fr;gap:28px;align-items:center}
.recommend-cover-area{text-align:center}
.recommend-cover-frame{width:190px;height:275px;margin:0 auto;padding:10px;background:#eadbc9;border-radius:7px 14px 14px 7px;box-shadow:0 18px 34px rgba(73,49,30,.16)}
.recommend-cover-frame.small{width:145px;height:210px}
.recommend-cover-frame.tall{width:200px;height:290px}
.book-cover-slot,.detail-cover-slot{width:100%;height:100%;background:#f8f1e7;border-radius:4px 10px 10px 4px;overflow:hidden;box-shadow:inset -8px 0 0 rgba(91,62,41,.08)}
.book-cover-slot img,.detail-cover-slot img{display:block;width:100%;height:100%;object-fit:cover}
.cover-note{display:block;margin-top:8px;font-size:10px;color:#9b836e;letter-spacing:.06em}
.recommend-text-area h2,.recommend-text-area h3{font-family:'Gowun Batang',serif;font-size:34px;margin:0 0 8px}
.recommend-text-area h3{font-size:30px}
.recommend-reason{line-height:1.8;color:#57463b}
.book-meta{font-size:13px;color:#8b7767}
.random-kicker{font-size:12px;color:#8f6b4d}

.quote-block{margin-top:8px;padding:16px 18px;border-radius:14px;background:#fffaf2;border:1px solid #e4d5c4}
.quote-label{display:block;font-size:10px;letter-spacing:.12em;color:#af8262;margin-bottom:8px}
.quote-block blockquote{margin:0;font-family:'Noto Serif KR','Nanum Myeongjo',serif;font-size:20px;line-height:1.75;color:#71533f}
.quote-block small{display:block;margin-top:8px;font-size:11px;line-height:1.6;color:#8a7767}
.quote-block.verified{background:#fff9ef}
.quote-block.original{background:#fcf7ef}
.user-mood-line{font-size:12px;color:#8d7868}

.recommend-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}
.primary-action{background:#734a30!important;color:#fff4ea!important;border-color:#734a30!important}
.ghost-action{background:#fff9f0!important}
#result .recommend-wrap-v7,#randomResult .recommend-wrap-v7{padding:8px 4px}
.result{background:#fffdf9}

.book-loader-v7{min-height:290px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px}
.book-loader-v7 p{font-size:13px;color:#8f7768}
.loader-book-v7{position:relative;width:160px;height:210px;perspective:1200px}
.loader-cover-v7,.loader-page-v7{position:absolute;inset:0;border-radius:4px 10px 10px 4px;transform-origin:left center;backface-visibility:hidden}
.loader-cover-v7{background:linear-gradient(145deg,#4b2f22,#a1795c 58%,#eddac3);box-shadow:0 24px 34px rgba(53,32,22,.18);animation:coverOpenV7 1.18s cubic-bezier(.2,.77,.19,1) forwards}
.loader-page-v7{left:5px;top:4px;bottom:4px;right:5px;background:#fffaf1;border:1px solid rgba(150,121,92,.18)}
.loader-page-v7:after{content:"";position:absolute;left:18px;right:16px;top:30px;height:1px;background:#e5d6c2;box-shadow:0 16px #e5d6c2,0 32px #e5d6c2,0 48px #e5d6c2,0 64px #e5d6c2,0 80px #e5d6c2}
.loader-page-v7.p1{animation:pageSweepV7 1.05s .08s cubic-bezier(.2,.77,.19,1) forwards}
.loader-page-v7.p2{animation:pageSweepV7 1.05s .20s cubic-bezier(.2,.77,.19,1) forwards}
.loader-page-v7.p3{animation:pageSweepV7 1.05s .32s cubic-bezier(.2,.77,.19,1) forwards}
.loader-page-v7.p4{animation:pageSweepV7 1.05s .44s cubic-bezier(.2,.77,.19,1) forwards}
.loader-page-v7.p5{animation:pageSweepV7 1.05s .56s cubic-bezier(.2,.77,.19,1) forwards}
@keyframes coverOpenV7{0%{transform:rotateY(0)}100%{transform:rotateY(-156deg)}}
@keyframes pageSweepV7{0%{transform:rotateY(0)}100%{transform:rotateY(-171deg)}}

.book-detail-modal-v7{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;opacity:0;pointer-events:none;transition:opacity .24s ease}
.book-detail-modal-v7.show{opacity:1;pointer-events:auto}
.book-detail-modal-v7 .detail-backdrop{position:absolute;inset:0;background:rgba(20,12,9,.62);backdrop-filter:blur(4px)}
.detail-panel{position:relative;z-index:2;width:min(1060px,92vw);height:min(760px,90vh);display:grid;grid-template-columns:36% 64%;overflow:hidden;border-radius:10px 18px 18px 10px;box-shadow:0 36px 80px rgba(0,0,0,.34);transform:perspective(1400px) rotateY(-9deg) scale(.95);opacity:0;transition:transform .52s cubic-bezier(.18,.77,.18,1),opacity .3s ease}
.book-detail-modal-v7.show .detail-panel{transform:perspective(1400px) rotateY(0) scale(1);opacity:1}
.detail-panel:after{content:"";position:absolute;left:36%;top:0;bottom:0;width:18px;transform:translateX(-50%);background:linear-gradient(90deg,rgba(84,58,39,.16),rgba(255,255,255,.38),rgba(84,58,39,.12))}
.detail-left{padding:44px 28px;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#ead9c3}
.detail-right{padding:48px 56px;background:#fbf6ed;overflow:auto}
.detail-kicker{font-size:11px;letter-spacing:.2em;color:#a37f61}
.detail-right h2{font-family:'Gowun Batang',serif;font-size:34px;margin:8px 0}
.detail-genre{font-size:13px;color:#8a7768;margin:0 0 16px}
.detail-cover-frame{width:210px;height:305px;padding:10px;background:#f2e7d6;border-radius:6px 12px 12px 6px;box-shadow:0 18px 38px rgba(60,41,28,.18)}
.detail-author-name{font-family:'Gowun Batang',serif;font-size:22px;margin:20px 0 6px}
.detail-author-intro{font-size:13px;line-height:1.8;text-align:center;color:#6b584a;max-width:250px}
.detail-block{margin-top:18px}
.detail-block h4{font-family:'Gowun Batang',serif;font-size:18px;margin:0 0 8px}
.detail-block p{font-size:14px;line-height:1.9;color:#5b4b3f;margin:0 0 12px}
.detail-close{position:absolute;right:16px;top:12px;width:36px;height:36px;border-radius:50%;border:1px solid #dac7b1;background:#fff7ee;color:#7d644f;font-size:24px;cursor:pointer;z-index:3}
.modal-open{overflow:hidden}

@media(max-width:1100px){
  .v7-cards{grid-template-columns:1fr}
}
@media(max-width:760px){
  .daily-book-body,.recommend-wrap-v7{grid-template-columns:1fr;text-align:center}
  .recommend-cover-frame,.recommend-cover-frame.tall{width:165px;height:240px}
  .recommend-cover-frame.small{width:138px;height:198px}
  .quote-paper-content p{font-size:28px}
  .detail-panel{grid-template-columns:1fr;height:92vh;border-radius:14px}
  .detail-panel:after{display:none}
  .detail-left{padding:32px 20px 20px}
  .detail-right{padding:28px 24px}
  .detail-cover-frame{width:150px;height:220px}
}


/* ---------- v8: Cafe24 단정해 + wishlist + update ribbon ---------- */
@font-face {
  font-family: 'Cafe24Danjunghae';
  src: url('https://cdn.jsdelivr.net/gh/sweetherofonts/fontshero_pack1/cafe24danjunghae/cafe24danjunghae-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html, body, button, input, textarea, select,
h1,h2,h3,h4,h5,h6,p,a,span,b,small,strong,blockquote,
.logo,.eyebrow,.quote-paper-content p,.quote-block blockquote,
.detail-right h2,.detail-block h4,.detail-author-name,
.recommend-text-area h2,.recommend-text-area h3,.daily-book-body h2 {
  font-family:'Cafe24Danjunghae','Malgun Gothic',sans-serif !important;
  font-weight:400 !important;
}

.update-ribbon{
  position:relative;
  z-index:80;
  width:100%;
  padding:8px 16px 9px;
  text-align:center;
  background:#6b472f;
  color:#fff7ed;
  font-size:14px;
  letter-spacing:.04em;
  border-bottom:1px solid rgba(255,255,255,.12);
}
header{top:0}
.quote-paper-content p{
  font-size:32px;
  line-height:1.75;
  letter-spacing:.015em;
}
.quote-block blockquote{
  font-size:19px;
  line-height:1.85;
}

.wishlist-btn{
  border:1px solid #caa88b !important;
  background:#fffaf3 !important;
  color:#76543d !important;
}
.wishlist-btn.active{
  background:#8a4f56 !important;
  color:#fff8f2 !important;
  border-color:#8a4f56 !important;
}
.detail-wishlist{margin-top:16px}

.wishlist-section{
  margin:34px auto 70px;
  max-width:1180px;
  padding:34px;
  border-radius:24px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.7),rgba(255,250,243,.84)),
    #f3e6d5;
  border:1px solid #e0cfbb;
  box-shadow:0 18px 45px rgba(79,53,34,.08);
}
.wishlist-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:24px;
}
.wishlist-head h2{font-size:32px;margin:5px 0 8px}
.wishlist-head p{margin:0;color:#776353}
.wishlist-count{
  min-width:62px;
  padding:10px 14px;
  border-radius:999px;
  background:#6f4b34;
  color:#fff7ee;
  text-align:center;
}
.wishlist-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.wishlist-card{
  display:grid;
  grid-template-columns:100px 1fr;
  gap:15px;
  align-items:center;
  padding:15px;
  background:#fffaf3;
  border:1px solid #e5d4c1;
  border-radius:16px;
  min-height:160px;
}
.wishlist-cover{
  width:100px;
  height:145px;
  border-radius:4px 8px 8px 4px;
  overflow:hidden;
  box-shadow:0 12px 24px rgba(65,43,29,.16);
}
.wishlist-cover img{width:100%;height:100%;object-fit:cover;display:block}
.wishlist-info>span{font-size:10px;color:#a2856e}
.wishlist-info h3{font-size:19px;margin:6px 0}
.wishlist-info p{font-size:12px;color:#7d6858;margin:0 0 12px}
.wishlist-info div{display:flex;gap:7px;flex-wrap:wrap}
.wishlist-info button{padding:8px 10px;font-size:11px}
.remove-wish{background:transparent!important;color:#a07e69!important;border:1px solid #dfcdbc!important}
.wishlist-empty{
  padding:42px 20px;
  text-align:center;
  border:1px dashed #d6bfa8;
  border-radius:16px;
  color:#876f5d;
}
.wishlist-empty b{display:block;font-size:18px;margin-bottom:7px}

#mood .grid{
  grid-template-columns:repeat(5,1fr);
}
#mood .grid button span{display:block}

@media(max-width:980px){
  .wishlist-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #mood .grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:650px){
  .update-ribbon{font-size:12px}
  .wishlist-section{padding:22px 16px;margin:24px 12px 48px}
  .wishlist-head{align-items:flex-start}
  .wishlist-grid{grid-template-columns:1fr}
  #mood .grid{grid-template-columns:repeat(2,1fr)}
  .quote-paper-content p{font-size:26px}
}


/* ---------- v9 category polish ---------- */
#mood .grid{
  grid-template-columns:repeat(5,minmax(0,1fr));
}
#mood .grid button{
  min-height:88px;
  line-height:1.35;
}
.detail-block p + p{
  margin-top:13px;
}
@media(max-width:980px){
  #mood .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:620px){
  #mood .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* ---------- v10: darker warm-fire atmosphere ---------- */
:root{
  --fire-bg:#17100c;
  --fire-panel:#24170f;
  --fire-panel-2:#2d1d13;
  --fire-cream:#f1dfc8;
  --fire-gold:#c88b4a;
  --fire-line:#5e402a;
  --fire-muted:#b99c80;
}

body{
  background:
    radial-gradient(circle at 18% 8%, rgba(192,103,36,.14), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(116,68,31,.12), transparent 28%),
    linear-gradient(180deg,#130d0a,#1b120d 42%,#120c09 100%);
  color:#efe2d2;
}
.update-ribbon{
  background:linear-gradient(90deg,#2a180e,#6b3a1f 50%,#2a180e);
  color:#ffe8c7;
  box-shadow:0 1px 14px rgba(226,126,53,.18);
}
header{
  background:rgba(18,11,8,.88)!important;
  border-bottom:1px solid rgba(205,140,77,.16)!important;
  backdrop-filter:blur(10px);
}
header a, header .logo, header .icons{color:#ead8c4!important}
header a.on{color:#ffc986!important}

.hero{
  position:relative;
}
.hero:after{
  content:"";
  position:absolute;inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 20% 72%,rgba(225,113,38,.18),transparent 25%),
    linear-gradient(90deg,rgba(16,10,7,.55),rgba(17,11,8,.18) 48%,rgba(15,9,6,.48));
}
.hero>div{position:relative;z-index:2}
.hero h1,.hero p{color:#f6e7d6!important}

main{background:transparent!important}
.moods,.wishlist-section,.cards article,.result{
  background:
    linear-gradient(180deg,rgba(48,31,21,.96),rgba(34,22,15,.97))!important;
  color:#ead9c7!important;
  border-color:#5a3b27!important;
  box-shadow:0 20px 50px rgba(0,0,0,.22), inset 0 1px rgba(255,221,183,.035)!important;
}
.moods .head p,.wishlist-head p,.book-meta,.recommend-reason,.card-topline span,
.cover-note,.daily-book-head,.quote-block small,.detail-author-intro{
  color:#bda289!important;
}
#mood .grid button{
  background:linear-gradient(180deg,#332218,#261810)!important;
  border:1px solid #5b3c28!important;
  color:#ead8c5!important;
}
#mood .grid button:hover{
  transform:translateY(-2px);
  border-color:#b6783e!important;
  box-shadow:0 10px 24px rgba(196,108,43,.12);
}
.quote-card-v7 .daily-quote-sheet{
  background:
    radial-gradient(circle at 24% 26%,rgba(218,131,63,.18),transparent 27%),
    linear-gradient(145deg,#3b2518,#6a4229 55%,#2b1a12)!important;
}
.daily-book-body h2,.recommend-text-area h2,.recommend-text-area h3,
.wishlist-head h2,.moods h2{color:#f0dfcc!important}
.quote-block{
  background:#2b1d15!important;
  border-color:#5a3e2b!important;
}
.quote-block blockquote{color:#efcfaa!important}
.primary-action{
  background:linear-gradient(180deg,#a76432,#7e431f)!important;
  color:#fff3df!important;
  border-color:#b8733c!important;
}
.ghost-action,.wishlist-btn{
  background:#2a1b13!important;
  color:#dfc1a2!important;
  border-color:#65442f!important;
}
.purchase-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:9px 13px;
  border-radius:999px;
  text-decoration:none;
  font-size:12px;
  border:1px solid #a56a36;
  background:linear-gradient(180deg,#52311d,#3d2417);
  color:#ffd7a8;
  transition:.2s ease;
}
.purchase-btn:hover{
  transform:translateY(-1px);
  background:linear-gradient(180deg,#653d22,#4a2b18);
  box-shadow:0 8px 18px rgba(175,93,32,.16);
}
.random{
  background:
    radial-gradient(circle at 18% 42%,rgba(211,109,42,.15),transparent 28%),
    linear-gradient(180deg,#18100c,#21140d)!important;
  color:#edddca!important;
}
footer{
  background:#0f0907!important;
  color:#bda58e!important;
  border-top:1px solid #3b271b!important;
}
.wishlist-card{
  background:#2b1d15!important;
  border-color:#5b3d2a!important;
}
.wishlist-info h3{color:#f0dfca!important}
.wishlist-empty{
  color:#bda187!important;
  border-color:#5e412d!important;
}
.detail-panel{
  box-shadow:0 38px 90px rgba(0,0,0,.55)!important;
}
.detail-left{background:#2c1c13!important;color:#ead5bd!important}
.detail-right{background:#f1e3d0!important;color:#4a3526!important}
.detail-right .quote-block{background:#fff8ee!important;border-color:#dbc2a6!important}
.detail-right .quote-block blockquote{color:#6d4a32!important}
.detail-wishlist .purchase-btn{margin-left:8px}
.book-cover-slot[data-cover-kind="real"] img,
.detail-cover-slot[data-cover-kind="real"] img{
  object-fit:contain;
  background:#efe5d7;
}


/* ---------- v12 FIX: never-blank covers ---------- */
.premium-fallback-cover{
  width:100%;
  height:100%;
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  padding:22px 18px;
  overflow:hidden;
  color:#fff8ef;
  background:
    radial-gradient(circle at 82% 18%,rgba(255,255,255,.12),transparent 22%),
    linear-gradient(150deg,var(--cover-dark),var(--cover-mid) 58%,var(--cover-light));
}
.premium-fallback-cover:after{
  content:"";
  position:absolute;
  inset:10px;
  border:1px solid rgba(255,248,239,.22);
  pointer-events:none;
}
.premium-cover-rule{
  width:38px;
  height:2px;
  background:rgba(255,248,239,.78);
  margin-bottom:18px;
}
.premium-cover-series{
  font-size:8px;
  letter-spacing:.18em;
  opacity:.72;
  margin-bottom:18px;
}
.premium-cover-title{
  position:relative;
  z-index:2;
  font-size:25px;
  line-height:1.35;
  word-break:keep-all;
}
.premium-cover-author{
  position:relative;
  z-index:2;
  margin-top:10px;
  font-size:11px;
  opacity:.86;
}
.premium-cover-bottom{
  position:absolute;
  left:18px;
  bottom:20px;
  z-index:2;
  font-size:9px;
  opacity:.64;
  letter-spacing:.08em;
}

.cover-picker-btn{
  display:block!important;
  margin:8px auto 0!important;
  padding:6px 10px!important;
  min-height:auto!important;
  font-size:10px!important;
  border-radius:999px!important;
  border:1px solid #cdb093!important;
  background:#fff8ee!important;
  color:#76533b!important;
  cursor:pointer!important;
}
.cover-picker-btn:disabled{
  cursor:default!important;
  opacity:.58!important;
}
.book-cover-slot img,.detail-cover-slot img,.wishlist-cover img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  display:block!important;
  background:#eee4d8!important;
}


/* =========================================================
   v13 — SUN / MOON themes, search, reading note
   ========================================================= */
.header-tools{
  display:flex!important;
  align-items:center;
  justify-content:flex-end;
  gap:7px!important;
  min-width:142px;
}
.header-icon-btn{
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  padding:0!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  font-size:18px!important;
  line-height:1!important;
  cursor:pointer;
  transition:.2s ease;
}
.header-icon-btn:hover{transform:translateY(-1px)}

.update-ribbon{
  position:fixed!important;
  left:0;right:0;top:0;
  z-index:100!important;
  height:32px;
  padding:7px 16px!important;
}
header{
  top:32px!important;
  z-index:99!important;
}
.hero{
  padding-top:106px!important;
}

/* SUN — v9-ish warm cream cabin */
body.theme-light{
  background:
    radial-gradient(circle at 12% 8%,rgba(196,118,62,.13),transparent 24%),
    linear-gradient(180deg,#f2e8da 0%,#e7d7c4 54%,#dac4ac 100%)!important;
  color:#493326!important;
}
body.theme-light header{
  background:rgba(40,24,15,.95)!important;
  color:#f6e8d8!important;
}
body.theme-light .moods,
body.theme-light .cards article,
body.theme-light .wishlist-section,
body.theme-light .result{
  background:linear-gradient(180deg,rgba(255,251,245,.98),rgba(246,235,220,.98))!important;
  color:#4b3426!important;
  border-color:#dac3a8!important;
}
body.theme-light #mood .grid button{
  background:linear-gradient(180deg,#fffdf9,#f1e3d1)!important;
  color:#593d2c!important;
  border-color:#dbc4aa!important;
}
body.theme-light .quote-block{
  background:#fff9f0!important;
  border-color:#dfc9af!important;
}
body.theme-light .quote-block blockquote{color:#6f4b34!important}

/* MOON — current warm fire dark mode */
body.theme-dark{
  background:
    radial-gradient(circle at 15% 9%,rgba(210,112,43,.13),transparent 24%),
    radial-gradient(circle at 83% 17%,rgba(142,75,34,.09),transparent 27%),
    linear-gradient(180deg,#130d0a,#1c120d 48%,#110b08 100%)!important;
  color:#ead9c6!important;
}
body.theme-dark header{
  background:rgba(17,10,7,.96)!important;
}
body.theme-dark .moods,
body.theme-dark .cards article,
body.theme-dark .wishlist-section,
body.theme-dark .result{
  background:linear-gradient(180deg,rgba(47,30,20,.97),rgba(31,20,14,.98))!important;
  color:#ead8c4!important;
  border-color:#5c3e2a!important;
  box-shadow:0 20px 50px rgba(0,0,0,.24)!important;
}
body.theme-dark #mood .grid button{
  background:linear-gradient(180deg,#352219,#25170f)!important;
  color:#e9d6c2!important;
  border-color:#61412c!important;
}
body.theme-dark .moods h2,
body.theme-dark .wishlist-head h2,
body.theme-dark .daily-book-body h2,
body.theme-dark .recommend-text-area h2,
body.theme-dark .recommend-text-area h3{color:#f0deca!important}
body.theme-dark .book-meta,
body.theme-dark .recommend-reason,
body.theme-dark .cover-note,
body.theme-dark .card-topline span{color:#bca088!important}
body.theme-dark .quote-block{
  background:#2b1c14!important;
  border-color:#5c3d2a!important;
}
body.theme-dark .quote-block blockquote{color:#efcfae!important}
body.theme-dark .wishlist-card{
  background:#2c1d15!important;
  border-color:#5c3f2c!important;
}
body.theme-dark .wishlist-info h3{color:#f0dfcb!important}
body.theme-dark .header-icon-btn{
  background:#291911!important;
  border-color:#5e3b27!important;
  color:#f1d7b9!important;
}
body.theme-light .header-icon-btn{
  background:#332017!important;
  border-color:#68442f!important;
  color:#f3dec6!important;
}

/* Actual published cover first */
.book-cover-slot img,.detail-cover-slot img,.wishlist-cover img,.search-book-cover img{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:contain!important;
  background:#eee4d7!important;
}
.cover-picker-btn{display:none!important}

/* Search */
.search-modal{
  position:fixed;inset:0;z-index:15000;
  display:grid;place-items:start center;
  padding-top:88px;
}
.search-modal.hide{display:none}
.search-backdrop{
  position:absolute;inset:0;
  background:rgba(18,11,8,.62);
  backdrop-filter:blur(6px);
}
.search-panel{
  position:relative;z-index:2;
  width:min(960px,92vw);
  max-height:82vh;
  overflow:auto;
  border-radius:20px;
  padding:30px;
  background:#f8ecdc;
  color:#4e3829;
  box-shadow:0 34px 90px rgba(0,0,0,.34);
}
.search-panel h2{font-size:30px;margin:4px 0 18px}
.search-close{
  position:absolute;right:16px;top:13px;
  width:38px;height:38px;padding:0;margin:0;
  border-radius:50%;font-size:23px;
}
.search-input-wrap{
  display:grid;
  grid-template-columns:36px 1fr;
  align-items:center;
  background:#fffaf4;
  border:1px solid #d9bfa3;
  border-radius:14px;
  padding:0 14px;
}
.search-input-wrap span{font-size:21px;color:#8a6649}
.search-input-wrap input{
  width:100%;
  padding:15px 4px;
  border:0;
  outline:0;
  background:transparent;
  color:#4b3527;
  font:inherit;
  font-size:15px;
}
.search-count{font-size:11px;color:#967b66;margin:12px 2px}
.search-results{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.search-book-card{
  margin:0!important;
  padding:11px!important;
  min-width:0;
  display:grid;
  grid-template-columns:74px 1fr;
  gap:12px;
  text-align:left;
  align-items:center;
  border-radius:12px!important;
  background:#fff9f1!important;
}
.search-book-cover{
  width:74px;height:108px;
  overflow:hidden;
  border-radius:3px 7px 7px 3px;
  background:#e8d9c8;
  box-shadow:0 8px 16px rgba(66,42,27,.12);
}
.search-book-card span{font-size:9px;color:#9c7c64}
.search-book-card h3{font-size:16px;margin:5px 0;color:#4b3425}
.search-book-card p{font-size:11px;color:#806956;margin:0}

/* Detail tabs + reading log */
.detail-panel-v13{grid-template-columns:34% 66%!important}
.detail-right-v13{padding-top:24px!important}
.detail-tabs{
  position:sticky;
  top:-24px;
  z-index:4;
  display:flex;
  gap:6px;
  padding:13px 0 12px;
  margin-bottom:17px;
  background:linear-gradient(180deg,#fbf3e8 80%,rgba(251,243,232,0));
}
.detail-tab-btn{
  margin:0!important;
  padding:9px 14px!important;
  border-radius:999px!important;
  background:#f1e4d3!important;
  color:#785b45!important;
  border:1px solid #dcc3a7!important;
  font-size:12px!important;
}
.detail-tab-btn.active{
  background:#69452e!important;
  color:#fff4e7!important;
  border-color:#69452e!important;
}
.detail-tab-panel{display:none}
.detail-tab-panel.active{display:block;animation:detailTabIn .24s ease}
@keyframes detailTabIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}

.reading-time-card{
  width:min(250px,100%);
  margin-top:22px;
  padding:14px 16px;
  border-radius:12px;
  text-align:left;
  background:rgba(255,249,240,.48);
  border:1px solid rgba(120,82,54,.18);
}
.reading-time-card span{display:block;font-size:10px;color:#8e725c}
.reading-time-card b{display:block;font-size:19px;margin:5px 0;color:#5d412f}
.reading-time-card small{font-size:9px;line-height:1.5;color:#967c68}

.reading-form{
  display:flex;
  flex-direction:column;
  gap:17px;
  margin-top:20px;
}
.reading-form label>span{
  display:block;
  margin-bottom:7px;
  font-size:11px;
  color:#8a6e58;
}
.reading-form select,
.reading-form input,
.reading-form textarea{
  width:100%;
  padding:13px 14px;
  border-radius:10px;
  border:1px solid #dbc4aa;
  outline:0;
  background:#fffaf4;
  color:#4c3729;
  font:inherit;
}
.reading-form textarea{resize:vertical;line-height:1.7}
.reading-form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.page-input-wrap{position:relative}
.page-input-wrap input{padding-right:56px}
.page-input-wrap em{
  position:absolute;right:14px;top:50%;transform:translateY(-50%);
  font-size:10px;color:#9c826d;font-style:normal;
}
.reading-save-row{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
}
.reading-save-btn{
  margin:0!important;
  background:#6f4931!important;
  color:#fff5e8!important;
  border-color:#6f4931!important;
}
#readingSaveStatus{font-size:11px;color:#7c664f}

body.theme-dark .search-panel{
  background:#2b1d15;color:#ead9c6;
}
body.theme-dark .search-input-wrap,
body.theme-dark .search-book-card{
  background:#38251a!important;
  border-color:#63432e!important;
}
body.theme-dark .search-input-wrap input,
body.theme-dark .search-book-card h3{color:#efddc9!important}
body.theme-dark .search-book-card p,
body.theme-dark .search-count{color:#b99d84!important}

/* Detail is intentionally paper-like in both themes for readability */
body.theme-dark .detail-panel-v13 .detail-right{
  background:#f5e9d8!important;
  color:#493428!important;
}
body.theme-dark .detail-panel-v13 .detail-left{
  background:#d8bea0!important;
  color:#493428!important;
}

@media(max-width:800px){
  .search-results{grid-template-columns:repeat(2,minmax(0,1fr))}
  .detail-panel-v13{grid-template-columns:1fr!important}
  .reading-form-row{grid-template-columns:1fr}
}
@media(max-width:520px){
  .search-results{grid-template-columns:1fr}
  .header-tools{min-width:auto}
  nav{display:none!important}
}


/* ---------- v14: fantasy + reading journal ---------- */
.reading-notes-section{
  max-width:1180px;
  margin:34px auto 58px;
  padding:34px;
  border-radius:24px;
  border:1px solid #d9c1a5;
  background:linear-gradient(180deg,rgba(255,251,245,.96),rgba(244,232,217,.96));
  box-shadow:0 20px 46px rgba(75,47,29,.09);
}
.reading-notes-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  margin-bottom:23px;
}
.reading-notes-head h2{font-size:32px;margin:5px 0 8px}
.reading-notes-head p{margin:0;color:#806a58}
.new-reading-note-btn{
  margin:0!important;
  background:#704a31!important;
  color:#fff4e8!important;
  border-color:#704a31!important;
}
.reading-notes-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px;
}
.reading-note-card{
  min-width:0;
  display:grid;
  grid-template-columns:105px 1fr;
  gap:16px;
  padding:15px;
  border-radius:16px;
  background:#fffaf3;
  border:1px solid #dfc8ad;
}
.reading-note-cover{
  width:105px;height:153px;
  overflow:hidden;
  border-radius:4px 8px 8px 4px;
  background:#eadcca;
  box-shadow:0 12px 23px rgba(61,40,27,.13);
}
.reading-note-cover img{width:100%;height:100%;object-fit:contain;background:#eee4d7}
.reading-note-copy>span{font-size:10px;color:#9a7f68}
.reading-note-copy h3{margin:6px 0;font-size:20px;color:#503629}
.reading-note-meta{font-size:11px;color:#8a705d;margin:0 0 9px}
.reading-note-review{
  margin:0 0 12px;
  font-size:12px;
  line-height:1.7;
  color:#604b3c;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.reading-note-actions{display:flex;gap:7px;flex-wrap:wrap}
.reading-note-actions button{padding:7px 10px!important;font-size:10px!important;margin:0!important}
.remove-reading-note{background:transparent!important;color:#967460!important;border:1px solid #d8bea2!important}
.reading-notes-empty{
  padding:38px 20px;
  text-align:center;
  border:1px dashed #cfb093;
  border-radius:15px;
  color:#846b57;
}
.reading-notes-empty b{display:block;font-size:18px;margin-bottom:6px}

body.theme-dark .reading-notes-section{
  background:linear-gradient(180deg,rgba(45,29,20,.97),rgba(31,20,14,.98));
  color:#ead9c7;
  border-color:#5d3f2b;
}
body.theme-dark .reading-notes-head p{color:#b89d85}
body.theme-dark .reading-note-card{
  background:#2d1e16;
  border-color:#5d402d;
}
body.theme-dark .reading-note-copy h3{color:#efdcc7}
body.theme-dark .reading-note-copy>span,
body.theme-dark .reading-note-meta{color:#b99c83}
body.theme-dark .reading-note-review{color:#d0b9a2}
body.theme-dark .reading-notes-empty{border-color:#63452f;color:#b99d85}

@media(max-width:760px){
  .reading-notes-section{margin:24px 12px 45px;padding:22px 16px}
  .reading-notes-head{align-items:flex-start;flex-direction:column}
  .reading-notes-grid{grid-template-columns:1fr}
}


/* ---------- v15: stronger text contrast ---------- */
body,.moods,.cards article,.wishlist-section,.reading-notes-section,.result{
  -webkit-font-smoothing:auto!important;
  text-rendering:optimizeLegibility;
}
body.theme-light{
  color:#2f2119!important;
}
body.theme-light p,
body.theme-light .recommend-reason,
body.theme-light .book-meta,
body.theme-light .reading-note-review,
body.theme-light .reading-note-meta,
body.theme-light .wishlist-head p,
body.theme-light .reading-notes-head p{
  color:#574235!important;
}
body.theme-light .card-topline span,
body.theme-light .cover-note,
body.theme-light small{
  color:#765c49!important;
}
body.theme-dark{
  color:#f4e6d5!important;
}
body.theme-dark p,
body.theme-dark .recommend-reason,
body.theme-dark .book-meta,
body.theme-dark .reading-note-review,
body.theme-dark .reading-note-meta{
  color:#ddc5ae!important;
}
body.theme-dark .card-topline span,
body.theme-dark .cover-note,
body.theme-dark small{
  color:#c9ad93!important;
}
button,a,input,textarea,select{
  font-weight:500!important;
}
h1,h2,h3,h4{
  letter-spacing:-.015em!important;
}
.recommend-reason,.detail-block p,.reading-note-review{
  line-height:1.82!important;
}

/* Kyobo cover state */
.cover-loading-shimmer{
  width:100%;height:100%;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(110deg,#d5c5b4 28%,#eee1d2 43%,#d5c5b4 58%);
  background-size:220% 100%;
  animation:v15shimmer 1.3s linear infinite;
}
.cover-loading-shimmer span{
  padding:6px 8px;border-radius:99px;
  background:rgba(255,255,255,.62);
  color:#684c38!important;
  font-size:9px;
}
@keyframes v15shimmer{to{background-position:-220% 0}}
.premium-fallback-cover{
  width:100%;height:100%;
  padding:22px 17px;
  display:flex;flex-direction:column;justify-content:center;
  color:#fff8ef;
  background:linear-gradient(150deg,var(--cover-dark),var(--cover-mid) 57%,var(--cover-light));
}
.premium-cover-series{font-size:9px;letter-spacing:.15em;opacity:.7;margin-bottom:18px}
.premium-cover-title{font-size:25px;line-height:1.4}
.premium-cover-author{font-size:11px;opacity:.85;margin-top:10px}
.premium-cover-bottom{font-size:8px;opacity:.65;margin-top:auto}
.book-cover-slot[data-cover-kind="kyobo"] img,
.detail-cover-slot[data-cover-kind="kyobo"] img{
  object-fit:contain!important;
  background:#f1e7dc!important;
}

/* Day 1~30 reading notebook */
.reading-day-section{
  border:1px solid #dbc1a4;
  background:#fff9f0;
  border-radius:14px;
  padding:13px;
}
.reading-day-head{
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  margin-bottom:10px;
}
.reading-day-head>span{
  font-size:15px!important;
  color:#5c402e!important;
}
.reading-day-head small{
  font-size:9px!important;
  color:#8e715b!important;
}
.reading-day-rail{
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding:2px 2px 9px;
  scrollbar-width:thin;
}
.reading-day-btn{
  flex:0 0 auto;
  min-width:62px!important;
  margin:0!important;
  padding:8px 9px!important;
  border-radius:999px!important;
  background:#f2e4d2!important;
  color:#755942!important;
  border:1px solid #d9bfa0!important;
  font-size:10px!important;
}
.reading-day-btn.has-note:before{
  content:"•";
  margin-right:4px;
  color:#b55f36;
}
.reading-day-btn.active{
  background:#6e4932!important;
  color:#fff5e9!important;
  border-color:#6e4932!important;
}
.reading-day-btn.active.has-note:before{color:#ffd3aa}

.journal-day-mini{
  display:grid;
  grid-template-columns:repeat(15,6px);
  gap:4px;
  margin:7px 0 10px;
}
.journal-day-mini i{
  width:6px;height:6px;border-radius:50%;
  background:#dbc8b5;
}
.journal-day-mini i.filled{background:#9c5e3b}

body.theme-dark .reading-day-section{
  background:#efe0cd!important;
  border-color:#c4a27d!important;
}
body.theme-dark .reading-day-head>span{color:#513725!important}
body.theme-dark .reading-day-btn{
  background:#dfcbb3!important;
  color:#5a402e!important;
  border-color:#c3a381!important;
}
body.theme-dark .reading-day-btn.active{
  background:#68422b!important;
  color:#fff4e6!important;
}

/* more mood buttons fit neatly */
#mood .grid{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
}
#mood .grid button{
  min-height:92px!important;
  font-size:13px!important;
}

@media(max-width:980px){
  #mood .grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:620px){
  #mood .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .reading-day-head{align-items:flex-start;flex-direction:column}
}


/* ---------- v16 readability hotfix ---------- */
body{
  font-size:16px!important;
}
body.theme-light,
body.theme-light p,
body.theme-light span,
body.theme-light li,
body.theme-light label,
body.theme-light small,
body.theme-light .recommend-reason,
body.theme-light .book-meta,
body.theme-light .card-topline span,
body.theme-light .wishlist-head p,
body.theme-light .reading-notes-head p,
body.theme-light .reading-note-meta,
body.theme-light .reading-note-review{
  color:#241913!important;
  opacity:1!important;
}
body.theme-dark,
body.theme-dark p,
body.theme-dark span,
body.theme-dark li,
body.theme-dark label,
body.theme-dark small,
body.theme-dark .recommend-reason,
body.theme-dark .book-meta,
body.theme-dark .card-topline span,
body.theme-dark .wishlist-head p,
body.theme-dark .reading-notes-head p,
body.theme-dark .reading-note-meta,
body.theme-dark .reading-note-review{
  color:#fff2e2!important;
  opacity:1!important;
}
body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light h4{color:#1f1510!important}
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4{color:#fff7ee!important}

.moods,.cards article,.wishlist-section,.reading-notes-section,.result{
  text-shadow:none!important;
}
.recommend-reason,
.detail-block p,
.reading-note-review,
.wishlist-info p{
  font-size:14px!important;
  line-height:1.85!important;
  font-weight:500!important;
}
.book-meta{
  font-size:13px!important;
  font-weight:600!important;
}
.cover-note{
  font-size:10px!important;
  font-weight:700!important;
}
button,a{
  opacity:1!important;
}

/* detail modal readability */
.detail-right,
body.theme-dark .detail-panel-v13 .detail-right{
  background:#fff7ec!important;
  color:#251912!important;
}
.detail-right p,
.detail-right span,
.detail-right small,
.detail-right label,
.detail-right h2,
.detail-right h3,
.detail-right h4{
  color:#251912!important;
  opacity:1!important;
}
.detail-tab-btn{
  color:#4f3425!important;
  font-weight:700!important;
}
.detail-tab-btn.active{
  color:#fff8f0!important;
}
.reading-time-card{
  background:#f2e1ca!important;
}
.reading-time-card span,
.reading-time-card b,
.reading-time-card small{
  color:#3d281c!important;
}

/* daily card explicit visibility */
#dailyFeaturedBook{
  min-height:280px;
}
.daily-book-body{
  color:inherit!important;
}
.daily-book-empty{
  padding:30px;
  text-align:center;
  font-size:14px;
  color:#7c5b43;
}

/* cleaner fallback cover */
.premium-fallback-cover{
  width:100%;height:100%;
  display:flex;
  flex-direction:column;
  padding:20px 16px;
  background:
    linear-gradient(160deg,#241711 0%,#5c3824 58%,#b77b4d 100%)!important;
  color:#fff8ef!important;
}
.premium-cover-series,
.premium-cover-title,
.premium-cover-author,
.premium-cover-bottom{
  color:#fff8ef!important;
  opacity:1!important;
}
.premium-cover-series{font-size:9px;letter-spacing:.18em}
.premium-cover-title{font-size:24px;line-height:1.35;margin-top:18px}
.premium-cover-author{font-size:11px;margin-top:10px}
.premium-cover-bottom{font-size:9px;margin-top:auto;color:#ffe2c2!important}


/* ---------- v17: 오늘의 한 문장 가독성 + verified ISBN cover labels ---------- */
.quote-card-v7{
  background:
    linear-gradient(180deg,#f5e8d6,#ead5bc)!important;
  border:1px solid #c9aa87!important;
  color:#2b1b12!important;
}
.quote-card-v7 .card-topline span,
.quote-card-v7 .card-topline b,
.quote-card-v7 h2,
.quote-card-v7 h3{
  color:#2b1b12!important;
  opacity:1!important;
}
.quote-card-v7 .quote-stage-v7{
  background:
    radial-gradient(circle at 18% 18%,rgba(255,255,255,.72),transparent 28%),
    linear-gradient(145deg,#fffaf2,#f2dfc5 58%,#e7caa5)!important;
  border:1px solid #c8a17a!important;
  box-shadow:
    0 18px 36px rgba(88,53,28,.14),
    inset 0 1px rgba(255,255,255,.82)!important;
}
.quote-card-v7 .daily-quote-sheet{
  background:
    radial-gradient(circle at 22% 22%,rgba(255,255,255,.72),transparent 30%),
    linear-gradient(145deg,#fffaf2,#f0dcc1 55%,#dfbd91)!important;
  color:#25160f!important;
  text-shadow:none!important;
}
.quote-card-v7 .daily-quote-sheet,
.quote-card-v7 .daily-quote-sheet p,
.quote-card-v7 .daily-quote-sheet span,
.quote-card-v7 .quote-paper-content p{
  color:#25160f!important;
  opacity:1!important;
  font-weight:600!important;
}
.quote-card-v7 .quote-change-btn{
  background:#5d3b27!important;
  color:#fff7ed!important;
  border-color:#5d3b27!important;
}
.quote-card-v7 .quote-dot{
  background:#b98d63!important;
  opacity:.55!important;
}
.quote-card-v7 .quote-dot.active{
  background:#5c3926!important;
  opacity:1!important;
}

/* Even in dark mode, keep the quote itself parchment-light. */
body.theme-dark .quote-card-v7{
  background:linear-gradient(180deg,#d8b996,#b98f68)!important;
  border-color:#8e603e!important;
}
body.theme-dark .quote-card-v7 .quote-stage-v7,
body.theme-dark .quote-card-v7 .daily-quote-sheet{
  background:
    radial-gradient(circle at 20% 20%,rgba(255,255,255,.66),transparent 28%),
    linear-gradient(145deg,#f5e6d1,#e4c39c 56%,#c99867)!important;
}
body.theme-dark .quote-card-v7 .daily-quote-sheet,
body.theme-dark .quote-card-v7 .daily-quote-sheet p,
body.theme-dark .quote-card-v7 .daily-quote-sheet span,
body.theme-dark .quote-card-v7 .quote-paper-content p,
body.theme-dark .quote-card-v7 .card-topline span,
body.theme-dark .quote-card-v7 .card-topline b{
  color:#21130d!important;
  opacity:1!important;
}
.cover-note{
  letter-spacing:.02em!important;
}


/* =========================================================
   v18 — visibility + cover/purchase hotfix
   ========================================================= */

/* Body copy: use a highly readable Korean system sans.
   Headings/logo can keep Cafe24 단정해. */
body,
button,input,textarea,select,
p,li,label,small,.book-meta,.recommend-reason,
.reading-note-review,.reading-note-meta,.detail-block p,
.wishlist-info p,.search-book-card p{
  font-family:"Malgun Gothic","Apple SD Gothic Neo","Noto Sans KR",sans-serif!important;
}

h1,h2,h3,h4,.logo,.eyebrow,
.daily-quote-sheet,.daily-quote-sheet p,
.quote-paper-content p{
  font-family:'Cafe24Danjunghae',"Malgun Gothic",sans-serif!important;
}

/* LIGHT MODE — no washed-out brown text */
body.theme-light{
  color:#18110d!important;
}
body.theme-light main,
body.theme-light section,
body.theme-light article{
  color:#18110d!important;
}
body.theme-light p,
body.theme-light li,
body.theme-light label,
body.theme-light small,
body.theme-light span:not(.quote-dot):not(.header-icon-btn),
body.theme-light .book-meta,
body.theme-light .recommend-reason,
body.theme-light .cover-note,
body.theme-light .reading-note-meta,
body.theme-light .reading-note-review,
body.theme-light .wishlist-info p{
  color:#2d2119!important;
  opacity:1!important;
}
body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light h4{
  color:#17100c!important;
  opacity:1!important;
}

/* DARK MODE — strong cream text, not muted brown */
body.theme-dark{
  color:#fff5e8!important;
}
body.theme-dark main,
body.theme-dark section,
body.theme-dark article{
  color:#fff5e8!important;
}
body.theme-dark p,
body.theme-dark li,
body.theme-dark label,
body.theme-dark small,
body.theme-dark .book-meta,
body.theme-dark .recommend-reason,
body.theme-dark .cover-note,
body.theme-dark .reading-note-meta,
body.theme-dark .reading-note-review,
body.theme-dark .wishlist-info p{
  color:#f3dfca!important;
  opacity:1!important;
}
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4{
  color:#fff9f1!important;
  opacity:1!important;
}

/* Larger / stronger common copy */
.book-meta{
  font-size:13px!important;
  font-weight:700!important;
}
.recommend-reason,
.detail-block p,
.reading-note-review,
.wishlist-info p{
  font-size:14px!important;
  font-weight:500!important;
  line-height:1.82!important;
}
.cover-note{
  font-size:10px!important;
  font-weight:700!important;
  opacity:1!important;
}

/* Quote card is ALWAYS paper-light, including dark mode */
.quote-card-v7,
body.theme-dark .quote-card-v7{
  background:linear-gradient(150deg,#f7ead8,#e9cfad)!important;
  color:#1d130e!important;
  border-color:#b98d63!important;
}
.quote-card-v7 .quote-stage-v7,
.quote-card-v7 .daily-quote-sheet,
body.theme-dark .quote-card-v7 .quote-stage-v7,
body.theme-dark .quote-card-v7 .daily-quote-sheet{
  background:linear-gradient(145deg,#fffdf8,#f3e2c9 60%,#e7c59c)!important;
  color:#17100c!important;
}
.quote-card-v7 .daily-quote-sheet p,
.quote-card-v7 .daily-quote-sheet span,
.quote-card-v7 .quote-paper-content p,
.quote-card-v7 .card-topline span,
body.theme-dark .quote-card-v7 .daily-quote-sheet p,
body.theme-dark .quote-card-v7 .daily-quote-sheet span,
body.theme-dark .quote-card-v7 .quote-paper-content p,
body.theme-dark .quote-card-v7 .card-topline span{
  color:#17100c!important;
  opacity:1!important;
  text-shadow:none!important;
}
.quote-card-v7 .quote-paper-content p{
  font-size:31px!important;
  font-weight:700!important;
  line-height:1.65!important;
}

/* Purchase button must visibly remain present */
.purchase-btn{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:42px!important;
  padding:10px 14px!important;
  border-radius:999px!important;
  text-decoration:none!important;
  font-weight:700!important;
  background:#4a2d1d!important;
  color:#fff6e9!important;
  border:1px solid #825234!important;
}
.purchase-btn:hover{
  background:#623a22!important;
  color:#fff!important;
}

/* Correct cover presentation */
.book-cover-slot,
.detail-cover-slot,
.wishlist-cover,
.search-book-cover,
.reading-note-cover{
  background:#e9dfd3!important;
}
.book-cover-slot img,
.detail-cover-slot img,
.wishlist-cover img,
.search-book-cover img,
.reading-note-cover img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  background:#f1e8de!important;
}
.cover-loading-shimmer{
  width:100%!important;
  height:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:linear-gradient(110deg,#d6cabd 25%,#f0e6dc 45%,#d6cabd 65%)!important;
  background-size:220% 100%!important;
}
.cover-loading-shimmer span{
  color:#4b382b!important;
  background:rgba(255,255,255,.78)!important;
  padding:6px 9px!important;
  border-radius:999px!important;
  font-size:10px!important;
  font-weight:700!important;
}
.cover-missing-card{
  width:100%;
  height:100%;
  padding:20px 16px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  background:#e7dbcf;
  color:#473426;
}
.cover-missing-card span{
  font-size:9px!important;
  color:#866f5d!important;
  margin-bottom:14px;
}
.cover-missing-card strong{
  font-size:20px!important;
  color:#332319!important;
  line-height:1.4;
}
.cover-missing-card small{
  margin-top:8px;
  color:#6f5947!important;
  font-size:10px!important;
}

/* Remove any stale pseudo-label from old builds */
#mood .grid button::after{
  content:none!important;
  display:none!important;
}

/* Detail modal remains paper-light so text is always readable */
.detail-right,
body.theme-dark .detail-panel-v13 .detail-right{
  background:#fff8ef!important;
  color:#1f1611!important;
}
.detail-right p,
.detail-right span,
.detail-right label,
.detail-right small,
.detail-right h2,
.detail-right h3,
.detail-right h4,
body.theme-dark .detail-right p,
body.theme-dark .detail-right span,
body.theme-dark .detail-right label,
body.theme-dark .detail-right small,
body.theme-dark .detail-right h2,
body.theme-dark .detail-right h3,
body.theme-dark .detail-right h4{
  color:#211711!important;
  opacity:1!important;
}


/* ---------- v19 cover fallback polish ---------- */
.cover-missing-card{
  background:
    linear-gradient(145deg,#eee5dc,#d9cabd)!important;
  color:#33241b!important;
  border:1px solid rgba(90,65,47,.12);
}
.cover-missing-card span,
.cover-missing-card strong,
.cover-missing-card small{
  color:#33241b!important;
  opacity:1!important;
}
.cover-missing-card strong{font-size:18px!important}


/* ---------- v20 actual-cover visibility ---------- */
.book-cover-slot img,
.detail-cover-slot img,
.wishlist-cover img,
.search-book-cover img,
.reading-note-cover img{
  object-fit:contain!important;
  background:#fff!important;
}
.cover-missing-card{
  background:#eee7df!important;
  color:#2b211b!important;
}
.cover-missing-card span{
  color:#6a574a!important;
}
.cover-note{
  color:#4e392c!important;
  opacity:1!important;
}
body.theme-dark .cover-note{
  color:#f0d8c0!important;
}


/* ---------- v21 actual cover loader ---------- */
.cover-loading-shimmer span{
  font-family:"Malgun Gothic","Apple SD Gothic Neo",sans-serif!important;
  font-weight:700!important;
}
.cover-missing-card em{
  margin-top:10px;
  font-size:9px;
  line-height:1.45;
  font-style:normal;
  color:#786354!important;
}


/* =========================================================
   v22 CANONICAL COLOR SYSTEM — final override
   ========================================================= */
body.theme-light{
  --page-bg:#eadbc7;
  --page-bg-2:#d8c0a6;
  --surface:#fffaf2;
  --surface-2:#f4e5d2;
  --surface-3:#ead4bb;
  --text:#17110d;
  --muted:#48382c;
  --soft:#675142;
  --line:#b89573;
  --accent:#6d3f24;
  --accent-2:#8a5835;
  --button-text:#fffaf4;
}

body.theme-dark{
  --page-bg:#100a07;
  --page-bg-2:#1b100b;
  --surface:#241710;
  --surface-2:#2f1e15;
  --surface-3:#3b271b;
  --text:#fff8ef;
  --muted:#ecd6c0;
  --soft:#d7bba0;
  --line:#765033;
  --accent:#c17b44;
  --accent-2:#9b5b31;
  --button-text:#fff9f1;
}

/* Page background */
body.theme-light{
  background:
    radial-gradient(circle at 16% 8%,rgba(187,104,48,.12),transparent 26%),
    linear-gradient(180deg,var(--page-bg),var(--page-bg-2))!important;
  color:var(--text)!important;
}
body.theme-dark{
  background:
    radial-gradient(circle at 16% 8%,rgba(205,106,40,.15),transparent 24%),
    linear-gradient(180deg,var(--page-bg),var(--page-bg-2))!important;
  color:var(--text)!important;
}

/* Cards / sections */
body.theme-light .moods,
body.theme-light .cards article,
body.theme-light .wishlist-section,
body.theme-light .reading-notes-section,
body.theme-light .result{
  background:var(--surface)!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}
body.theme-dark .moods,
body.theme-dark .cards article,
body.theme-dark .wishlist-section,
body.theme-dark .reading-notes-section,
body.theme-dark .result{
  background:var(--surface)!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}

/* All body copy explicitly contrasts with the current surface */
body.theme-light main p,
body.theme-light main li,
body.theme-light main label,
body.theme-light main small,
body.theme-light .book-meta,
body.theme-light .recommend-reason,
body.theme-light .cover-note,
body.theme-light .reading-note-meta,
body.theme-light .reading-note-review,
body.theme-light .wishlist-info p,
body.theme-light .search-count{
  color:var(--muted)!important;
  opacity:1!important;
  text-shadow:none!important;
}
body.theme-dark main p,
body.theme-dark main li,
body.theme-dark main label,
body.theme-dark main small,
body.theme-dark .book-meta,
body.theme-dark .recommend-reason,
body.theme-dark .cover-note,
body.theme-dark .reading-note-meta,
body.theme-dark .reading-note-review,
body.theme-dark .wishlist-info p,
body.theme-dark .search-count{
  color:var(--muted)!important;
  opacity:1!important;
  text-shadow:none!important;
}

body.theme-light main h1,
body.theme-light main h2,
body.theme-light main h3,
body.theme-light main h4{
  color:var(--text)!important;
}
body.theme-dark main h1,
body.theme-dark main h2,
body.theme-dark main h3,
body.theme-dark main h4{
  color:var(--text)!important;
}

.book-meta{font-size:13px!important;font-weight:700!important}
.recommend-reason,
.detail-block p,
.reading-note-review,
.wishlist-info p{
  font-size:14px!important;
  line-height:1.82!important;
  font-weight:500!important;
}

/* Mood buttons */
body.theme-light #mood .grid button{
  background:var(--surface-2)!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}
body.theme-dark #mood .grid button{
  background:var(--surface-2)!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}

/* Buttons */
.primary-action,
.reading-save-btn,
.new-reading-note-btn{
  background:var(--accent)!important;
  color:var(--button-text)!important;
  border-color:var(--accent)!important;
}
.ghost-action,
.wishlist-btn{
  background:var(--surface-2)!important;
  color:var(--text)!important;
  border-color:var(--line)!important;
}
.purchase-btn{
  background:var(--accent)!important;
  color:var(--button-text)!important;
  border-color:var(--accent-2)!important;
}

/* Quote card is intentionally paper-light in BOTH themes */
.quote-card-v7,
body.theme-dark .quote-card-v7,
body.theme-light .quote-card-v7{
  background:#f3dfc4!important;
  border-color:#aa7b52!important;
  color:#170f0a!important;
}
.quote-card-v7 .quote-stage-v7,
.quote-card-v7 .daily-quote-sheet,
body.theme-dark .quote-card-v7 .quote-stage-v7,
body.theme-dark .quote-card-v7 .daily-quote-sheet{
  background:linear-gradient(145deg,#fffdf8,#efd8b8 68%,#dcb483)!important;
  color:#170f0a!important;
}
.quote-card-v7 .quote-paper-content p,
.quote-card-v7 .daily-quote-sheet p,
.quote-card-v7 .daily-quote-sheet span,
.quote-card-v7 .card-topline span,
body.theme-dark .quote-card-v7 .quote-paper-content p,
body.theme-dark .quote-card-v7 .daily-quote-sheet p,
body.theme-dark .quote-card-v7 .daily-quote-sheet span,
body.theme-dark .quote-card-v7 .card-topline span{
  color:#170f0a!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* Search */
body.theme-light .search-panel{
  background:#fff8ee!important;
  color:#18110d!important;
}
body.theme-dark .search-panel{
  background:#21150f!important;
  color:#fff8ef!important;
}
body.theme-light .search-input-wrap,
body.theme-light .search-book-card{
  background:#fffdf8!important;
  color:#18110d!important;
  border-color:#b99a7e!important;
}
body.theme-dark .search-input-wrap,
body.theme-dark .search-book-card{
  background:#302017!important;
  color:#fff8ef!important;
  border-color:#765033!important;
}
body.theme-light .search-book-card h3,
body.theme-light .search-book-card p,
body.theme-light .search-input-wrap input{
  color:#18110d!important;
}
body.theme-dark .search-book-card h3,
body.theme-dark .search-book-card p,
body.theme-dark .search-input-wrap input{
  color:#fff8ef!important;
}

/* Details stay light-paper in both modes to prevent accidental inversion */
.detail-right,
body.theme-dark .detail-panel-v13 .detail-right,
body.theme-light .detail-panel-v13 .detail-right{
  background:#fff8ee!important;
  color:#1c130e!important;
}
.detail-right p,
.detail-right span,
.detail-right label,
.detail-right small,
.detail-right h2,
.detail-right h3,
.detail-right h4{
  color:#241711!important;
  opacity:1!important;
}
.detail-left,
body.theme-dark .detail-panel-v13 .detail-left{
  background:#d6b896!important;
  color:#21150f!important;
}
.detail-left p,
.detail-left span,
.detail-left small,
.detail-left b{
  color:#21150f!important;
  opacity:1!important;
}

/* Reading journal */
body.theme-light .reading-note-card,
body.theme-light .wishlist-card{
  background:#fffaf3!important;
  border-color:#bda083!important;
}
body.theme-dark .reading-note-card,
body.theme-dark .wishlist-card{
  background:#302017!important;
  border-color:#765033!important;
  color:#fff8ef!important;
}
body.theme-dark .reading-note-copy h3,
body.theme-dark .wishlist-info h3{
  color:#fff8ef!important;
}

/* Actual cover area */
.book-cover-slot,
.detail-cover-slot,
.wishlist-cover,
.search-book-cover,
.reading-note-cover{
  background:#eee5dc!important;
}
.book-cover-slot img,
.detail-cover-slot img,
.wishlist-cover img,
.search-book-cover img,
.reading-note-cover img{
  object-fit:contain!important;
  background:#fff!important;
}
.cover-loading-shimmer{
  background:linear-gradient(110deg,#d7cabe 25%,#f5ece4 45%,#d7cabe 65%)!important;
  background-size:220% 100%!important;
}
.cover-loading-shimmer span{
  color:#2c2018!important;
  background:rgba(255,255,255,.88)!important;
  font-weight:700!important;
}
.cover-loading-shimmer.mini span{
  font-size:8px!important;
  padding:4px 6px!important;
}
.cover-missing-card{
  background:#e9dfd5!important;
  color:#2b2019!important;
}
.cover-missing-card span,
.cover-missing-card strong,
.cover-missing-card small,
.cover-missing-card em{
  color:#2b2019!important;
  opacity:1!important;
}

/* Header/hero always high contrast */
header,
body.theme-light header,
body.theme-dark header{
  background:rgba(22,13,9,.96)!important;
}
header a,
header .logo,
.header-icon-btn{
  color:#fff5e8!important;
}
.hero h1,
.hero p,
.hero span{
  color:#fff8ef!important;
  text-shadow:0 2px 16px rgba(0,0,0,.55)!important;
}


/* ---------- AI local book covers v25 ---------- */
.book-cover-slot,
.detail-cover-slot,
.search-book-cover,
.wishlist-cover,
.reading-note-cover {
  overflow: hidden;
}

.ai-local-cover {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #2a241f;
  isolation: isolate;
}

.ai-local-cover-art {
  position: absolute;
  inset: 0;
  background-image: url("assets/ai-cover-library.png");
  background-repeat: no-repeat;
  background-size: 700% 400%;
  transform: scale(1.035);
}

.ai-local-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,14,10,.04) 35%, rgba(18,14,10,.78) 100%);
}

.ai-local-cover-copy {
  position: absolute;
  z-index: 2;
  left: 8%;
  right: 8%;
  bottom: 7%;
  color: #fffaf0;
  text-shadow: 0 2px 10px rgba(0,0,0,.65);
  text-align: left;
}

.ai-local-cover-copy strong {
  display: block;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(.72rem, 1.5vw, 1.15rem);
  line-height: 1.18;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.ai-local-cover-copy span {
  display: block;
  margin-top: .35em;
  font-size: clamp(.52rem, .9vw, .72rem);
  opacity: .88;
  line-height: 1.2;
}


/* AI cover label v26 */
.ai-local-cover-madeby {
  display:block;
  margin-top:.45em;
  font-style:normal;
  font-size:clamp(.48rem,.82vw,.66rem);
  opacity:.9;
  line-height:1.2;
  letter-spacing:.01em;
}

.cover-note {
  display:block;
  text-align:center;
}


/* ---------- UNIQUE AI COVER v27 ---------- */
.ai-local-cover {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #2d241f;
  isolation: isolate;
}

.ai-local-cover-artimg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.ai-local-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,14,10,.03) 28%, rgba(18,14,10,.18) 60%, rgba(18,14,10,.84) 100%);
}

.ai-local-cover-copy {
  position: absolute;
  z-index: 2;
  left: 8%;
  right: 8%;
  bottom: 7%;
  color: #fffaf0;
  text-shadow: 0 2px 10px rgba(0,0,0,.68);
  text-align: left;
}

.ai-local-cover-copy strong {
  display: block;
  font-family: Georgia, 'Noto Serif KR', serif;
  font-size: clamp(.72rem, 1.5vw, 1.15rem);
  line-height: 1.18;
  letter-spacing: -.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.ai-local-cover-copy span {
  display: block;
  margin-top: .35em;
  font-size: clamp(.52rem, .9vw, .72rem);
  opacity: .9;
  line-height: 1.2;
}

.ai-local-cover-madeby {
  display: block;
  margin-top: .45em;
  font-style: normal;
  font-size: clamp(.48rem, .82vw, .66rem);
  opacity: .92;
  line-height: 1.2;
  letter-spacing: .01em;
}

.cover-note {
  display: block;
  text-align: center;
}


/* ---------- REAL COVER PRIORITY v28 ---------- */
.actual-book-cover-v28 {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}


/* ---------- REAL COVER ONLY v29 ---------- */
.real-cover-silent-v29 {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  background:
    linear-gradient(110deg, rgba(255,255,255,.035), rgba(255,255,255,.10), rgba(255,255,255,.035)),
    rgba(71,58,47,.10);
  background-size:220% 100%;
  animation:realCoverSilentPulseV29 2.2s ease-in-out infinite;
}

@keyframes realCoverSilentPulseV29 {
  0%,100% { background-position:100% 0; opacity:.55; }
  50% { background-position:0 0; opacity:.85; }
}

.actual-book-cover-v29 {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
}


/* ---------- v31: prevent white GPU flash when recommendation is finalized ---------- */
/* The old 3D page animation was still running when JS replaced its DOM at 900ms.
   Finish the page turns safely before the swap and mask the one-frame compositor teardown. */
.loader-cover-v7{
  animation-duration:.52s!important;
}
.loader-page-v7.p1{animation-duration:.48s!important;animation-delay:.03s!important}
.loader-page-v7.p2{animation-duration:.48s!important;animation-delay:.08s!important}
.loader-page-v7.p3{animation-duration:.48s!important;animation-delay:.13s!important}
.loader-page-v7.p4{animation-duration:.48s!important;animation-delay:.18s!important}
.loader-page-v7.p5{animation-duration:.48s!important;animation-delay:.23s!important}

#result,#randomResult{
  isolation:isolate;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}
#result.no-flash-swap,#randomResult.no-flash-swap{
  opacity:.985!important;
  filter:none!important;
  transition:none!important;
}
#result.no-flash-enter,#randomResult.no-flash-enter{
  animation:noFlashResultEnter .24s ease-out both!important;
}
@keyframes noFlashResultEnter{
  from{opacity:.88;transform:translateY(2px)}
  to{opacity:1;transform:none}
}

/* Prevent bright screen blending on the newly inserted cover layer. */
.cover-slot:after,
.book-cover-slot:after,
.detail-cover-slot:after{
  mix-blend-mode:normal!important;
}


/* ============================================================
   v32 Community & Reviews
   ============================================================ */
.community-account-btn{border:1px solid rgba(102,77,54,.22);background:rgba(255,250,242,.78);color:#5d4938;border-radius:999px;padding:9px 14px;font:600 12px/1 inherit;white-space:nowrap;cursor:pointer;transition:.2s}.community-account-btn:hover,.community-account-btn.logged-in{background:#6f543d;color:#fff;border-color:#6f543d}.community-account-menu{position:fixed;z-index:10050;min-width:190px;padding:14px;background:#fffaf2;border:1px solid rgba(86,61,41,.17);border-radius:16px;box-shadow:0 18px 50px rgba(45,31,20,.18);display:grid;gap:7px}.community-account-menu b{font-size:14px;color:#4f3c2f}.community-account-menu small{font-size:11px;color:#968171;margin-bottom:7px}.community-account-menu button{border:0;background:#f2e9dd;border-radius:10px;padding:9px 10px;text-align:left;color:#5a4434;cursor:pointer}.community-account-menu button.danger{color:#9a493f;background:#f7e5e1}
.community-section{max-width:1240px;margin:90px auto 110px;padding:0 28px}.community-head{display:flex;justify-content:space-between;gap:32px;align-items:flex-end;margin-bottom:28px}.community-head h2{font-family:Georgia,'Noto Serif KR',serif;font-size:34px;margin:6px 0 10px;color:#46362a}.community-head>div>p:last-child{color:#8b7766;line-height:1.7;margin:0}.community-write-btn,.community-submit-btn{border:0;background:#6c523d;color:#fff;border-radius:13px;padding:13px 19px;font-weight:700;cursor:pointer;box-shadow:0 8px 22px rgba(77,54,37,.14)}.community-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.community-stat{background:linear-gradient(145deg,#fffaf3,#f6ede1);border:1px solid rgba(105,78,54,.11);border-radius:18px;padding:18px 20px;display:flex;justify-content:space-between;align-items:center}.community-stat span{font-size:12px;color:#927c69}.community-stat b{font-family:Georgia,serif;font-size:24px;color:#5c4635}.community-toolbar{display:flex;gap:10px;margin:18px 0}.community-search{flex:1;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid rgba(86,67,50,.16);border-radius:14px;padding:0 14px}.community-search input{border:0;outline:0;width:100%;padding:13px 0;background:transparent;color:#4f3d31}.community-toolbar select{border:1px solid rgba(86,67,50,.16);background:#fff;border-radius:14px;padding:0 14px;color:#5e4938}.community-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:18px;align-items:start}.community-popular{position:sticky;top:94px;background:#f7efe4;border:1px solid rgba(99,74,53,.10);border-radius:20px;padding:16px}.community-side-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.community-side-title b{font-size:14px;color:#513e30}.community-side-title span{font-size:10px;letter-spacing:.1em;color:#9b806a}.community-popular>div:last-child{display:grid;gap:7px}.community-popular button{width:100%;border:0;background:rgba(255,255,255,.65);border-radius:12px;padding:10px;display:grid;grid-template-columns:28px 1fr;gap:8px;text-align:left;cursor:pointer;color:#4e3c30}.community-popular button>span{font:700 18px Georgia,serif;color:#b28a68}.community-popular button b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.community-popular button small{display:block;margin-top:4px;color:#9a806d;font-size:10px}.community-side-empty{font-size:12px;color:#9a8574;line-height:1.6;padding:10px}.community-feed{display:grid;gap:12px}.community-review-card{background:#fff;border:1px solid rgba(91,69,50,.12);border-radius:20px;padding:16px;display:grid;grid-template-columns:88px minmax(0,1fr);gap:16px;box-shadow:0 10px 35px rgba(55,40,27,.045)}.community-review-card.detail-version{grid-template-columns:1fr;border-radius:16px;box-shadow:none;background:#fffaf5}.community-review-cover{border:0;padding:0;background:none;cursor:pointer}.community-card-cover{width:88px;aspect-ratio:2/3;border-radius:10px;overflow:hidden;background:#eee4d8;position:relative}.community-review-top{display:flex;justify-content:space-between;gap:12px}.community-book-link{border:0;background:none;padding:0;color:#4b382c;font-weight:800;font-size:15px;cursor:pointer;text-align:left}.community-review-top p{font-size:11px;color:#9a8370;margin:3px 0 0}.community-review-top>span{font-size:10px;color:#ae9b8c;white-space:nowrap}.community-review-meta{display:flex;align-items:center;gap:7px;margin:9px 0}.community-review-meta>b{font-size:12px;color:#6c5440}.community-stars{display:inline-flex;gap:1px}.community-stars i{font-style:normal;color:#d8c9ba;font-size:13px}.community-stars i.on{color:#d79b4b}.community-stars.compact i{font-size:11px}.spoiler-chip{font-size:9px;padding:3px 6px;border-radius:999px;background:#3f3940;color:#fff}.community-review-text{font-size:13px;line-height:1.75;color:#655244;white-space:pre-wrap;word-break:break-word;cursor:default}.community-review-text.spoiler-blur{filter:blur(6px);user-select:none;cursor:pointer;background:rgba(45,38,38,.05);border-radius:8px}.community-review-author{display:flex;align-items:center;gap:7px;margin-top:13px}.community-avatar{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#ead9c6;color:#6d5039;font-weight:800;font-size:11px}.community-review-author b{font-size:11px;color:#6c5543}.community-review-author em{font-style:normal;font-size:9px;color:#956f54;background:#f4e7d9;padding:3px 6px;border-radius:999px}.community-review-actions{display:flex;gap:7px;margin-top:12px;border-top:1px solid rgba(95,73,54,.08);padding-top:10px}.community-review-actions button{border:0;background:#f8f2eb;color:#7f6957;border-radius:10px;padding:7px 10px;font-size:11px;cursor:pointer}.community-review-actions button.active{color:#b34d50;background:#fbeaec}.community-empty{display:none;text-align:center;background:#f7efe5;border:1px dashed rgba(91,70,51,.19);border-radius:20px;padding:52px 20px;color:#6e5948}.community-empty p{font-size:12px;color:#9a8372}.community-empty button{border:0;background:#6b513c;color:white;padding:10px 14px;border-radius:11px;cursor:pointer}
.community-modal-shell{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;padding:20px}.community-modal-backdrop{position:absolute;inset:0;background:rgba(33,25,20,.48);backdrop-filter:blur(8px)}.community-auth-panel,.community-review-editor,.community-comments-panel{position:relative;z-index:1;width:min(520px,calc(100vw - 30px));max-height:88vh;overflow:auto;background:#fffaf3;border:1px solid rgba(105,78,54,.15);border-radius:24px;padding:28px;box-shadow:0 30px 90px rgba(31,22,15,.24)}.community-review-editor{width:min(640px,calc(100vw - 30px))}.community-comments-panel{width:min(620px,calc(100vw - 30px))}.community-modal-close{position:absolute;right:16px;top:14px;border:0;background:#efe4d8;width:32px;height:32px;border-radius:50%;font-size:19px;color:#5c4737;cursor:pointer}.community-auth-panel h2,.community-review-editor h2,.community-comments-panel h2{font-family:Georgia,'Noto Serif KR',serif;color:#49372b;margin:6px 0 12px}.community-auth-desc{font-size:12px;line-height:1.65;color:#8c7563}.community-auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:#f0e6da;border-radius:12px;padding:4px;margin:18px 0}.community-auth-tabs button{border:0;background:transparent;padding:9px;border-radius:9px;color:#8b7664;cursor:pointer}.community-auth-tabs button.active{background:#fff;color:#5b4433;font-weight:700;box-shadow:0 2px 7px rgba(70,49,33,.08)}.community-auth-panel label,.community-review-editor label{display:grid;gap:7px;margin:13px 0}.community-auth-panel label>span,.community-review-editor label>span,.community-rating-input>span{font-size:11px;font-weight:700;color:#6f5947}.community-auth-panel input,.community-review-editor select,.community-review-editor textarea{width:100%;box-sizing:border-box;border:1px solid rgba(91,70,52,.18);border-radius:12px;padding:12px;background:#fff;color:#4f3d31;outline:0}.community-review-editor textarea{resize:vertical;line-height:1.65}.community-form-status{min-height:18px;color:#ad4e47;font-size:11px}.community-local-note{display:block;margin-top:12px;color:#a08c7b;line-height:1.5}.community-rating-input{display:flex;align-items:center;gap:12px;margin:13px 0}.community-rating-input>div{display:flex;gap:3px}.community-rating-input button{border:0;background:none;padding:1px;color:#d4c6b8;font-size:25px;cursor:pointer}.community-rating-input button.on{color:#d89943}.community-rating-input>b{font:700 15px Georgia;color:#6b513e}.community-spoiler-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:8px!important}.community-spoiler-check input{width:auto}.community-editor-actions{display:flex;gap:8px;margin-top:16px}.community-delete-btn{border:0;background:#f6e5e3;color:#a04943;border-radius:13px;padding:13px 16px;cursor:pointer}.community-comment-review{padding:14px;border-radius:14px;background:#f6eee4;margin:12px 0}.community-comment-review p{font-size:12px;line-height:1.6;color:#665243}.community-comment-review small{color:#9a826f}.community-comment-list{display:grid;gap:8px;max-height:330px;overflow:auto}.community-comment-list article{padding:11px 12px;border:1px solid rgba(88,66,49,.09);border-radius:12px;background:#fff}.community-comment-list article b{font-size:11px;color:#5a4434}.community-comment-list article span{float:right;font-size:9px;color:#aa9889}.community-comment-list article p{font-size:12px;line-height:1.55;color:#715d4d;margin:7px 0 0;white-space:pre-wrap}.community-no-comments{text-align:center;color:#a18c7b;font-size:12px;padding:30px}.community-comment-write{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:14px}.community-comment-write textarea{border:1px solid rgba(93,70,52,.18);border-radius:12px;padding:10px;resize:none;outline:0}.community-comment-write button{border:0;background:#6c513c;color:#fff;border-radius:12px;padding:0 15px;cursor:pointer}
.detail-inline-rating{width:100%;display:flex;align-items:center;gap:9px;border:1px solid rgba(93,69,51,.11);background:#faf3ea;border-radius:12px;padding:10px 12px;margin:10px 0 18px;color:#5d4737;cursor:pointer;text-align:left}.detail-inline-rating b{font-size:11px}.detail-inline-rating em{margin-left:auto;font-style:normal;font-size:10px;color:#9b806b}.detail-review-panel{padding-bottom:20px}.detail-review-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:16px}.detail-review-head h2{margin:4px 0 0}.detail-review-head>button,.detail-review-empty button{border:0;background:#6c523d;color:#fff;border-radius:11px;padding:10px 13px;cursor:pointer;white-space:nowrap}.detail-rating-summary{display:grid;grid-template-columns:150px 1fr;gap:18px;border:1px solid rgba(94,71,52,.10);border-radius:16px;padding:16px;background:#fbf5ed;margin-bottom:15px}.detail-rating-big{text-align:center;display:grid;place-items:center;align-content:center}.detail-rating-big>b{font:700 36px Georgia,serif;color:#5b4433}.detail-rating-big>span:last-child{font-size:10px;color:#9a816e;margin-top:5px}.detail-rating-bars{display:grid;gap:6px}.detail-rating-bars>div{display:grid;grid-template-columns:22px 1fr 18px;gap:6px;align-items:center;font-size:9px;color:#9b8574}.detail-rating-bars i{height:6px;border-radius:99px;background:#eadfd4;overflow:hidden}.detail-rating-bars em{display:block;height:100%;background:#d89a48;border-radius:99px}.detail-review-list{display:grid;gap:9px}.detail-review-empty{text-align:center;padding:34px;background:#f7efe5;border-radius:15px;color:#6d5746}.detail-review-empty p{font-size:11px;color:#9b8573}
body.theme-dark .community-section h2,body.theme-dark .community-book-link,body.theme-dark .community-review-author b,body.theme-dark .community-head h2{color:#f2e3d4}body.theme-dark .community-review-card,body.theme-dark .community-stat,body.theme-dark .community-search,body.theme-dark .community-toolbar select,body.theme-dark .community-auth-panel,body.theme-dark .community-review-editor,body.theme-dark .community-comments-panel{background:#26211e;border-color:rgba(255,255,255,.08);color:#eee}body.theme-dark .community-review-text,body.theme-dark .community-review-top p,body.theme-dark .community-head>div>p:last-child{color:#bfae9f}body.theme-dark .community-popular,body.theme-dark .community-empty,body.theme-dark .detail-rating-summary,body.theme-dark .detail-inline-rating{background:#2d2723;border-color:rgba(255,255,255,.08)}body.theme-dark .community-search input,body.theme-dark .community-toolbar select,body.theme-dark .community-review-editor select,body.theme-dark .community-review-editor textarea,body.theme-dark .community-auth-panel input{color:#eee;background:#312a26}
@media(max-width:900px){.community-section{padding:0 18px;margin-top:65px}.community-head{align-items:flex-start;flex-direction:column}.community-head h2{font-size:28px}.community-layout{grid-template-columns:1fr}.community-popular{position:static}.community-popular>div:last-child{grid-template-columns:repeat(2,minmax(0,1fr))}.community-overview{grid-template-columns:1fr 1fr 1fr}.detail-rating-summary{grid-template-columns:120px 1fr}}
@media(max-width:620px){.community-account-btn{padding:8px 10px;font-size:10px}.community-head{gap:16px}.community-write-btn{width:100%}.community-overview{grid-template-columns:1fr}.community-toolbar{display:grid;grid-template-columns:1fr}.community-toolbar select{height:43px}.community-popular>div:last-child{grid-template-columns:1fr}.community-review-card{grid-template-columns:66px minmax(0,1fr);padding:12px;gap:11px}.community-card-cover{width:66px}.community-review-top{display:block}.community-review-top>span{display:block;margin-top:3px}.community-review-text{font-size:12px}.community-auth-panel,.community-review-editor,.community-comments-panel{padding:22px 16px;border-radius:20px}.detail-review-head{align-items:flex-start;flex-direction:column}.detail-review-head>button{width:100%}.detail-rating-summary{grid-template-columns:1fr}.community-comment-write{grid-template-columns:1fr}.community-comment-write button{padding:10px}.community-review-actions{flex-wrap:wrap}}


/* ============================================================
   v33 — Community is a separate in-site screen
   ============================================================ */
/* On the normal bookshelf screen the community no longer lengthens the page. */
body:not(.community-view) #community {
  display: none !important;
}

/* Community route behaves like a dedicated page while keeping the same header. */
body.community-view .hero,
body.community-view main > section:not(#community),
body.community-view #random,
body.community-view footer {
  display: none !important;
}

body.community-view main {
  display: block;
  min-height: calc(100vh - 90px);
}

body.community-view #community {
  display: block !important;
  max-width: 1240px;
  min-height: calc(100vh - 140px);
  margin: 0 auto;
  padding: 42px 28px 90px;
}

body.community-view header {
  position: sticky;
  top: 0;
  z-index: 5000;
}

.community-page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(92,68,48,.10);
}

.community-page-topbar > span {
  font-size: 10px;
  letter-spacing: .18em;
  color: #a08670;
}

.community-back-home {
  border: 1px solid rgba(99,73,52,.14);
  background: #fffaf3;
  color: #674f3d;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.community-back-home:hover {
  transform: translateY(-1px);
  background: #f7eddf;
}

/* ============================================================
   v33 — Lighter review/rating surfaces
   ============================================================ */
.detail-inline-rating {
  border-color: rgba(133,94,56,.14) !important;
  background: linear-gradient(135deg,#fffdf8 0%,#fbf1e3 100%) !important;
  box-shadow: 0 7px 20px rgba(91,61,35,.055);
}

.detail-rating-summary {
  border-color: rgba(133,94,56,.13) !important;
  background: linear-gradient(145deg,#fffdf9 0%,#fbf3e9 58%,#f7ead9 100%) !important;
  box-shadow: 0 10px 28px rgba(92,63,38,.05);
}

.detail-rating-big > b {
  color: #6a4d34 !important;
}

.detail-rating-big > span:last-child,
.detail-rating-bars > div {
  color: #967a62 !important;
}

.detail-rating-bars i {
  background: #eee1d3 !important;
}

.detail-rating-bars em {
  background: linear-gradient(90deg,#e7ad58,#cf8737) !important;
}

/* Keep review rating cards warm and readable even in dark theme. */
body.theme-dark .detail-rating-summary,
body.theme-dark .detail-inline-rating {
  background: linear-gradient(145deg,#f4e7d6 0%,#ead7c1 100%) !important;
  border-color: rgba(255,255,255,.08) !important;
  color: #513c2d !important;
}

body.theme-dark .detail-rating-summary .detail-rating-big > b,
body.theme-dark .detail-inline-rating b {
  color: #513c2d !important;
}

body.theme-dark .detail-rating-summary .detail-rating-big > span:last-child,
body.theme-dark .detail-rating-bars > div,
body.theme-dark .detail-inline-rating em {
  color: #80644e !important;
}

body.theme-dark .detail-rating-bars i {
  background: #dbc6af !important;
}

body.theme-dark .community-page-topbar {
  border-bottom-color: rgba(255,255,255,.08);
}

body.theme-dark .community-back-home {
  background: #332a24;
  border-color: rgba(255,255,255,.09);
  color: #eedccb;
}

@media(max-width:900px){
  body.community-view #community { padding: 28px 18px 70px; }
}

@media(max-width:620px){
  body.community-view #community { padding: 22px 14px 60px; }
  .community-page-topbar { margin-bottom: 20px; }
  .community-back-home { padding: 8px 11px; font-size: 10px; }
}


/* ============================================================
   v34 — Book search in Community + Reading Journal
   ============================================================ */
.section-book-finder{
  position:relative;
  margin:18px 0 20px;
  padding:17px;
  border:1px solid rgba(101,76,55,.12);
  border-radius:19px;
  background:linear-gradient(145deg,#fffaf4,#f7eee3);
  box-shadow:0 10px 30px rgba(71,50,34,.035);
}
.section-book-finder-copy{display:flex;align-items:center;gap:11px;margin-bottom:12px}
.section-book-finder-copy>span{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:#ead9c6;color:#6a4e38;font-weight:800}
.section-book-finder-copy b{display:block;font-size:13px;color:#503c2e}
.section-book-finder-copy small{display:block;margin-top:3px;color:#927b68;font-size:10px;line-height:1.45}
.section-book-search-input{display:flex;align-items:center;background:#fff;border:1px solid rgba(91,67,48,.15);border-radius:13px;overflow:hidden;box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.section-book-search-input input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#4d392c;padding:13px 14px;font:inherit;font-size:13px}
.section-book-search-input button{width:42px;align-self:stretch;border:0;background:transparent;color:#a18b79;font-size:18px;cursor:pointer}
.section-book-search-input button:hover{background:#f6eee5;color:#684f3d}
.section-book-search-count{min-height:15px;margin:7px 3px 0;color:#9b8370;font-size:10px}
.section-book-search-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:2px}
.section-book-search-results:empty{display:none}
.section-book-result-card{border:1px solid rgba(95,71,51,.10);background:rgba(255,255,255,.78);border-radius:13px;padding:8px;display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;text-align:left;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;color:inherit}
.section-book-result-card:hover{transform:translateY(-1px);border-color:rgba(116,82,55,.24);box-shadow:0 8px 20px rgba(65,46,31,.07)}
.section-book-result-cover{display:block;width:42px;aspect-ratio:2/3;border-radius:6px;overflow:hidden;background:#e9ded1;position:relative}
.section-book-result-copy{display:block;min-width:0}
.section-book-result-copy b{display:block;color:#503a2b;font-size:12px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.section-book-result-copy small{display:block;margin-top:3px;color:#967e69;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.section-book-result-copy em{display:block;margin-top:6px;color:#8a6346;font-style:normal;font-size:9px;font-weight:700}
.community-book-filter-chip{margin-top:10px;padding:9px 11px;border-radius:11px;background:#efe0ce;display:flex;justify-content:space-between;align-items:center;gap:10px;color:#684e39;font-size:11px}
.community-book-filter-chip[hidden]{display:none!important}
.community-book-filter-chip button{border:0;background:#fff8ef;color:#765840;border-radius:8px;padding:6px 9px;font-size:9px;cursor:pointer}
.reading-book-finder{margin-top:2px;margin-bottom:22px}

body.theme-dark .section-book-finder{background:linear-gradient(145deg,#302923,#28221e);border-color:rgba(255,255,255,.08)}
body.theme-dark .section-book-finder-copy>span{background:#46392f;color:#e8cfb5}
body.theme-dark .section-book-finder-copy b,body.theme-dark .section-book-result-copy b{color:#f0dfcf}
body.theme-dark .section-book-finder-copy small,body.theme-dark .section-book-search-count,body.theme-dark .section-book-result-copy small{color:#b59d89}
body.theme-dark .section-book-search-input,body.theme-dark .section-book-result-card{background:#26211e;border-color:rgba(255,255,255,.08)}
body.theme-dark .section-book-search-input input{color:#f1e5d9}
body.theme-dark .section-book-search-input button:hover{background:#352e29;color:#e7d1bb}
body.theme-dark .section-book-result-copy em{color:#d4ad87}
body.theme-dark .community-book-filter-chip{background:#3a3028;color:#ead4be}
body.theme-dark .community-book-filter-chip button{background:#4a3d33;color:#ead4be}

@media(max-width:720px){
  .section-book-search-results{grid-template-columns:1fr}
  .section-book-finder{padding:13px;border-radius:16px}
  .section-book-finder-copy small{font-size:9px}
}


/* ============================================================
   v35 — community boards
   ============================================================ */
.community-head-v35{margin-bottom:20px}
.community-board-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 16px}
.community-board-tabs>button{border:1px solid rgba(92,69,48,.12);background:#f8f0e6;border-radius:17px;padding:15px 16px;display:grid;grid-template-columns:34px 1fr;column-gap:10px;align-items:center;text-align:left;cursor:pointer;color:#68513e;transition:.2s ease}
.community-board-tabs>button>span{grid-row:1/3;width:34px;height:34px;border-radius:11px;background:#ead8c2;display:grid;place-items:center;font:700 16px Georgia,serif}
.community-board-tabs>button b{font-size:13px}.community-board-tabs>button small{font-size:9px;color:#9b826c;margin-top:2px}
.community-board-tabs>button:hover{transform:translateY(-1px);background:#fff8ef}.community-board-tabs>button.active{background:#624b38;color:#fff;border-color:#624b38;box-shadow:0 10px 26px rgba(69,48,31,.14)}
.community-board-tabs>button.active>span{background:rgba(255,255,255,.15);color:#fff}.community-board-tabs>button.active small{color:#e3d4c7}
.community-hub-search{background:linear-gradient(145deg,#fffaf3,#f1e4d4);border:1px solid rgba(94,69,47,.12);border-radius:21px;padding:16px;margin-bottom:22px;box-shadow:0 9px 30px rgba(67,48,31,.045)}
.community-hub-search-copy{display:flex;align-items:center;gap:11px;margin-bottom:10px}.community-hub-search-copy>span{width:35px;height:35px;display:grid;place-items:center;border-radius:11px;background:#6b513e;color:#fff;font-size:17px}.community-hub-search-copy b{display:block;font-size:13px;color:#4f3c2e}.community-hub-search-copy small{display:block;margin-top:2px;color:#927965;font-size:10px}
.community-hub-search>label{height:50px;background:#fff;border:1px solid rgba(80,59,42,.14);border-radius:14px;display:flex;align-items:center;padding:0 13px;gap:9px;box-shadow:0 5px 18px rgba(55,40,26,.04)}.community-hub-search>label>span{font-size:19px;color:#8c725c}.community-hub-search>label input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#4e3b2f;font-size:13px}.community-hub-search>label button{border:0;background:#eee1d2;color:#775f4a;width:27px;height:27px;border-radius:50%;cursor:pointer}
.community-hub-search-count{font-size:10px;color:#8c725f;margin:8px 2px 0}.community-hub-search-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}.community-hub-search-results:empty{display:none}.community-hub-search-results .section-book-result-card{margin:0}
.community-board-panel{display:none}.community-board-panel.active{display:block;animation:communityPanelIn .22s ease both}@keyframes communityPanelIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.community-panel-title-row{display:flex;justify-content:space-between;align-items:end;gap:18px;margin:6px 0 16px}.community-panel-title-row>div>span{font-size:9px;letter-spacing:.14em;color:#a4866e;font-weight:800}.community-panel-title-row h3{font:700 27px Georgia,'Noto Serif KR',serif;color:#49372b;margin:4px 0 6px}.community-panel-title-row p{margin:0;color:#917a67;font-size:11px;line-height:1.6}
.community-board-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:14px 0}.community-board-toolbar>span{font-size:11px;color:#8e7764}.community-board-toolbar select{border:1px solid rgba(86,67,50,.14);background:#fff;border-radius:12px;height:38px;padding:0 12px;color:#614b39}
.community-board-feed{display:grid;gap:11px}.community-text-post{background:#fff;border:1px solid rgba(91,69,50,.11);border-radius:18px;padding:17px 18px;box-shadow:0 8px 30px rgba(56,40,28,.04)}.community-text-post-top{display:flex;justify-content:space-between;gap:14px}.community-text-post-top span{font-size:9px;color:#ad8b70;letter-spacing:.08em}.community-text-post h4{font-size:16px;color:#49372c;margin:4px 0 0}.community-text-post time{font-size:9px;color:#ae9b8d;white-space:nowrap}.community-text-post>p{font-size:12px;line-height:1.75;color:#685446;white-space:pre-wrap;word-break:break-word;margin:13px 0 2px}
.community-text-editor label input,.recommendation-editor label input{width:100%;box-sizing:border-box;border:1px solid rgba(83,62,45,.16);background:#fff;border-radius:12px;padding:11px 12px;outline:0;color:#513e30}.community-text-editor label{display:block;margin-top:12px}.community-text-editor label>span,.recommendation-editor label>span{display:block;font-size:10px;color:#8d725d;margin-bottom:5px;font-weight:700}
.community-recommend-note{display:flex;gap:11px;align-items:center;background:#f7eee3;border:1px solid rgba(95,71,50,.10);border-radius:16px;padding:13px 15px;margin-bottom:12px}.community-recommend-note>span{width:34px;height:34px;border-radius:11px;background:#e5d2bb;color:#76583e;display:grid;place-items:center}.community-recommend-note b{display:block;font-size:12px;color:#554030}.community-recommend-note small{display:block;margin-top:3px;font-size:9px;color:#947d6a}
.community-recommend-card{background:#fff;border:1px solid rgba(91,69,50,.11);border-radius:20px;padding:15px;display:grid;grid-template-columns:92px minmax(0,1fr);gap:15px;box-shadow:0 9px 30px rgba(56,40,28,.04)}.community-recommend-cover-wrap{position:relative}.community-recommend-cover-wrap>span{display:block;text-align:center;font-size:8px;color:#a58a73;margin-top:5px}.community-recommend-cover{width:92px;aspect-ratio:2/3;border-radius:10px;overflow:hidden;background:#eee4d8;position:relative}.community-recommend-body h4{font-size:15px;color:#49372c;margin:0}.community-recommend-reason{font-size:12px;line-height:1.75;color:#665244;white-space:pre-wrap;word-break:break-word;margin:12px 0 0}
.community-custom-book-cover{width:92px;aspect-ratio:2/3;border-radius:10px;background:linear-gradient(160deg,#745943,#c7a98b);color:#fff;padding:10px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.15)}.community-custom-book-cover>span{font:700 30px Georgia,serif;opacity:.26;margin-bottom:auto}.community-custom-book-cover b{font-size:10px;line-height:1.3;word-break:keep-all}.community-custom-book-cover small{font-size:8px;opacity:.78;margin-top:4px}
.recommend-picker-box{background:#f8f0e6;border:1px solid rgba(91,69,50,.1);border-radius:15px;padding:13px;margin:13px 0}.recommend-picker-box>b{display:block;font-size:11px;color:#523e30}.recommend-picker-box>small{font-size:9px;color:#927a66}.recommend-picker-search{height:41px;background:#fff;border:1px solid rgba(90,67,49,.13);border-radius:11px;margin-top:9px;display:flex;align-items:center;gap:7px;padding:0 10px}.recommend-picker-search input{border:0!important;padding:0!important;flex:1;background:transparent!important}.recommend-picker-results{display:grid;gap:6px;margin-top:7px}.recommend-picker-results>button{border:0;background:#fff;border-radius:11px;padding:7px;display:grid;grid-template-columns:36px 1fr;gap:9px;align-items:center;text-align:left;cursor:pointer}.recommend-picker-cover{width:36px;aspect-ratio:2/3;border-radius:5px;overflow:hidden;background:#e9dfd4;position:relative}.recommend-picker-results b{display:block;font-size:10px;color:#503c2f}.recommend-picker-results small{display:block;font-size:8px;color:#99806c;margin-top:2px}.recommend-divider{display:flex;align-items:center;gap:9px;color:#a28a76;font-size:9px;margin:11px 0}.recommend-divider:before,.recommend-divider:after{content:'';height:1px;background:rgba(88,65,47,.1);flex:1}.recommend-selected-chip{background:#e9f0e4;border-radius:10px;padding:8px 10px;color:#587049;font-size:9px;display:flex;justify-content:space-between;gap:8px}.recommend-selected-chip button{border:0;background:none;color:#6e805e;font-size:8px;cursor:pointer}.community-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}

body.theme-dark .community-board-tabs>button{background:#2d2722;border-color:rgba(255,255,255,.07);color:#eadccc}body.theme-dark .community-board-tabs>button small{color:#aa9888}body.theme-dark .community-board-tabs>button.active{background:#725840;color:#fff}body.theme-dark .community-hub-search,body.theme-dark .community-recommend-note,body.theme-dark .recommend-picker-box{background:#2d2722;border-color:rgba(255,255,255,.07)}body.theme-dark .community-hub-search-copy b,body.theme-dark .community-panel-title-row h3,body.theme-dark .community-text-post h4,body.theme-dark .community-recommend-body h4,body.theme-dark .community-recommend-note b{color:#f2e1d1}body.theme-dark .community-hub-search-copy small,body.theme-dark .community-panel-title-row p,body.theme-dark .community-text-post>p,body.theme-dark .community-recommend-reason,body.theme-dark .community-recommend-note small{color:#b7a493}body.theme-dark .community-hub-search>label,body.theme-dark .community-text-post,body.theme-dark .community-recommend-card,body.theme-dark .community-board-toolbar select,body.theme-dark .recommend-picker-results>button{background:#26211e;border-color:rgba(255,255,255,.07)}body.theme-dark .community-hub-search>label input,body.theme-dark .community-board-toolbar select,body.theme-dark .community-text-editor label input,body.theme-dark .recommendation-editor label input{color:#eee;background:#312a26}

@media(max-width:760px){.community-board-tabs{grid-template-columns:1fr}.community-board-tabs>button{grid-template-columns:34px 1fr;padding:11px 13px}.community-hub-search-results{grid-template-columns:1fr}.community-panel-title-row{align-items:flex-start;flex-direction:column}.community-panel-title-row .community-write-btn{width:100%}.community-recommend-card{grid-template-columns:70px minmax(0,1fr)}.community-recommend-cover,.community-custom-book-cover{width:70px}.community-editor-grid{grid-template-columns:1fr}.community-hub-search{padding:13px}.community-hub-search-copy small{line-height:1.35}}


/* ============================================================
   v36 — MOBILE LAYOUT FIX
   PC/tablet layout above 620px is intentionally unchanged.
   ============================================================ */
@media (max-width:620px){
  html,
  body{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }

  body{min-width:0!important}
  *,*::before,*::after{box-sizing:border-box!important}
  img,svg,video,canvas{max-width:100%!important}
  input,textarea,select{max-width:100%!important;min-width:0!important}

  /* Fixed top ribbon + header: fit Galaxy/iPhone widths without clipping. */
  .update-ribbon{
    height:32px!important;
    padding:7px 8px!important;
    font-size:11px!important;
    line-height:18px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  header,
  body.theme-light header,
  body.theme-dark header{
    width:100%!important;
    max-width:100vw!important;
    height:74px!important;
    top:32px!important;
    padding:0 10px!important;
    gap:6px!important;
    overflow:hidden!important;
  }

  header .logo{
    flex:1 1 auto!important;
    min-width:0!important;
    width:auto!important;
    max-width:none!important;
    overflow:hidden!important;
    font-size:16px!important;
    line-height:1.15!important;
  }
  header .logo b{
    display:inline-block!important;
    max-width:100%!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    font-size:18px!important;
  }
  header .logo small{
    display:block!important;
    max-width:145px!important;
    margin:5px 0 0 22px!important;
    font-size:8px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .header-tools{
    flex:0 0 auto!important;
    min-width:0!important;
    max-width:170px!important;
    gap:4px!important;
  }
  .header-icon-btn{
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    padding:0!important;
    margin:0!important;
    font-size:16px!important;
  }
  .community-account-btn{
    flex:0 1 auto!important;
    max-width:58px!important;
    padding:7px 8px!important;
    margin:0!important;
    font-size:9px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  /* Hero: enough vertical room for BOTH CTA buttons before mood card begins. */
  .hero{
    width:100%!important;
    height:auto!important;
    min-height:610px!important;
    padding:106px 14px 78px!important;
    display:flex!important;
    align-items:flex-start!important;
    justify-content:center!important;
    overflow:hidden!important;
  }
  .hero>div{
    width:100%!important;
    max-width:100%!important;
    padding-top:48px!important;
    margin:0 auto!important;
  }
  .hero .eyebrow{
    font-size:9px!important;
    letter-spacing:1.4px!important;
    margin:0 0 8px!important;
  }
  .hero h1{
    font-size:31px!important;
    line-height:1.34!important;
    margin:7px 0 10px!important;
    word-break:keep-all!important;
    overflow-wrap:break-word!important;
  }
  .hero p{
    max-width:300px!important;
    margin:0 auto 18px!important;
    font-size:13px!important;
    line-height:1.65!important;
  }
  .hero button{
    display:block!important;
    width:min(100%,300px)!important;
    max-width:300px!important;
    min-width:0!important;
    min-height:52px!important;
    margin:10px auto!important;
    padding:14px 16px!important;
    border-radius:14px!important;
    font-size:15px!important;
  }

  /* Main page stays inside viewport; mood card no longer collides with hero CTAs. */
  main{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0 12px!important;
  }
  main>section{max-width:100%!important;min-width:0!important}

  .moods{
    width:100%!important;
    max-width:100%!important;
    margin:-34px 0 0!important;
    padding:18px 12px 22px!important;
    border-radius:18px!important;
  }
  .moods .head{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:10px!important;
  }
  .moods .head>div{min-width:0!important}
  .moods .head h2{
    font-size:20px!important;
    line-height:1.3!important;
    margin:0!important;
  }
  .moods .head p{
    font-size:12px!important;
    line-height:1.55!important;
    margin:6px 0 0!important;
  }
  .moods .head>button{
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:12px!important;
  }

  #mood .grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  #mood .grid button{
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:112px!important;
    margin:0!important;
    padding:14px 8px!important;
    font-size:12px!important;
    line-height:1.35!important;
    word-break:keep-all!important;
    overflow-wrap:anywhere!important;
  }
  #mood .grid button span{
    font-size:12px!important;
    line-height:1.35!important;
  }

  /* Other home sections */
  .cards{
    grid-template-columns:1fr!important;
    gap:12px!important;
    padding:12px 0 28px!important;
  }
  .cards article{
    width:100%!important;
    min-width:0!important;
    padding:18px 14px!important;
  }
  .card-topline{
    align-items:flex-start!important;
    gap:8px!important;
    flex-wrap:wrap!important;
  }
  .daily-book-body,
  .recommend-wrap-v7,
  #result .recommend-wrap-v7,
  #randomResult .recommend-wrap-v7{
    grid-template-columns:1fr!important;
    gap:18px!important;
    text-align:center!important;
  }
  .recommend-cover-area,
  .daily-book-left{
    width:100%!important;
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
  }
  .recommend-text-area,
  .daily-book-right{min-width:0!important}
  .recommend-actions{
    display:flex!important;
    flex-wrap:wrap!important;
    justify-content:center!important;
    gap:7px!important;
  }
  .recommend-actions button,
  .recommend-actions a{
    flex:1 1 135px!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
  }

  .random{
    width:100%!important;
    max-width:100%!important;
    padding:54px 14px!important;
    overflow:hidden!important;
  }
  .random>div{width:100%!important;max-width:100%!important}
  .random h2{font-size:30px!important;line-height:1.35!important}
  .random div div{max-width:100%!important}

  .reading-notes-section,
  .wishlist-section{
    width:100%!important;
    max-width:100%!important;
    margin:24px 0 44px!important;
    padding:20px 14px!important;
  }
  .reading-notes-head,
  .wishlist-head{
    flex-direction:column!important;
    align-items:stretch!important;
    gap:12px!important;
  }
  .new-reading-note-btn{width:100%!important;margin:0!important}
  .reading-notes-grid,
  .wishlist-grid{grid-template-columns:1fr!important}
  .reading-note-card{
    grid-template-columns:78px minmax(0,1fr)!important;
    gap:12px!important;
    padding:12px!important;
  }
  .reading-note-cover{width:78px!important;height:116px!important}
  .wishlist-card{
    grid-template-columns:78px minmax(0,1fr)!important;
    gap:12px!important;
    padding:12px!important;
  }
  .wishlist-cover{width:78px!important;height:114px!important}

  .section-book-finder,
  .section-book-search-input,
  .section-book-search-results{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .section-book-search-results{grid-template-columns:1fr!important}

  /* Book detail modal: one column and entirely within the phone viewport. */
  .detail-panel,
  .detail-panel-v13{
    width:calc(100vw - 20px)!important;
    max-width:calc(100vw - 20px)!important;
    max-height:calc(100dvh - 20px)!important;
    margin:10px!important;
    grid-template-columns:1fr!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
  .detail-left,
  .detail-right,
  .detail-right-v13{min-width:0!important;width:100%!important}
  .detail-tabs{
    display:flex!important;
    max-width:100%!important;
    overflow-x:auto!important;
    scrollbar-width:none!important;
  }
  .detail-tabs::-webkit-scrollbar{display:none!important}
  .detail-tab-btn{
    flex:0 0 auto!important;
    min-width:max-content!important;
    white-space:nowrap!important;
  }
  .reading-form-row{grid-template-columns:1fr!important}

  /* Community route + modals */
  body.community-view header{top:32px!important}
  body.community-view main{
    width:100%!important;
    max-width:100%!important;
    padding:0!important;
  }
  body.community-view #community,
  .community-section{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:22px 12px 60px!important;
  }
  .community-page-topbar{
    flex-wrap:wrap!important;
    gap:8px!important;
  }
  .community-page-topbar>span{
    max-width:100%!important;
    font-size:8px!important;
    letter-spacing:.1em!important;
  }
  .community-board-tabs{grid-template-columns:1fr!important;gap:7px!important}
  .community-board-tabs>button{width:100%!important;min-width:0!important;margin:0!important}
  .community-hub-search,
  .community-search,
  .community-toolbar,
  .community-layout,
  .community-board-feed,
  .community-feed-wrap{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .community-hub-search-results{grid-template-columns:1fr!important}
  .community-toolbar{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  .community-toolbar select{height:42px!important;width:100%!important}
  .community-overview{grid-template-columns:1fr!important}
  .community-layout{grid-template-columns:1fr!important}
  .community-review-card{
    grid-template-columns:64px minmax(0,1fr)!important;
    gap:10px!important;
    padding:11px!important;
  }
  .community-card-cover{width:64px!important}
  .community-review-top{display:block!important}
  .community-review-top>span{display:block!important;margin-top:4px!important}
  .community-text-post,
  .community-recommend-card{min-width:0!important;max-width:100%!important}
  .community-recommend-card{grid-template-columns:66px minmax(0,1fr)!important}
  .community-recommend-cover,
  .community-custom-book-cover{width:66px!important}

  .modalBox,
  .community-auth-panel,
  .community-review-editor,
  .community-comments-panel{
    width:calc(100vw - 24px)!important;
    max-width:calc(100vw - 24px)!important;
    max-height:90dvh!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    padding-left:16px!important;
    padding-right:16px!important;
  }

  footer{
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:1fr 1fr!important;
    gap:18px!important;
    padding:30px 16px!important;
    overflow:hidden!important;
  }

  #mood,#reading-notes,#wishlist,#random,#themes,#quote{
    scroll-margin-top:118px!important;
  }
}

@media (max-width:380px){
  header{padding-left:8px!important;padding-right:8px!important}
  header .logo b{font-size:17px!important}
  header .logo small{max-width:120px!important;font-size:7px!important}
  .header-tools{gap:3px!important;max-width:158px!important}
  .header-icon-btn{width:30px!important;height:30px!important;min-width:30px!important}
  .community-account-btn{max-width:52px!important;padding:7px 6px!important;font-size:8px!important}
  .hero h1{font-size:29px!important}
  .hero button{max-width:286px!important}
}


/* ============================================================
   v37 — MOBILE COMPACT SPACING
   Only phones (<=620px). Desktop/tablet remains unchanged.
   ============================================================ */
@media (max-width:620px){
  /* Hero: preserve readability but remove excess vertical air. */
  .hero{
    min-height:520px!important;
    padding:92px 14px 46px!important;
  }
  .hero>div{padding-top:24px!important}
  .hero .eyebrow{margin-bottom:5px!important}
  .hero h1{
    margin:4px 0 7px!important;
    line-height:1.26!important;
  }
  .hero p{
    margin-bottom:12px!important;
    line-height:1.5!important;
  }
  .hero button{
    min-height:46px!important;
    margin:7px auto!important;
    padding:11px 14px!important;
  }

  /* Mood chooser: shorter cards and tighter header/grid spacing. */
  .moods{
    margin:-28px 0 0!important;
    padding:14px 10px 16px!important;
  }
  .moods .head{gap:6px!important}
  .moods .head p{margin-top:3px!important;line-height:1.4!important}
  .moods .head>button{padding:10px!important}
  #mood .grid{gap:7px!important}
  #mood .grid button{
    min-height:94px!important;
    padding:10px 7px!important;
  }

  /* Home cards and recommendation areas. */
  .cards{
    gap:9px!important;
    padding:8px 0 18px!important;
  }
  .cards article{padding:14px 12px!important}
  .daily-book-body,
  .recommend-wrap-v7,
  #result .recommend-wrap-v7,
  #randomResult .recommend-wrap-v7{
    gap:12px!important;
  }
  .recommend-actions{gap:5px!important}
  .recommend-actions button,
  .recommend-actions a{
    padding-top:10px!important;
    padding-bottom:10px!important;
  }

  /* Random section no longer consumes a full-screen block. */
  .random{padding:34px 12px!important}
  .random h2{margin-top:0!important;margin-bottom:10px!important}

  /* Reading notes / wishlist. */
  .reading-notes-section,
  .wishlist-section{
    margin:16px 0 28px!important;
    padding:16px 12px!important;
  }
  .reading-notes-head,
  .wishlist-head{gap:8px!important}
  .reading-notes-grid,
  .wishlist-grid{gap:9px!important}

  /* Book detail: reduce internal vertical padding on phones. */
  .detail-left,
  .detail-right,
  .detail-right-v13{padding-top:14px!important;padding-bottom:14px!important}
  .detail-block{margin-top:12px!important;margin-bottom:12px!important}
  .detail-tabs{margin-bottom:10px!important}
  .reading-form{gap:10px!important}

  /* Community page: compact without reducing tap targets too far. */
  body.community-view #community,
  .community-section{
    padding:16px 12px 38px!important;
  }
  .community-page-topbar{gap:5px!important;margin-bottom:10px!important}
  .community-board-tabs{gap:5px!important;margin-bottom:10px!important}
  .community-board-tabs>button{padding-top:10px!important;padding-bottom:10px!important}
  .community-toolbar{gap:7px!important;margin-bottom:10px!important}
  .community-overview{gap:8px!important;margin-bottom:12px!important}
  .community-review-card,
  .community-text-post,
  .community-recommend-card{margin-bottom:8px!important}

  /* Footer. */
  footer{padding:22px 14px!important;gap:12px!important}
}

/* ============================================================
   v40 — MY PAGE + REPORT UI
   ============================================================ */
.v40-mypage-panel{position:relative;width:min(920px,calc(100vw - 34px));max-height:88vh;overflow:auto;background:var(--paper,#fffdf8);border-radius:24px;padding:28px;box-shadow:0 30px 90px rgba(0,0,0,.22)}
.v40-profile-head{display:flex;align-items:center;gap:16px;padding-right:40px}.v40-profile-head h2{margin:2px 0 4px}.v40-profile-head small{opacity:.65}.v40-profile-avatar{display:grid;place-items:center;width:62px;height:62px;min-width:62px;border-radius:50%;background:#222;color:#fff;font-size:26px;font-weight:800}
.v40-profile-edit{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin:22px 0 14px;padding:16px;border:1px solid rgba(0,0,0,.08);border-radius:16px}.v40-profile-edit label{display:grid;gap:6px}.v40-profile-edit input{width:100%;padding:12px 13px;border:1px solid rgba(0,0,0,.14);border-radius:12px;background:transparent}.v40-profile-edit>button{min-height:43px;padding:0 18px;border:0;border-radius:12px;background:#222;color:#fff}.v40-profile-edit .community-form-status{grid-column:1/-1;margin:0}
.v40-my-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0 18px}.v40-my-stats div{text-align:center;padding:14px 8px;border-radius:14px;background:rgba(0,0,0,.035)}.v40-my-stats b{display:block;font-size:22px}.v40-my-stats span{font-size:12px;opacity:.65}
.v40-mypage-tabs{display:flex;gap:8px;border-bottom:1px solid rgba(0,0,0,.09);padding-bottom:10px}.v40-mypage-tabs button{border:0;background:transparent;padding:10px 15px;border-radius:999px;font-weight:700}.v40-mypage-tabs button.active{background:#222;color:#fff}
.v40-mypage-content{display:grid;gap:9px;padding:14px 0}.v40-my-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:14px;border:1px solid rgba(0,0,0,.08);border-radius:15px}.v40-my-row small{opacity:.58}.v40-my-row b{display:block;margin:4px 0}.v40-my-row p{margin:0;line-height:1.5;opacity:.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.v40-row-actions{display:flex;gap:6px}.v40-row-actions button,.v40-logout-wide{border:1px solid rgba(0,0,0,.12);background:transparent;border-radius:10px;padding:9px 12px}.v40-row-actions .danger{color:#b63636}.v40-logout-wide{width:100%;margin-top:4px}.v40-my-empty{text-align:center;padding:36px 10px;opacity:.6}.v40-report-btn{opacity:.62!important}.v40-report-panel select{width:100%;padding:12px;border:1px solid rgba(0,0,0,.14);border-radius:12px;background:transparent}
@media(max-width:620px){.v40-mypage-panel{width:calc(100vw - 18px);max-height:92vh;padding:18px 12px;border-radius:18px}.v40-profile-avatar{width:50px;height:50px;min-width:50px;font-size:20px}.v40-profile-head h2{font-size:20px}.v40-profile-edit{grid-template-columns:1fr;padding:12px;margin:14px 0 10px}.v40-profile-edit .community-form-status{grid-column:auto}.v40-my-stats div{padding:10px 5px}.v40-my-stats b{font-size:18px}.v40-mypage-tabs{overflow-x:auto}.v40-mypage-tabs button{white-space:nowrap}.v40-my-row{grid-template-columns:1fr;gap:9px;padding:12px}.v40-row-actions{justify-content:flex-end}}

/* ============================================================
   v41 ADMIN — desktop + mobile, 기존 레이아웃에는 영향 없음
   ============================================================ */
.v41-admin-mini{font-size:9px;letter-spacing:.08em;padding:3px 6px;border-radius:999px;background:#2f2924;color:#fff;vertical-align:1px;margin-left:4px}.community-account-menu .v41-admin-menu{background:#292521;color:#fff}.v41-admin-panel{position:relative;width:min(980px,calc(100vw - 34px));max-height:88vh;overflow:auto;background:var(--paper,#fffdf8);border-radius:24px;padding:28px;box-shadow:0 30px 90px rgba(0,0,0,.24)}.v41-admin-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-right:42px}.v41-admin-head h2{margin:2px 0 3px}.v41-admin-head small{opacity:.62}.v41-admin-badge{padding:8px 12px;border-radius:999px;background:#27231f;color:#fff;font-size:11px;font-weight:800;letter-spacing:.08em}.v41-admin-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:20px 0 14px}.v41-admin-stats div{text-align:center;padding:15px 8px;border-radius:15px;background:rgba(0,0,0,.04)}.v41-admin-stats b{display:block;font-size:24px}.v41-admin-stats span{font-size:12px;opacity:.62}.v41-admin-tabs{display:flex;gap:8px;border-bottom:1px solid rgba(0,0,0,.09);padding-bottom:10px}.v41-admin-tabs button{border:0;background:transparent;padding:10px 14px;border-radius:999px;font-weight:750;cursor:pointer}.v41-admin-tabs button.active{background:#26221e;color:#fff}.v41-admin-feed{display:grid;gap:10px;padding-top:14px}.v41-report-card{padding:16px;border:1px solid rgba(0,0,0,.09);border-radius:16px;background:rgba(255,255,255,.28)}.v41-report-card.done{opacity:.72}.v41-report-meta{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-bottom:8px}.v41-report-meta>span{font-size:11px;padding:5px 8px;border-radius:999px;background:rgba(0,0,0,.05)}.v41-report-meta .v41-type{font-weight:800;background:#efe5d7}.v41-status{margin-left:auto;font-size:11px}.v41-status.pending{color:#ad641e}.v41-status.actioned{color:#a63131}.v41-report-card h3{margin:5px 0 7px;font-size:16px}.v41-report-card p{margin:0 0 8px;line-height:1.55;opacity:.8;white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.v41-report-card>small{opacity:.55}.v41-admin-actions{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap;margin-top:12px}.v41-admin-actions button{border:1px solid rgba(0,0,0,.12);background:transparent;border-radius:10px;padding:8px 11px;cursor:pointer}.v41-admin-actions .danger{background:#a83f35;color:#fff;border-color:#a83f35}.v41-admin-empty,.v41-admin-loading{text-align:center;padding:44px 10px;opacity:.62}.v41-admin-empty small{font-size:11px}
@media(max-width:620px){.v41-admin-panel{width:calc(100vw - 18px);max-height:92vh;padding:18px 12px;border-radius:18px}.v41-admin-head{padding-right:34px}.v41-admin-head h2{font-size:20px}.v41-admin-badge{display:none}.v41-admin-stats{margin:14px 0 10px}.v41-admin-stats div{padding:10px 4px}.v41-admin-stats b{font-size:19px}.v41-report-card{padding:12px}.v41-status{margin-left:0}.v41-admin-actions{justify-content:stretch}.v41-admin-actions button{flex:1;min-width:92px}}
\n\n/* ============================================================\n   v44 — MOBILE COMMUNITY NAV FIX\n   Desktop remains unchanged. The desktop header nav is hidden on\n   phones, so provide an always-visible Home / Community switcher.\n   ============================================================ */\n.mobile-app-nav{display:none}\n@media (max-width:620px){\n  .mobile-app-nav{\n    position:fixed!important;\n    left:50%!important;\n    bottom:max(10px,env(safe-area-inset-bottom))!important;\n    transform:translateX(-50%)!important;\n    z-index:11000!important;\n    width:min(300px,calc(100vw - 28px))!important;\n    display:grid!important;\n    grid-template-columns:1fr 1fr!important;\n    gap:5px!important;\n    padding:5px!important;\n    border:1px solid rgba(79,58,42,.16)!important;\n    border-radius:18px!important;\n    background:rgba(255,250,243,.94)!important;\n    box-shadow:0 12px 36px rgba(42,29,20,.20)!important;\n    backdrop-filter:blur(14px)!important;\n    -webkit-backdrop-filter:blur(14px)!important;\n  }\n  .mobile-app-nav a{\n    min-width:0!important;\n    min-height:48px!important;\n    display:flex!important;\n    align-items:center!important;\n    justify-content:center!important;\n    gap:7px!important;\n    padding:9px 12px!important;\n    border-radius:13px!important;\n    color:#715b49!important;\n    text-decoration:none!important;\n    font-size:12px!important;\n  }\n  .mobile-app-nav a span{font-size:17px!important;line-height:1!important}\n  .mobile-app-nav a b{font-size:12px!important;white-space:nowrap!important}\n  body:not(.community-view) .mobile-app-nav a[data-mobile-app-nav="home"],\n  body.community-view .mobile-app-nav a[data-mobile-app-nav="community"]{\n    background:#6c523d!important;\n    color:#fff!important;\n  }\n  body{padding-bottom:74px!important}\n  body.community-view #community{padding-bottom:94px!important}\n  body.theme-dark .mobile-app-nav{background:rgba(42,31,24,.95)!important;border-color:rgba(255,255,255,.10)!important}\n  body.theme-dark .mobile-app-nav a{color:#d8c2ad!important}\n}\n
/* ============================================================
   v45 — header community + weekly popular books on home
   ============================================================ */
.header-community-btn{height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 12px;border:1px solid rgba(102,77,54,.22);border-radius:999px;background:rgba(255,250,242,.78);color:#5d4938;text-decoration:none;font-size:11px;font-weight:750;white-space:nowrap;transition:.2s ease}
.header-community-btn:hover{transform:translateY(-1px);background:#6f543d;color:#fff;border-color:#6f543d}
body.theme-dark .header-community-btn{background:#312a26;border-color:rgba(255,255,255,.10);color:#ead8c7}
body.community-view .header-community-btn{background:#6f543d;color:#fff;border-color:#6f543d}
.mobile-app-nav{display:none!important}
.home-popular-books-card{grid-column:1/-1;background:linear-gradient(145deg,#fffaf3,#f3e7d8);border:1px solid rgba(99,74,53,.11);border-radius:22px;padding:20px!important}
.home-popular-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.home-popular-title h3{margin:0!important}.home-popular-title span{font-size:10px;letter-spacing:.13em;color:#9b806a}.home-popular-books-card>p{margin:6px 0 14px;color:#9a8370;font-size:10px}.home-popular-books-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.home-popular-books-list button{min-width:0;border:0;background:rgba(255,255,255,.72);border-radius:13px;padding:12px 10px;display:grid;grid-template-columns:25px minmax(0,1fr);gap:7px;text-align:left;color:#4e3c30;cursor:pointer}.home-popular-books-list button>span{font:700 18px Georgia,serif;color:#b28a68}.home-popular-books-list button b{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-popular-books-list button small{display:block;margin-top:4px;color:#9a806d;font-size:9px}.home-popular-community-link{display:inline-block;margin-top:13px;color:#715744;font-size:10px;font-weight:750;text-decoration:none}.home-popular-community-link:hover{text-decoration:underline}body.theme-dark .home-popular-books-card{background:linear-gradient(145deg,#302923,#28221e);border-color:rgba(255,255,255,.08)}body.theme-dark .home-popular-books-list button{background:#352e29;color:#ead9ca}body.theme-dark .home-popular-community-link{color:#d6b99d}
@media(max-width:760px){.home-popular-books-list{grid-template-columns:1fr}.home-popular-books-list button{padding:10px 11px}.home-popular-books-card{padding:15px!important}}
@media(max-width:620px){.header-tools{max-width:none!important;gap:3px!important}.header-community-btn{height:30px;padding:0 7px;font-size:9px;gap:3px}.header-community-btn span{display:inline}.community-account-btn{max-width:52px!important}.header-icon-btn{width:30px!important;height:30px!important;min-width:30px!important}.mobile-app-nav{display:none!important}body{padding-bottom:0!important}body.community-view #community{padding-bottom:60px!important}}
@media(max-width:390px){.header-community-btn span{display:none}.header-community-btn{width:30px;padding:0;border-radius:50%}}


/* ============================================================
   v46 — desktop community duplicate fix + inline TOP 5 placement
   ============================================================ */
/* Community entry lives only beside account / theme controls. */
header > nav a[data-app-nav="community"]{display:none!important}

/* Put weekly TOP 5 inside the empty lower part of the themes card. */
#themes{display:flex;flex-direction:column}
#themes .home-popular-inline{
  grid-column:auto;
  margin-top:16px;
  padding:14px 0 0!important;
  border:0;
  border-top:1px solid #eadfd2;
  border-radius:0;
  background:transparent!important;
  box-shadow:none;
}
#themes .home-popular-title{margin-bottom:2px}
#themes .home-popular-title h3{font-size:13px!important;margin:0!important}
#themes .home-popular-inline>p{margin:3px 0 8px;font-size:9px}
#themes .home-popular-books-list{display:grid;grid-template-columns:1fr;gap:5px}
#themes .home-popular-books-list button{
  padding:7px 8px;
  border-radius:9px;
  grid-template-columns:20px minmax(0,1fr);
  gap:6px;
  background:rgba(255,255,255,.55);
}
#themes .home-popular-books-list button>span{font-size:14px}
#themes .home-popular-books-list button b{font-size:10px}
#themes .home-popular-books-list button small{font-size:8px;margin-top:2px}
#themes .home-popular-community-link{margin-top:7px;font-size:9px}
body.theme-dark #themes .home-popular-inline{border-top-color:rgba(255,255,255,.09)}
body.theme-dark #themes .home-popular-books-list button{background:rgba(255,255,255,.055)}

@media(max-width:1000px){
  #themes .home-popular-inline{margin-top:14px}
}

/* ============================================================
   v47 — community header button visual fix
   No glow / sparkle effect. Keep text readable in light + dark mode.
   ============================================================ */
.header-community-btn,
.header-community-btn:hover,
.header-community-btn:focus,
.header-community-btn:active{
  box-shadow:none!important;
  filter:none!important;
  text-shadow:none!important;
  animation:none!important;
}
/* Light mode: stronger contrast, including while community page is active. */
body:not(.theme-dark) .header-community-btn{
  background:#6f543d!important;
  border-color:#6f543d!important;
  color:#fff!important;
}
body:not(.theme-dark) .header-community-btn span{color:#fff!important}
body:not(.theme-dark) .header-community-btn:hover{
  background:#5f4735!important;
  border-color:#5f4735!important;
  color:#fff!important;
  transform:translateY(-1px);
}
/* Dark mode: simple neutral pill without decorative glow. */
body.theme-dark .header-community-btn{
  background:#312a26!important;
  border-color:rgba(255,255,255,.16)!important;
  color:#f1e2d4!important;
}
body.theme-dark .header-community-btn span{color:#f1e2d4!important}
body.theme-dark.community-view .header-community-btn{
  background:#6f543d!important;
  border-color:#80634b!important;
  color:#fff!important;
}

/* ============================================================
   v49 — Community back button spacing fix
   Give the return button clear breathing room below the sticky header.
   ============================================================ */
body.community-view .community-page-topbar{
  padding-top: 12px;
  margin-top: 8px;
}
@media(max-width:620px){
  body.community-view #community{padding-top:32px;}
  body.community-view .community-page-topbar{
    padding-top:10px;
    margin-top:6px;
    margin-bottom:20px;
  }
  body.community-view .community-back-home{
    min-height:36px;
    display:inline-flex;
    align-items:center;
  }
}


/* ============================================================
   v50 — Popular-first discovery card + real themes + mobile detail
   ============================================================ */
.home-discovery-card{display:flex!important;flex-direction:column!important;min-width:0}
#themes .home-popular-primary{
  order:1;
  margin:0!important;
  padding:0 0 14px!important;
  border:0!important;
  border-bottom:1px solid rgba(93,69,49,.13)!important;
  border-radius:0!important;
  background:transparent!important;
}
#themes .home-popular-primary .home-popular-title h3{font-size:17px!important}
#themes .home-popular-primary .home-popular-title span{font-size:10px!important}
#themes .home-popular-primary>p{font-size:9px!important;margin:4px 0 9px!important}
#themes .home-popular-primary .home-popular-books-list{gap:5px!important}
#themes .home-popular-primary .home-popular-books-list button{padding:8px 9px!important}
#themes .home-popular-primary .home-popular-community-link{margin-top:8px!important}
.home-real-themes{order:2;margin-top:14px;display:flex;flex-direction:column;gap:6px}
.home-themes-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:2px}
.home-themes-title h3{margin:0!important;font-size:14px!important}
.home-themes-title span{font-size:8px;color:#9d8069;letter-spacing:.08em}
.home-real-themes>button{
  width:100%;
  min-height:34px;
  margin:0!important;
  padding:7px 2px!important;
  border:0!important;
  border-bottom:1px solid rgba(93,69,49,.10)!important;
  border-radius:0!important;
  background:transparent!important;
  color:#5d493a!important;
  text-align:left;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:10px!important;
  cursor:pointer;
}
.home-real-themes>button:hover{padding-left:5px!important;background:rgba(126,92,64,.04)!important}
.home-real-themes>button span{color:#b08b6d;font-size:13px}
.home-real-themes>.home-themes-more{justify-content:flex-end;border-bottom:0!important;color:#806550!important;font-size:9px!important}
body.theme-dark #themes .home-popular-primary{border-bottom-color:rgba(255,255,255,.09)!important}
body.theme-dark .home-real-themes>button{color:#ddc7b3!important;border-bottom-color:rgba(255,255,255,.08)!important}
body.theme-dark .home-themes-title span{color:#bda087}

@media(max-width:620px){
  /* Give the actual book-info tab most of the phone viewport.
     The cover/author area becomes a compact header instead of a tall page. */
  .book-detail-modal-v7{padding:0!important;place-items:center!important}
  .detail-panel,
  .detail-panel-v13{
    width:calc(100vw - 12px)!important;
    max-width:calc(100vw - 12px)!important;
    height:calc(100dvh - 12px)!important;
    max-height:calc(100dvh - 12px)!important;
    margin:6px!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:auto minmax(0,1fr)!important;
    overflow:hidden!important;
    border-radius:15px!important;
  }
  .detail-left{
    min-height:0!important;
    display:grid!important;
    grid-template-columns:72px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    column-gap:11px!important;
    row-gap:2px!important;
    justify-content:stretch!important;
    align-items:center!important;
    padding:9px 46px 9px 11px!important;
  }
  .detail-cover-frame{
    grid-column:1!important;
    grid-row:1 / span 2!important;
    width:68px!important;
    height:98px!important;
    padding:4px!important;
    margin:0!important;
    border-radius:4px 8px 8px 4px!important;
  }
  .detail-author-name{
    grid-column:2!important;
    grid-row:1!important;
    margin:0!important;
    font-size:15px!important;
    line-height:1.3!important;
    text-align:left!important;
    align-self:end!important;
  }
  .detail-author-intro{
    grid-column:2!important;
    grid-row:2!important;
    margin:2px 0 0!important;
    max-width:none!important;
    font-size:10px!important;
    line-height:1.45!important;
    text-align:left!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:3!important;
    overflow:hidden!important;
    align-self:start!important;
  }
  .reading-time-card{display:none!important}
  .detail-right,
  .detail-right-v13{
    min-height:0!important;
    height:100%!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:0 14px 20px!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .detail-tabs{
    position:sticky!important;
    top:0!important;
    z-index:8!important;
    margin:0 0 10px!important;
    padding:10px 0 8px!important;
    background:#f5e9d8!important;
  }
  .detail-tab-btn{min-height:38px!important;padding:9px 15px!important;font-size:12px!important}
  .detail-right h2{font-size:24px!important;line-height:1.35!important;margin:5px 0 4px!important}
  .detail-genre{font-size:11px!important;margin-bottom:10px!important}
  .detail-block{margin-top:13px!important}
  .detail-block h4{font-size:16px!important;margin-bottom:6px!important}
  .detail-block p{font-size:13px!important;line-height:1.72!important;margin-bottom:9px!important}
  .detail-kicker{font-size:9px!important}
  .detail-close{right:10px!important;top:9px!important;width:34px!important;height:34px!important}

  #themes .home-popular-primary .home-popular-title h3{font-size:16px!important}
  .home-real-themes{margin-top:12px}
  .home-real-themes>button{min-height:40px!important;font-size:11px!important}
}
