/* RYU v6.0.14 REVISED FINAL. The personal shelf uses the PUBLIC shelf-grid / bookcase-
   frame / shelf-unit / book-row / book-slot / spine DOM and public CSS. This file
   styles ONLY personal features not provided by the public renderer. The v6.0.13
   cloned .ryu-personal-frame/spine rules are intentionally no longer matched. */
#ryu-personal-root .ryu-personal-grid {display:block;max-width:750px;margin:0 auto;padding:0;border:0;background:none;box-shadow:none;}
#ryu-personal-root .ryu-personal-grid .bookcase-panel {min-width:0;}
#ryu-personal-root .ryu-personal-grid .bookcase-featured {margin-bottom:9px;}
#ryu-personal-root .ryu-reading-featured-item {min-width:0;flex:0 0 clamp(105px,18vw,148px);display:flex;flex-direction:column;align-items:center;gap:5px;scroll-snap-align:start;}
#ryu-personal-root .ryu-reading-featured-item .featured-card {width:100%;height:auto;flex:0 0 auto;}
#ryu-personal-root .ryu-reading-featured-item .featured-cover {width:min(100%,132px);}
#ryu-personal-root .ryu-reading-featured-item .ryu-reading-position {color:#c6a986;font:11px/1.4 'Noto Serif KR',serif;text-align:center;}
#ryu-personal-root .ryu-personal-finish {border:1px solid #9d8363;border-radius:4px;background:#3a2a20;color:#eedcc7;padding:5px 13px;font:11px 'Noto Serif KR',serif;cursor:pointer;min-height:30px;}
#ryu-personal-root .ryu-personal-finish:hover,#ryu-personal-root .ryu-personal-finish:focus-visible {border-color:#e2b86a;}
#ryu-personal-root .featured-row {display:flex;align-items:flex-start;justify-content:flex-start;gap:20px;overflow-x:auto;scroll-snap-type:x proximity;max-width:none;padding:4px 0 12px;}
#ryu-personal-root .featured-row>.ryu-personal-empty {width:100%;flex:1;}
/* The public .book-slot-empty geometry remains hidden except when arranging. */
body.ryu-personal-editing #ryu-personal-root .book-slot-empty {visibility:visible;}
#ryu-personal-root .ryu-personal-empty-position {display:none;min-height:88px;min-width:min(52px,95%);border:1px dashed #80694d;color:#c8ad8b;background:transparent;border-radius:7px;cursor:pointer;}
body.ryu-personal-editing #ryu-personal-root .ryu-personal-empty-position {display:block;}
body.ryu-personal-editing #ryu-personal-root .spine {animation:ryu-personal-wiggle .27s ease-in-out infinite alternate;}
body.ryu-personal-editing #ryu-personal-root .spine.ryu-selected-book {animation:none;outline:3px solid #f4cb73!important;outline-offset:2px!important;}
body.ryu-personal-editing #ryu-personal-root .spine.ryu-selected-book::after {content:'✓';position:absolute;right:-4px;top:-17px;left:auto;bottom:auto;width:23px;height:23px;border:0;background:#eac675;color:#281e16;border-radius:50%;font:700 15px/23px sans-serif;opacity:1;z-index:10;}
body.ryu-personal-editing #ryu-personal-root .bookcase-frame .spine.pulled {transform:none!important;}
@media(max-width:760px) {#ryu-personal-root .ryu-reading-featured-item {flex-basis:clamp(100px,38vw,140px);}#ryu-personal-root .featured-row{gap:12px}}
@media(prefers-reduced-motion:reduce){body.ryu-personal-editing #ryu-personal-root .spine {animation:none!important}}

/* Two DISTINCT public-style display cases, stacked above the finished 3 x 5 shelves. */
#ryu-personal-root .ryu-personal-grid .ryu-personal-favorite-featured {margin-top:9px;margin-bottom:9px}
#ryu-personal-root .ryu-personal-grid .ryu-personal-favorite-featured .ryu-fav-featured-wrap {height:auto;flex:0 0 clamp(105px,18vw,148px)}
#ryu-personal-root .ryu-personal-grid .ryu-personal-favorite-featured .featured-card {height:auto;min-height:0;flex:0 0 auto!important}
#ryu-personal-root .ryu-personal-grid .ryu-personal-favorite-featured .featured-cover {width:min(100%,132px)}
@media(max-width:760px){#ryu-personal-root .ryu-personal-grid .ryu-personal-favorite-featured .ryu-fav-featured-wrap {flex-basis:clamp(100px,38vw,140px)}}

/* v6.0.14 layout correction: align the personal header, BOTH showcases and
   finished shelf to a single width. The BOOKCASE heading belongs immediately
   above the finished shelf, not above the reading showcase. */
#ryu-personal-root .ryu-personal-grid {max-width:840px;width:100%;box-sizing:border-box;}
#ryu-personal-root .ryu-personal-grid .bookcase-panel {width:100%;}
#ryu-personal-root .ryu-personal-grid .bookcase-header {margin-top:9px;}
#ryu-personal-root .ryu-personal-grid .bookcase-header + .bookcase-frame {margin-top:0;}
