.cxt-shelf,.cxt-album-tools,.cxt-reader,.cxt-preparation{box-sizing:border-box;max-width:100%;padding:18px;margin:16px 0;border:1px solid #cbd2df;border-radius:16px;background:#fff;color:#172033;font:inherit;overflow-wrap:anywhere}
.cxt-shelf h2,.cxt-shelf h3,.cxt-preparation strong{color:inherit;margin:0 0 12px}.cxt-series{margin:16px 0}.cxt-shelf ol,.cxt-reader ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}.cxt-shelf li{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px;background:#f3f5fa;border-radius:10px}.cxt-shelf li strong{flex:1 1 160px}.cxt-shelf a,.cxt-reader a{color:#273f7b;text-decoration:underline}.cxt-shelf li img{width:72px;height:108px;object-fit:contain}.cxt-label{display:block;padding:8px 12px;font-weight:700;font-size:14px;color:#273f7b}.cxt-form{margin:8px 0;display:flex;flex-wrap:wrap;gap:10px;align-items:end}.cxt-form label{display:grid;gap:5px;flex:1 1 180px}.cxt-form input,.cxt-form select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:9px;border:1px solid #8590a5;border-radius:8px;background:#fff;color:#172033;font:inherit}.cxt-button,.cxt-reader a.cxt-button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding:10px 16px;max-width:100%;border:1px solid #af1651;border-radius:10px;background:#c51d60;color:#fff;text-decoration:none;font:inherit;font-weight:700;cursor:pointer;text-align:center;white-space:normal}.cxt-button:focus-visible,.cxt-attach summary:focus-visible,.cxt-reader summary:focus-visible{outline:3px solid #4c78e7;outline-offset:3px}.cxt-attach summary,.cxt-reader summary{cursor:pointer;padding:10px 0;min-height:24px}.cxt-reader .cxt-next{margin:0 0 12px}.cxt-preparation p{margin:8px 0 14px}.cxt-public ol{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
[data-room-mode=night] .cxt-preparation,[data-room-mode=night] .cxt-album-tools,[data-theme=night] .cxt-shelf,[data-theme=night] .cxt-reader{background:#172033;color:#f3f5fa;border-color:#53627c}
@media(max-width:480px){.cxt-shelf,.cxt-album-tools,.cxt-reader,.cxt-preparation{padding:12px;border-radius:12px}.cxt-form,.cxt-form label,.cxt-form .cxt-button{width:100%;flex-basis:100%}.cxt-shelf li{align-items:flex-start}.cxt-label{padding:6px 0}.cxt-reader .cxt-button{width:100%}}

/* Library presentation only; reader, workshop and public catalogue keep their native rules. */
/* Every rule is scoped to series controls inside the existing library. */
.storybd-library .cxt-library-series{width:100%;max-width:1240px;margin:0 auto 22px;padding:0;border:1px solid #e4dccb;border-radius:14px;background:#fffaf0;color:#172033;box-shadow:0 4px 16px #10182d0a}
.storybd-library .cxt-library-series>summary{display:flex;align-items:center;gap:14px;min-height:70px;padding:13px 18px;box-sizing:border-box;cursor:pointer;list-style:none}
.storybd-library .cxt-library-series>summary::-webkit-details-marker,.storybd-library .cxt-album-menu>summary::-webkit-details-marker{display:none}
.storybd-library .cxt-stack-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:34px;height:34px;border-radius:10px;background:#f6e6ed;color:#a6194c}
.storybd-library .cxt-stack-icon svg{width:22px;height:22px}
.storybd-library .cxt-library-series-copy{display:grid;gap:3px;min-width:0;flex:1}
.storybd-library .cxt-library-series-copy strong{font-size:16px;line-height:1.25;font-weight:750}
.storybd-library .cxt-library-series-copy small{font-size:12px;line-height:1.4;color:#5b6273}
.storybd-library .cxt-library-series-state{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:650;color:#414e6c}
.storybd-library .cxt-library-series-state .cxt-hide-label{display:none}
.storybd-library .cxt-library-series[open]>summary .cxt-show-label{display:none}
.storybd-library .cxt-library-series[open]>summary .cxt-hide-label{display:inline}
.storybd-library .cxt-disclosure-arrow{display:inline-block;font-size:20px;line-height:1;transition:transform .15s ease}
.storybd-library .cxt-library-series[open]>summary .cxt-disclosure-arrow,.storybd-library .cxt-album-menu[open]>summary .cxt-disclosure-arrow{transform:rotate(180deg)}
.storybd-library .cxt-library-series[open]>summary{border-bottom:1px solid #e4dccb}
.storybd-library .cxt-library-series-body{padding:0 18px 6px}
.storybd-library .cxt-library-series .cxt-series{margin:18px 0}
.storybd-v7.storybd-library .cxt-library-series h3{font-size:15px!important;line-height:1.4!important;margin:0 0 12px!important;color:#172033!important;text-shadow:none!important;font-weight:650!important}
.storybd-library .cxt-library-series ol{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px}
.storybd-library .cxt-library-series li{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:15px;border:1px solid #e3dfd5;border-radius:10px;background:#fff;min-width:0}
.storybd-library .cxt-library-series li>span{font-size:11px;font-weight:750;letter-spacing:.04em;color:#766c5b;text-transform:uppercase}
.storybd-library .cxt-library-series li>strong{flex:initial;font-size:14px;line-height:1.4;color:#172033}
.storybd-library .cxt-library-series li>a{display:inline-flex;align-items:center;min-height:32px;margin-top:auto;font-size:13px;font-weight:700;color:#263d6c;text-underline-offset:4px}
.storybd-library .cxt-library-series .cxt-form{margin:0;width:100%}
.storybd-library .cxt-library-series .cxt-button{padding:7px 12px;min-height:36px;border-color:#d6dbe6;background:#f7f8fb;color:#263d6c;font-size:13px}
.storybd-library .cxt-album-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;padding:0 0 12px;margin:0 0 16px;border:0;border-bottom:1px solid #e7eaf0;border-radius:0;background:transparent;box-shadow:none;max-width:100%;font-size:13px}
.storybd-library .cxt-album-membership{display:inline-flex;align-items:center;max-width:100%;padding:5px 9px;border-radius:6px;background:#f1f3f8;color:#4c5874;font-size:12px;font-weight:650;line-height:1.4}
.storybd-library .cxt-album-menu{margin-left:auto;max-width:100%}
.storybd-library .cxt-album-menu>summary{display:flex;align-items:center;justify-content:center;gap:8px;width:fit-content;min-height:44px;margin-left:auto;padding:0 10px;box-sizing:border-box;border:1px solid #d8deea;border-radius:9px;background:#fff;color:#44516e;cursor:pointer;list-style:none;font-size:13px;font-weight:650}
.storybd-library .cxt-album-menu>summary .cxt-stack-icon{width:22px;height:22px;border-radius:0;background:transparent;color:inherit}
.storybd-library .cxt-album-menu>summary .cxt-stack-icon svg{width:19px;height:19px}
.storybd-library .cxt-album-menu>summary:hover{background:#f5f7fb;border-color:#aebbd2}
.storybd-library .cxt-album-menu[open]{width:100%;flex-basis:100%}
.storybd-library .cxt-album-menu-body{padding:16px;margin-top:10px;border:1px solid #e1e5ee;border-radius:12px;background:#f8f9fc;color:#172033}
.storybd-library .cxt-album-help{margin:0 0 12px;max-width:620px;font-size:13px;line-height:1.6;color:#536078}
.storybd-library .cxt-album-menu-body .cxt-form{margin:10px 0}
.storybd-library .cxt-album-menu-body>.cxt-form .cxt-button{font-size:13px;min-height:42px;padding:9px 14px}
.storybd-library .cxt-album-menu-body .cxt-attach>summary{width:fit-content;max-width:100%;min-height:28px;padding:8px 0 0;font-size:12px;text-decoration:underline;text-underline-offset:4px;color:#52627f}
.storybd-library .cxt-album-menu-body .cxt-attach .cxt-form{padding-top:8px}
.storybd-library .cxt-album-menu-body .cxt-attach .cxt-button{background:#fff;color:#44516e;border-color:#bec9dc;font-size:13px}
.storybd-library .cxt-album-menu-body label{font-size:12px;font-weight:600;min-width:0}
.storybd-library .storybd-library-other-card:not(.is-open)>.cxt-album-tools[data-cxt-member=no]{display:none}
.storybd-library .storybd-library-other-card:not(.is-open)>.cxt-album-tools[data-cxt-member=yes]{padding:0;margin:0 0 8px;border:0}
.storybd-library .storybd-library-other-card:not(.is-open)>.cxt-album-tools>.cxt-album-menu{display:none}
.storybd-library .cxt-album-menu>summary:focus-visible,.storybd-library .cxt-library-series>summary:focus-visible{outline:3px solid #5d7caf;outline-offset:3px}
@media(max-width:480px){
  .storybd-library .cxt-library-series>summary{gap:10px;min-height:66px;padding:12px}
  .storybd-library .cxt-library-series-copy strong{font-size:15px}
  .storybd-library .cxt-library-series-copy small{font-size:11px}
  .storybd-library .cxt-library-series-state{font-size:0;gap:0}
  .storybd-library .cxt-library-series-body{padding:0 12px 2px}
  .storybd-library .cxt-library-series ol{grid-template-columns:1fr}
  .storybd-library .cxt-library-series li{padding:12px}
  .storybd-library .cxt-album-tools{gap:8px;margin-bottom:12px;padding-bottom:10px}
  .storybd-library .cxt-album-menu>summary{font-size:12px;gap:6px;padding:0 9px}
  .storybd-library .cxt-album-menu-body{padding:12px}
  .storybd-library .cxt-album-menu-body .cxt-form .cxt-button{width:100%}
}
@media(prefers-reduced-motion:reduce){.storybd-library .cxt-disclosure-arrow{transition:none}}

/* Author-requested emphasis and aligned series controls in other albums. */
.storybd-library .cxt-album-membership{box-sizing:border-box;display:inline-flex;align-items:center;gap:12px;max-width:100%;min-height:48px;padding:7px 9px 7px 13px;border:1px solid #d9b95a;border-radius:10px;background:#fff3c9;color:#263450;font-size:14px;font-weight:750;line-height:1.35}
.storybd-library .cxt-series-name{min-width:0;overflow-wrap:anywhere}
.storybd-library .cxt-volume-number{display:inline-flex;align-items:center;flex:0 0 auto;min-height:32px;padding:5px 10px;border-radius:7px;background:#b51456;color:#fff;font:inherit;font-weight:800;line-height:1.3;white-space:nowrap}
.storybd-library .cxt-album-menu>summary{min-height:48px;padding:0 15px;gap:9px;border-color:#17243f;background:#17243f;color:#fff;font-size:14px;font-weight:750;box-shadow:0 3px 0 #0b1424}
.storybd-library .cxt-album-menu>summary .cxt-stack-icon{color:#ffe17c}
.storybd-library .cxt-album-menu>summary:hover{border-color:#263b60;background:#263b60;color:#fff}
.storybd-library .cxt-album-menu>summary:focus-visible{outline:3px solid #ce9b00;outline-offset:4px}
.storybd-library .storybd-library-other-card>.cxt-album-tools{box-sizing:border-box;width:100%;padding:14px 18px;margin:0;border-bottom:1px solid #ffffff24}
.storybd-library .storybd-library-other-card:not(.is-open)>.cxt-album-tools[data-cxt-member=yes]{padding:14px 18px 0;margin:0;border:0}
.storybd-library .storybd-library-other-card.is-open>.cxt-album-tools>.cxt-album-menu[open]{min-width:0}
@media(max-width:480px){
 .storybd-library .cxt-album-membership{gap:8px;padding:7px 8px 7px 10px;font-size:13px}
 .storybd-library .cxt-volume-number{padding:5px 8px;font-size:13px}
 .storybd-library .cxt-album-menu>summary{min-height:48px;padding:0 12px;font-size:13px}
 .storybd-library .storybd-library-other-card>.cxt-album-tools{padding:12px}
 .storybd-library .storybd-library-other-card:not(.is-open)>.cxt-album-tools[data-cxt-member=yes]{padding:12px 12px 0}
}

/* Closed mixed-series cards retain the native cover/title alignment. */
.storybd-library .storybd-library-other-card:not(.is-open){position:relative}
.storybd-library .storybd-library-other-card:not(.is-open)>.cxt-album-tools[data-cxt-member=yes]{position:absolute;z-index:2;top:26px;left:26px;width:auto;max-width:calc(100% - 52px);padding:0;margin:0;border:0;pointer-events:none}
.storybd-library .storybd-library-other-card:not(.is-open) .cxt-album-membership{min-height:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.storybd-library .storybd-library-other-card:not(.is-open) .cxt-series-name{display:none}
.storybd-library .storybd-library-other-card:not(.is-open) .cxt-volume-number{min-height:28px;padding:4px 8px;border:1px solid #fff;border-radius:6px;font-size:12px;box-shadow:0 2px 6px #0713274d}
