.rest-library{color:#24483a;text-align:left;max-width:100%;min-width:0}
.rest-library h4{font-size:1.12rem;line-height:1.4;margin:.5rem 0}
.rest-library :is(button,a,summary):focus-visible,.rest-library h4:focus-visible{outline:3px solid #167265;outline-offset:2px}
.rest-library button{font:inherit;min-height:44px;color:inherit;cursor:pointer}
.rest-library .rl-shelf{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(116px,100%),1fr));gap:8px}
.rest-library .rl-cover{display:block;padding:0;border:1px solid #bfcfc0;border-radius:10px;overflow:hidden;text-align:left;background:#fffdf5}
.rest-library .rl-cover:hover{border-color:#629481}
.rest-library .rl-art,.rest-library .rl-cover img{display:block;width:100%;aspect-ratio:360/148;background-size:400% 100%;background-repeat:no-repeat}
.rest-library>.rl-art{border-radius:10px;max-height:180px}
.rest-library .rl-cover img{object-fit:cover}
.rest-library .rl-cover-info{display:block;padding:6px 8px}
.rest-library .rl-cover strong,.rest-library .rl-cover small{display:block;line-height:1.4}
.rest-library .rl-cover strong{font-size:.93rem}
.rest-library .rl-cover small,.rest-library .rl-note,.rest-library .rl-top small,.rest-library details{color:#496856}
.rest-library .rl-cover small{font-size:.76rem;margin-top:2px}
.rest-library .rl-top,.rest-library .rl-pages{display:flex;align-items:center;justify-content:space-between;gap:5px}
.rest-library .rl-top{margin-bottom:6px}
.rest-library :is(.rl-top,.rl-pages)>button,.rest-library>button{border:1px solid #b5cbbc;background:#f7fbf2;border-radius:8px;padding:3px 10px}
.rest-library .rl-pages{margin-top:10px}
.rest-library .rl-pages span{font-size:.82rem;white-space:nowrap}
.rest-library .rl-pages button:last-child{background:#32664c;color:white;border-color:#32664c}
.rest-library button:disabled{opacity:.45;cursor:default}
.rest-library .rl-story{margin:.4rem 0;font-size:1.08rem;line-height:1.8;color:#2b4236}
.rest-library video{display:block;width:100%;aspect-ratio:16/9;max-height:340px;background:#1b342f;border-radius:9px}
.rest-library .rl-note,.rest-library details p,.rest-library .rl-error{font-size:.86rem;line-height:1.55;margin:6px 0}
.rest-library .rl-error:empty{display:none}
.rest-library details{font-size:.8rem}.rest-library summary{cursor:pointer;min-height:32px;line-height:32px}
.rest-library details a{color:#275a4c;text-decoration:underline;overflow-wrap:anywhere}
