/* RYU 6.0.3 · independent additive member UI. Public v6.0 styles unchanged. */
.ryu-member-recovery-issued[hidden],#ryu-personal-root[hidden]{display:none!important}
.ryu-member-recovery-issued{border:1px solid #9d8363;border-radius:8px;padding:12px;background:#262019;color:#f3e5cf;margin:12px 0;font:12px/1.7 'Noto Sans KR',sans-serif}
.ryu-member-recovery-issued code{display:block;user-select:all;line-height:1.8;color:#e5c58b;font:13px/1.8 ui-monospace,monospace;margin:12px 0;overflow-wrap:anywhere}
.ryu-code-actions{display:flex;gap:8px}.ryu-code-actions button{flex:1;cursor:pointer;border:1px solid #9d8363;background:#382c24;color:#f3e5cf;border-radius:6px;padding:9px}
.ryu-member-recovery-issued p{color:#c8b198}
/* Non-nested control outside the existing clickable covers/spines. */
.ryu-fav-featured-wrap{flex:0 0 clamp(105px,18vw,148px);position:relative;scroll-snap-align:start;min-width:0}
.ryu-fav-featured-wrap>.featured-card{width:100%;height:100%;flex:none!important}
.book-slot:has(>.ryu-fav-spine){position:relative}
.ryu-fav-toggle{position:absolute;z-index:18;border:0;display:grid;place-items:center;cursor:pointer;background:rgba(22,18,16,.66);width:32px;height:42px;min-width:30px;min-height:40px;border-radius:3px;filter:drop-shadow(0 2px 3px #000a);padding:5px;color:#bb9870;touch-action:manipulation}
.ryu-fav-toggle svg{width:21px;height:30px;overflow:visible;fill:#261d1c;stroke:#bd9b75;stroke-width:2;stroke-linejoin:round;transition:fill .18s,color .18s}
.ryu-fav-toggle.is-selected svg{fill:#e6bd70;stroke:#f5d99c}.ryu-fav-toggle:hover svg,.ryu-fav-toggle:focus-visible svg{stroke:#fff1c5}
.ryu-fav-cover{top:2px;right:3px;left:auto}.ryu-fav-spine{left:50%;top:-18px;transform:translateX(-50%);width:27px;height:37px;padding:3px}
body[data-ryu-bookmark-style="ribbon"] .ryu-fav-toggle svg{transform:scaleX(.66);filter:drop-shadow(0 0 2px #a96661)}
body[data-ryu-bookmark-style="ribbon"] .ryu-fav-toggle.is-selected svg{fill:#bb563f;stroke:#e6ac84}
body[data-ryu-bookmark-style="icon"] .ryu-fav-toggle{background:rgba(22,18,16,.77);border-radius:50%;height:35px;width:35px}
body[data-ryu-bookmark-style="icon"] .ryu-fav-toggle svg{height:23px;width:20px}
.ryu-detail-favorite{border:1px solid #9d8363;background:#2f241d;color:#f3e5cf;cursor:pointer;border-radius:7px;padding:10px 16px;font:12px 'Noto Serif KR',serif}
body.ryu-personal-open #shelf-main-content{display:none!important}
#ryu-personal-root{max-width:840px;margin:18px auto 28px;color:#f3e5cf}
.ryu-personal-heading{text-align:center;border:1px solid #664b39;border-radius:9px 9px 0 0;padding:20px;background:#2c211e}
.ryu-personal-heading p{font:10px/1.5 Georgia,serif;letter-spacing:.22em;color:#c4a47e;margin:0}
.ryu-personal-heading h2{font:600 23px/1.5 'Noto Serif KR',serif;margin:6px 0 12px;color:#f3e5cf}
.ryu-personal-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}
.ryu-personal-actions button,.ryu-personal-pages button,.ryu-personal-recent-card button{background:#3a2a20;color:#eedcc7;border:1px solid #8f6e50;border-radius:5px;padding:8px 12px;cursor:pointer;font:12px 'Noto Serif KR',serif}
.ryu-personal-actions button:disabled{opacity:.4;cursor:default}
.ryu-personal-recent{padding:15px;background:#2c211c;border:1px solid #654734;border-top:0;border-bottom:0}
.ryu-personal-recent h3{font:500 14px 'Noto Serif KR',serif;color:#e6c092;margin:0 0 10px}
.ryu-personal-recent-row{display:flex;overflow-x:auto;gap:14px;padding:4px 0 12px;scroll-snap-type:x proximity}
.ryu-personal-recent-card{flex:0 0 120px;display:grid;gap:7px;justify-items:center;scroll-snap-align:start}
.ryu-personal-recent-card a{display:grid;place-items:center;width:90px;height:130px;background:#36241a;color:#f4e8d6;font:12px 'Noto Serif KR',serif;text-decoration:none;overflow:hidden}
.ryu-personal-recent-card img{height:100%;width:100%;object-fit:contain}
.ryu-personal-recent-card span{max-width:120px;text-align:center;font:11px/1.5 'Noto Serif KR',serif;overflow-wrap:anywhere}
.ryu-personal-recent-card button{padding:5px 13px;font-size:11px}
.ryu-personal-empty{text-align:center;color:#b9a694;font-size:12px;margin:10px}
.ryu-personal-pages{display:flex;justify-content:center;align-items:center;gap:16px;background:#2c211c;border:1px solid #654734;border-top:0;border-bottom:0;padding:13px}
.ryu-personal-pages span{font:12px 'Noto Serif KR',serif;color:#d9bb96}
.ryu-personal-pages button{font-size:15px;min-width:40px}.ryu-personal-pages button:disabled{opacity:.3;cursor:default}
.ryu-personal-frame{padding:12px 14px 8px;background:#272019;border:14px solid #3e291f;border-bottom-width:22px;box-shadow:0 22px 45px #0008}
.ryu-personal-shelf{height:274px;position:relative;padding:24px 4px 18px;box-sizing:border-box;display:flex;align-items:end;background:repeating-linear-gradient(90deg,#17130f,#231b14 9px,#191511 15px)}
.ryu-personal-shelf::after{content:'';height:16px;background:linear-gradient(#b08051,#543621);position:absolute;left:-9px;right:-9px;bottom:0;box-shadow:0 5px 9px #0008}
.ryu-personal-row{width:100%;height:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;justify-items:center}
.ryu-personal-slot{height:100%;width:100%;position:relative;display:flex;align-items:flex-end;justify-content:center;min-width:0}
.ryu-personal-spine{touch-action:manipulation;-webkit-touch-callout:none;user-select:none;height:205px;width:min(54px,95%);border:0;border-radius:4px 5px 1px 1px;position:relative;overflow:visible;box-shadow:3px 5px 9px #000a;cursor:pointer;transition:transform .18s}
.ryu-personal-spine img{width:100%;height:100%;object-fit:fill;pointer-events:none;border-radius:inherit}
.ryu-personal-spine span{writing-mode:vertical-rl;color:#eee0cf;font:600 13px 'Noto Serif KR',serif;margin:auto;line-height:2;max-height:170px;overflow:hidden}
.ryu-personal-slot.is-empty button{display:none;min-height:88px;min-width:52px;border:1px dashed #80694d;color:#c8ad8b;background:transparent;border-radius:7px;cursor:pointer}
.ryu-personal-editing .ryu-personal-slot.is-empty button{display:block}
.ryu-personal-editing .ryu-personal-spine{animation:ryu-personal-wiggle .27s ease-in-out infinite alternate}
.ryu-personal-editing .ryu-personal-spine.ryu-selected-book{outline:3px solid #f4cb73;outline-offset:2px;animation:none}
.ryu-personal-spine.ryu-selected-book::after{content:'✓';position:absolute;right:-4px;top:-17px;z-index:3;color:#281e16;background:#eac675;border-radius:50%;font:700 15px/23px sans-serif;text-align:center;width:23px;height:23px}
.ryu-personal-selection{padding:11px;background:#56402e;color:#f4e0bd;margin:8px 0;font:12px/1.6 'Noto Sans KR',sans-serif;text-align:center;border-radius:5px}
#ryu-personal-status{min-height:24px;text-align:center;color:#eac675;font:12px/1.5 'Noto Sans KR',sans-serif}
@keyframes ryu-personal-wiggle{from{transform:rotate(-1.4deg)}to{transform:rotate(1.4deg)}}
@media(max-width:690px){.ryu-fav-featured-wrap{flex-basis:clamp(100px,38vw,140px)!important}.ryu-personal-frame{border-width:9px;padding:7px}.ryu-personal-shelf{height:240px;padding:19px 0}.ryu-personal-spine{height:180px;width:min(45px,90%)}.ryu-personal-recent-card{flex-basis:105px}.ryu-personal-heading h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){.ryu-personal-editing .ryu-personal-spine{animation:none!important}.ryu-fav-toggle svg{transition:none!important}}

.ryu-delete-account{color:#f3e5cf;background:#26201c;border:1px solid #9d8363;border-radius:12px;max-width:min(440px,calc(100vw - 30px));padding:24px}.ryu-delete-account::backdrop{background:#000a}.ryu-delete-account form{display:grid;gap:11px}.ryu-delete-account label{display:grid;gap:6px}.ryu-delete-account input{width:100%;min-height:44px;box-sizing:border-box;background:#171c20;color:#fff;border:1px solid #9d8363;padding:10px}.ryu-delete-account button{cursor:pointer;padding:12px;background:#483322;color:#f3e5cf;border:1px solid #a5805b;border-radius:6px}

/* v6.0.4: card and spine actions are revealed on hover/focus; no constant ribbon clutter. */
.ryu-fav-featured-wrap .ryu-fav-toggle,.book-slot>.ryu-fav-spine{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .16s,visibility .16s}
.ryu-fav-featured-wrap:hover .ryu-fav-toggle,.ryu-fav-featured-wrap:focus-within .ryu-fav-toggle,
.book-slot:hover>.ryu-fav-spine,.book-slot:focus-within>.ryu-fav-spine,
.ryu-fav-featured-wrap .ryu-fav-toggle:focus-visible,.book-slot>.ryu-fav-spine:focus-visible{opacity:1;visibility:visible;pointer-events:auto}
/* Keyboard navigation must always be able to reveal the toggle. */
.ryu-fav-toggle:focus-visible{outline:2px solid #e3be8c;outline-offset:2px}
@media(hover:none){.book-slot>.ryu-fav-spine,.ryu-fav-featured-wrap .ryu-fav-toggle{opacity:0;visibility:hidden;pointer-events:none}
.book-slot:focus-within>.ryu-fav-spine,.ryu-fav-featured-wrap:focus-within .ryu-fav-toggle{opacity:1;visibility:visible;pointer-events:auto}}
.ryu-personal-footer{background:#201914;border:1px solid #544234;border-top:0;padding:25px 15px;display:flex;flex-direction:column;align-items:center;gap:7px;margin:0}
.ryu-personal-footer p{font:12px/1.7 'Noto Serif KR',serif;color:#aa9b8c;margin:0}
.ryu-personal-footer button{color:#c2aa97;background:transparent;border:1px solid #765f52;border-radius:5px;padding:9px 16px;cursor:pointer;font-size:12px}
.ryu-personal-footer button:hover,.ryu-personal-footer button:focus-visible{border-color:#d8b58d;color:#f4d8b1}

/* On touch devices, keep book surfaces clean until focus; the detail screen always has a permanent favorite control. */
@media(hover:none){.ryu-fav-featured-wrap .ryu-fav-toggle,.book-slot>.ryu-fav-spine{width:30px;height:36px}
.ryu-fav-featured-wrap:focus-within .ryu-fav-toggle,.book-slot:focus-within>.ryu-fav-spine{opacity:1;visibility:visible;pointer-events:auto}}


/* v6.0.5: transparent backing; genuine A/B/C bookmark silhouettes */
.ryu-fav-toggle{background:transparent!important;filter:none!important;box-shadow:none!important}
.ryu-fav-toggle svg .ryu-mark-ribbon,.ryu-fav-toggle svg .ryu-mark-icon{display:none}
body[data-ryu-bookmark-style="ribbon"] .ryu-fav-toggle svg .ryu-mark-classic,body[data-ryu-bookmark-style="icon"] .ryu-fav-toggle svg .ryu-mark-classic{display:none}
body[data-ryu-bookmark-style="ribbon"] .ryu-fav-toggle svg .ryu-mark-ribbon{display:block;fill:#a44d37;stroke:#efc298}
body[data-ryu-bookmark-style="icon"] .ryu-fav-toggle svg .ryu-mark-icon{display:block;fill:#251c17;stroke:#d8b680}
body[data-ryu-bookmark-style="icon"] .ryu-fav-toggle{border-radius:0!important}
body[data-ryu-bookmark-style="icon"] .ryu-fav-toggle svg{width:30px!important;height:34px!important}
body[data-ryu-bookmark-style="ribbon"] .ryu-fav-toggle svg{transform:none!important;filter:none!important}

.ryu-personal-grade{display:inline-block;font-size:.48em;line-height:1.4;vertical-align:middle;padding:.12em .5em;margin-right:.25em;border-radius:4px;background:#41362d;border:1px solid #b69257;color:#f0d7a5;white-space:nowrap}
.ryu-personal-grade[data-grade="vip"]{background:#72502c;color:#fff1d5}

/* v6.0.10: selected personal book can retract on repeat click; detail affordance */
.ryu-personal-spine{position:relative;transition:transform .26s ease,filter .26s ease,box-shadow .26s ease}
.ryu-personal-spine.pulled{z-index:4}
/* Removed: intrusive book description chip. Detail navigation remains in reading cards. */
@media(prefers-reduced-motion:reduce){.ryu-personal-spine{transition:none}}

/* v6.0.12 — personal/public shelf interaction parity; not edit mode. */
.ryu-personal-frame:not(.ryu-personal-editing) .ryu-personal-spine{outline:0!important;outline-offset:0!important;border:0;box-shadow:3px 5px 9px #000a}
.ryu-personal-frame .ryu-personal-slot{isolation:isolate}
.ryu-personal-frame .ryu-personal-spine{z-index:1;transform:perspective(750px) translate3d(0,0,0);transition:transform .32s cubic-bezier(.2,.75,.2,1),filter .28s ease,box-shadow .3s ease}
.ryu-personal-frame.ryu-spotlight-active .ryu-personal-spine.pulled{transform:perspective(750px) translate3d(0,-12px,36px) rotateY(-8deg);filter:brightness(1.075)!important;box-shadow:17px 29px 25px #000b;z-index:6}
.ryu-personal-frame .ryu-personal-slot.ryu-spotlight-slot{z-index:7}
.ryu-personal-frame.ryu-spotlight-active .ryu-personal-shelf.ryu-shelf-lit{background:radial-gradient(ellipse at 50% 90%,rgba(200,157,104,.13),transparent 75%),repeating-linear-gradient(90deg,#17130f,#231b14 9px,#191511 15px)}
.ryu-personal-frame .ryu-personal-spine::after{content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(180deg,rgba(255,226,167,.38),rgba(255,221,156,.08) 38%,transparent 77%);opacity:0;transition:opacity .35s ease}
.ryu-personal-frame.ryu-spotlight-active .ryu-personal-spine.pulled::after{opacity:.18}
@media (hover:hover) and (pointer:fine){
 .ryu-personal-frame .ryu-personal-spine:hover:not(.pulled){transform:perspective(750px) translate3d(0,-5px,19px) rotateY(-5deg);filter:brightness(1.07);box-shadow:9px 13px 24px #0009;z-index:5}
 .ryu-personal-frame .ryu-personal-spine:hover:not(.pulled)::after{opacity:.13}
}
.ryu-personal-editing .ryu-personal-frame .ryu-personal-spine.ryu-selected-book{outline:3px solid #f4cb73!important;outline-offset:2px!important}
.ryu-personal-editing .ryu-personal-frame .ryu-personal-spine.pulled{transform:none!important}
@media(prefers-reduced-motion:reduce){.ryu-personal-frame .ryu-personal-spine,.ryu-personal-frame .ryu-personal-spine::after{transition:none!important}}

/* v6.7.1b: status only while active; follows the personal bookshelf heading theme. */
.ryu-personal-pass-status{display:inline-block;margin:2px 0 0 9px;padding:3px 10px;vertical-align:middle;border-radius:999px;border:1px solid rgba(210,183,120,.58);background:rgba(21,34,31,.7);font:500 11px/1.6 'Noto Sans KR',sans-serif;color:#f0d6a3;letter-spacing:0;white-space:normal}
@media(max-width:690px){.ryu-personal-pass-status{display:table;margin:8px auto 0;font-size:10px}}
