/* Illustrated shelves. Reader typography and scene positioning stay in their own stylesheets. */
#library{--library-round:18px;background:radial-gradient(ellipse at 95% 4%,#d0ded84d,transparent 35%);min-height:100vh}.topbar{max-width:1500px;height:86px;border-bottom:1px solid var(--line)}.brandmark{border-radius:50% 50% 7px 7px;background:var(--accent);color:var(--bg)!important;border:0;width:37px;height:44px}.brand{font-weight:600}.topbar nav{gap:32px}.nav{font-size:13px}.library-main{max-width:1440px;padding:0 44px}.discovery{padding:26px 0;border:0;gap:24px}.discovery h2{font-family:'Abyss Sans',sans-serif;font-size:17px;font-weight:500;margin-top:5px;letter-spacing:-.3px}.discovery .eyebrow{font-size:9px;letter-spacing:2px}.discovery .search-tools{width:52%;gap:10px}.discovery .search{background:var(--card);border:1px solid var(--line);box-shadow:none;border-radius:11px;padding:12px 15px}.discovery select{background:var(--card);border-radius:10px}.hero{position:relative;isolation:isolate;display:block;min-height:465px;border:0;border-radius:20px;margin:0 0 24px;padding:48px 48px 40px;background:#142a33!important;color:#fff9ed;overflow:hidden;box-shadow:0 12px 35px #142a3317}.hero-copy{position:relative;z-index:3;max-width:49%;pointer-events:none}.hero-copy button{pointer-events:auto}.hero-copy>.eyebrow{color:#e5d1a1;font-size:9px;letter-spacing:1.8px}.hero h1{font-family:'Abyss Serif',serif;font-size:clamp(34px,3.9vw,53px);line-height:1.23;letter-spacing:-1.7px;margin:21px 0 19px}.hero h1 em{color:#e4c28c;font-style:normal}.hero-copy>p{color:#d3ddd9;font-size:13px;max-width:340px;line-height:1.9}.hero .primary,.night .hero .primary{background:#e5c790;color:#273a32;border-radius:8px;margin-top:23px;padding:12px 21px;font-weight:600;min-height:45px}.hero-foot{color:#bccfc9;margin-top:22px;font-size:10px}.hero-foot .status-dot{background:#b9d2b6}.hero-visual{position:absolute;inset:0;z-index:0}.hero-scene-caption{position:absolute;right:24px;bottom:19px;z-index:3;font-size:8px;color:#fff9e8ba;letter-spacing:1.8px}.library-art{display:block;position:absolute;inset:0;overflow:hidden;isolation:isolate;pointer-events:none}.library-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 48%;transition:transform .6s ease}.library-art-shade{position:absolute;inset:0;z-index:2;background:linear-gradient(0deg,#0d222c69,transparent 60%)}.library-cast{position:absolute;inset:0;display:block;z-index:1}.library-actor{display:block;position:absolute;height:145%;bottom:-48%;left:calc(50% + (var(--cast-order) - .5)*39%);transform:translateX(-50%);filter:drop-shadow(0 6px 10px #15243242)}.library-art-body{width:100%;height:100%;display:block}.library-art-layer{position:absolute}.library-cast[data-count="1"] .library-actor{left:50%;height:145%;bottom:-45%}.library-medallion{position:absolute;width:84px;height:84px;left:50%;top:48%;transform:translate(-50%,-50%);object-fit:contain;border-radius:50%;background:#e6e2d4e8;padding:4px;border:1px solid #fff8;box-shadow:0 8px 28px #12232940}.library-cast[data-count="2"]>.library-medallion:first-child{left:34%}.library-cast[data-count="2"]>.library-medallion:last-child{left:68%}.art-hero .library-backdrop{object-position:center 44%;opacity:.85}.art-hero .library-art-shade{background:linear-gradient(90deg,#102730fa 0%,#102730ef 29%,#10273088 52%,#10273008 75%),linear-gradient(0deg,#1027308c,transparent 55%)}.art-hero .library-cast{left:39%;right:0}.art-hero .library-actor{height:143%;bottom:-43%;left:calc(45% + (var(--cast-order) - .5)*48%);filter:drop-shadow(0 14px 24px #122c3b66)}
.explore-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:38px}.explore-card{position:relative;isolation:isolate;min-height:126px;overflow:hidden;border-radius:12px;color:#fff8ed;display:flex;text-align:left;padding:22px 23px;border:1px solid #fff2;box-shadow:0 5px 16px #122a2510}.explore-card>.library-art{z-index:-1}.explore-card .library-backdrop{object-position:center 48%;filter:brightness(.72)}.explore-card .library-art-shade{background:linear-gradient(90deg,#142b36e6,#142b3655)}.explore-card .library-cast{left:48%}.explore-card .library-actor{height:175%;bottom:-80%}.explore-card>span:last-child{display:flex;flex-direction:column;gap:4px}.explore-card small{font-size:7px;letter-spacing:1.5px;color:#f1dfb9}.explore-card strong{font-family:'Abyss Serif',serif;font-size:23px;font-weight:400;line-height:1.5}.explore-card>span>span{font-size:10px;color:#d6e0dc}.explore-card svg{height:13px;width:13px;margin-left:9px}.explore-card:hover .library-backdrop,.group-open:hover .library-backdrop{transform:scale(1.035)}
.section-heading{align-items:center}.section-heading h2{font-size:30px;margin-top:7px}.section-heading .eyebrow{font-size:8px}.section-heading #resultCount{font-size:11px}.toolbar{margin:22px 0 12px;padding:0 0 13px}.filters{gap:8px}.chip{border-radius:8px;padding:9px 15px;font-size:12px;border:1px solid var(--line);background:transparent}.chip.active{background:var(--accent);color:var(--bg);border-color:var(--accent)}.browse-options{padding:0;margin:0 0 27px;font-size:11px}.browse-options label,.browse-options select{font-size:11px}.browse-options select{background:transparent}.shelf-section{margin:0 0 39px}.shelf-section-head{margin-bottom:17px;align-items:flex-end}.shelf-section-head h2{font-size:25px;line-height:1.6;margin-top:4px}.shelf-section-head h2 small{font-family:'Abyss Sans',sans-serif;font-size:10px;background:var(--card);border:1px solid var(--line);border-radius:6px;padding:2px 7px;vertical-align:middle;margin-left:8px}.shelf-section-head .eyebrow{font-size:8px;letter-spacing:1.8px}.shelf-section-head>.text-button{font-size:11px}.section-cards,.shelf-grid:not(.overview-grid){grid-template-columns:repeat(4,minmax(0,1fr));gap:21px}.group-card{border-radius:12px;border:1px solid var(--line);background:var(--card);overflow:hidden;box-shadow:none;transition:transform .2s,box-shadow .2s}.group-card:hover{transform:translateY(-4px);box-shadow:0 10px 25px #16372f13}.group-open{display:block;width:100%;height:100%;text-align:left;padding:0}.group-card .cover,.group-card .cover.has-stand{height:190px}.cover.has-library-art>.cover-letter,.cover.has-library-art>.cover-ring,.cover.has-library-art>.cover-corner,.cover.has-library-art>.cover-portrait,.cover.has-library-art>.cover-stand{display:none!important}.cover.has-library-art .cover-category{position:absolute;z-index:4;left:12px!important;top:12px!important;right:auto;bottom:auto;background:#112a32c9!important;backdrop-filter:blur(8px)!important;color:#fff9e7!important;border:1px solid #ffffff2e;border-radius:5px;padding:4px 8px!important;font-family:'Abyss Sans',sans-serif;font-size:8px!important;font-weight:500;letter-spacing:.3px!important;line-height:1.6}.cover.has-library-art .cover-number{position:absolute;left:13px;bottom:11px;right:auto;color:#fffcf1;font-size:8px;font-weight:600;letter-spacing:2px;text-shadow:0 1px 6px #000;z-index:4}.cover.has-library-art .library-art-shade{background:linear-gradient(0deg,#0d2235b3,transparent 40%)}.category-character .art-card .library-actor{height:143%;bottom:-43%}.category-character .art-card .library-medallion{width:100px;height:100px}.card-bottom{padding:16px 16px 14px}.card-bottom h3{font-family:'Abyss Sans',sans-serif;font-size:15px;line-height:1.65;font-weight:600;margin:0 0 12px;min-height:49px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-meta{font-size:10px;line-height:1.7;color:var(--muted)}.card-meta svg{width:17px;height:17px}.mini-progress{height:2px;margin-top:11px;background:var(--line);opacity:.8}.mini-progress>span{background:var(--gold)}
.resume-panel{border-radius:12px;border:1px solid var(--line);background:var(--card);padding:13px;gap:17px;margin-bottom:32px}.resume-art{width:110px;align-self:stretch;min-height:78px;position:relative;border-radius:8px;overflow:hidden;flex-shrink:0}.resume-art .library-cast{display:none}.resume-info>p:first-child{font-size:8px;letter-spacing:1px;color:var(--muted)}.resume-info h3{font-size:14px;margin:5px 0;font-family:'Abyss Sans',sans-serif;line-height:1.7}.resume-info>p:last-child{font-size:10px}.resume-panel .secondary{font-size:11px;white-space:nowrap;border-radius:7px;margin-left:auto}
.illustrated-group{position:relative;isolation:isolate;overflow:hidden;min-height:270px;border:0;border-radius:15px;padding:31px 35px;margin:0 0 22px;color:#fff8eb;background:#142f38}.illustrated-group>.library-art{z-index:-1}.art-banner .library-cast{left:50%}.art-banner .library-art-shade{background:linear-gradient(90deg,#10272ff2 0%,#10272fda 38%,#10272f40 80%)}.group-head-copy{position:relative;max-width:70%}.group-head-copy>.text-button{color:#dddcc7;font-size:11px;margin:0 0 18px}.group-head-copy h2{color:#fff8e8;font-size:33px;line-height:1.5;margin:0 0 15px}.group-head-copy .muted{color:#d4dcd5}.group-head-copy .secondary{border:1px solid #e6d8b957;background:#122e3366;color:#fff8eb;border-radius:7px;font-size:10px}.group-intro{color:#d4dcd5;font-size:11px;margin-top:13px;line-height:1.8}.chapter-list{display:flex;flex-direction:column;gap:9px}.chapter-row{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:12px 15px;gap:16px;margin:0}.chapter-row:has(.chapter-thumbnail)>.chapter-num{display:none}.chapter-thumbnail{position:relative;width:83px;height:61px;overflow:hidden;flex-shrink:0;border-radius:6px;background:#243d34}.chapter-thumbnail img{width:100%;height:100%;object-fit:cover}.chapter-thumbnail>span{position:absolute;left:5px;bottom:4px;min-width:21px;text-align:center;background:#102e38c9;border-radius:3px;color:white;font-size:9px;padding:0 4px}.chapter-open strong{font-family:'Abyss Sans',sans-serif;font-size:13px;font-weight:500;line-height:1.8}.chapter-open small{font-size:10px;line-height:1.8;margin-top:4px}.chapter-row:hover{border-color:var(--gold);background:var(--bg)}.library-footer{margin-top:45px;padding:25px 0 29px}.library-footer>span:first-child{font-family:'Abyss Serif',serif;font-size:20px}.library-footer>span:nth-child(2){font-size:11px}
.night #library{background:radial-gradient(ellipse at 90% 0%,#25403780,transparent 34%)}.night .group-card{border-color:#546b504d}.night .discovery .search{background:#20352b}.night .group-card:hover{box-shadow:0 12px 28px #0003}.night .chip.active{color:#152d25}.sepia .hero{box-shadow:0 8px 24px #51412918}
@media(min-width:1550px){.shelf-grid:not(.overview-grid){grid-template-columns:repeat(4,minmax(0,1fr))}.group-card .cover{height:205px}}
@media(max-width:1050px){.library-main{padding:0 27px}.hero{min-height:425px;padding:37px}.hero-copy{max-width:53%}.hero h1{font-size:43px}.art-hero .library-cast{left:45%}.discovery{flex-direction:row;align-items:center}.discovery .search-tools{width:55%}.discovery h2{font-size:15px}.section-cards,.shelf-grid:not(.overview-grid){grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.explore-card{padding:19px 16px}.explore-card strong{font-size:20px}.group-head-copy{max-width:80%}}
@media(max-width:700px){.topbar{height:72px;padding:0 18px;gap:10px}.brand{font-size:24px}.brandmark{width:30px;height:37px;font-size:21px}.brand-sub{font-size:7px;letter-spacing:3px}.topbar nav{gap:17px}.nav{font-size:10px}.topbar>.icon-button{width:29px}.library-main{padding:0 17px}.discovery{padding:23px 0 19px;flex-direction:column;align-items:stretch;gap:15px}.discovery h2{font-size:15px}.discovery .eyebrow{font-size:7px}.discovery .search-tools{width:100%}.discovery .search{padding:11px 12px}.discovery select{max-width:93px;font-size:11px}.hero{padding:26px 24px 28px;border-radius:15px;min-height:425px;margin:0 0 14px}.hero-copy{max-width:80%}.hero h1{font-size:35px;letter-spacing:-1px;margin:19px 0 15px;line-height:1.26}.hero-copy>.eyebrow{font-size:6.5px;letter-spacing:1px;white-space:nowrap}.hero-copy>p{font-size:11px;max-width:215px;line-height:1.9}.hero .primary{font-size:11px;padding:10px 15px;min-height:41px;margin-top:20px}.hero-foot{font-size:8px;max-width:220px;margin-top:20px;gap:6px}.hero-scene-caption{display:none}.art-hero .library-cast{left:50%;right:-45%;opacity:.76}.art-hero .library-actor{height:105%;bottom:-21%;left:calc(35% + (var(--cast-order) - .5)*50%)}.art-hero .library-cast>.library-actor:last-child{display:none}.art-hero .library-art-shade{background:linear-gradient(90deg,#102730f8 0%,#102730d9 45%,#10273055 100%),linear-gradient(0deg,#102730b3,transparent 55%)}.explore-nav{gap:9px;margin-bottom:28px}.explore-card{padding:12px 10px;min-height:111px;border-radius:9px;align-items:flex-end}.explore-card small{display:none}.explore-card strong{font-size:15px;line-height:1.4;max-width:100px;min-height:41px}.explore-card>span>span{font-size:8px}.explore-card svg{display:none}.explore-card .library-cast{display:none}.explore-card .library-art-shade{background:linear-gradient(0deg,#102730ed,#10273033)}.section-heading h2{font-size:25px}.section-heading #resultCount{font-size:9px;margin:0}.section-heading .eyebrow{font-size:7px}.toolbar{margin:19px 0 11px}.filters{gap:6px}.chip{font-size:10px;padding:8px 10px;border-radius:6px}.browse-options{gap:9px;margin-bottom:24px}.browse-options label,.browse-options select{font-size:10px}.browse-options>.text-button{font-size:10px;margin-left:auto}.shelf-section{margin-bottom:31px}.shelf-section-head h2{font-size:23px}.shelf-section-head .eyebrow{font-size:6.5px;letter-spacing:1px}.shelf-section-head h2 small{font-size:8px;padding:1px 5px}.shelf-section-head>.text-button{font-size:10px}.section-cards,.shelf-grid:not(.overview-grid){grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.group-card{border-radius:9px}.group-card .cover,.group-card .cover.has-stand{height:157px}.cover.has-library-art .cover-category{left:8px!important;top:8px!important;font-size:7px!important;padding:3px 5px!important;border-radius:4px}.cover.has-library-art .cover-number{left:9px;bottom:9px;font-size:7px;letter-spacing:1.4px}.card-bottom{padding:12px 11px}.card-bottom h3{font-size:12px;min-height:40px;line-height:1.65;margin-bottom:8px}.card-meta{font-size:9px}.card-meta svg{width:14px;height:14px}.mini-progress{margin-top:10px}.library-medallion{width:65px;height:65px}.category-character .art-card .library-medallion{width:85px;height:85px}.resume-panel{gap:10px;padding:10px;margin-bottom:25px}.resume-art{width:62px;min-height:70px}.resume-info>p:first-child{font-size:6px;letter-spacing:.5px}.resume-info h3{font-size:10px;margin:4px 0}.resume-info>p:last-child{font-size:8px}.resume-panel .secondary{font-size:9px;padding:6px}.illustrated-group{padding:24px 20px;min-height:245px;border-radius:12px}.group-head-copy{max-width:95%}.group-head-copy h2{font-size:24px;line-height:1.5}.group-head-copy>.text-button{font-size:10px;margin-bottom:15px}.group-head-copy .button-row{gap:9px}.group-head-copy .secondary{font-size:9px;padding:8px 10px}.group-intro{font-size:10px;max-width:240px}.art-banner .library-cast{left:50%;opacity:.55}.art-banner .library-art-shade{background:linear-gradient(90deg,#10272ff5,#10272fad)}.chapter-row{padding:10px;gap:10px}.chapter-thumbnail{width:58px;height:55px}.chapter-open strong{font-size:11px}.chapter-open small{font-size:9px}.chapter-row>.favorite{width:28px;height:32px}.native-badge{font-size:7px;margin-left:4px;padding:1px 4px}.library-footer{margin-top:28px}.library-footer>span:nth-child(2){font-size:10px}.library-footer>span:first-child{font-size:18px}}
@media(max-width:370px){.topbar nav{gap:11px}.nav{font-size:9px}.hero{padding:24px 20px}.hero-copy{max-width:90%}.hero h1{font-size:32px}.explore-card strong{font-size:13px}.chip{font-size:9px;padding:8px}.cover.has-library-art .cover-category{font-size:6px!important}.card-meta{font-size:8px}}
@media(max-width:700px){.section-heading>div{min-width:0;flex:1}.section-heading #resultCount{white-space:nowrap;font-size:8px}.section-heading h2{font-size:23px}.hero-copy{max-width:90%}.hero h1{font-size:34px}.hero-copy>p{max-width:215px}}
/* Anchor the visible face, rather than padding, hats or weapons around the body. */
.library-art{--head-size:.16;--head-line:.35}.art-hero{--head-size:.155;--head-line:.35}.art-portal{--head-size:.19;--head-line:.38}.art-banner{--head-size:.17;--head-line:.34}
.library-art .library-cast .library-actor{height:calc(var(--head-size)/var(--face-height)*100%);top:calc((var(--head-line) - var(--face-y)*var(--head-size)/var(--face-height))*100%);bottom:auto;left:calc(30% + var(--cast-order)*43%);transform:translateX(calc(var(--face-x)*-100%));opacity:0;transition:opacity .15s ease}
.library-art .library-cast[data-count="1"] .library-actor{left:50%}.library-art .library-actor.images-ready{opacity:1}.library-art-layer{object-fit:fill}
@media(max-width:700px){.art-hero{--head-size:.14;--head-line:.35}.art-hero .library-cast .library-actor{left:38%}.art-card{--head-size:.16;--head-line:.35}}
/* Keep face anchors separated and preserve complete, opaque character silhouettes. */
.library-cast{--cast-count:1}.library-cast[data-count="2"]{--cast-count:2;--head-size:.13}
.library-slot{position:absolute;top:0;bottom:0;left:calc(var(--slot-index)*100%/var(--cast-count));width:calc(100%/var(--cast-count));overflow:visible}
.library-art .library-cast .library-slot .library-actor{left:50%}
.library-slot .library-medallion{left:50%!important}
.actor-composite{display:block;position:absolute;pointer-events:none}
.has-composite>img{visibility:hidden!important}
.section-cards,.shelf-grid:not(.overview-grid){grid-template-columns:repeat(3,minmax(0,1fr))}
.shelf-character .section-cards,#shelfGrid[data-category="character"]:not(.overview-grid){grid-template-columns:repeat(4,minmax(0,1fr))}
.category-main .cover,.category-event .cover{height:230px}
.art-hero .library-cast{--head-size:.145}
@media(max-width:1050px){.section-cards,.shelf-grid:not(.overview-grid){grid-template-columns:repeat(2,minmax(0,1fr))}.shelf-character .section-cards,#shelfGrid[data-category="character"]:not(.overview-grid){grid-template-columns:repeat(3,minmax(0,1fr))}.category-main .cover,.category-event .cover{height:215px}}
@media(max-width:700px){.section-cards,.shelf-grid:not(.overview-grid){grid-template-columns:1fr}.shelf-character .section-cards,#shelfGrid[data-category="character"]:not(.overview-grid){grid-template-columns:repeat(2,minmax(0,1fr))}.category-main .cover,.category-event .cover{height:215px}.art-hero .library-slot{left:0;width:100%}.art-hero .library-slot:last-child{display:none}.art-hero .library-cast .library-slot .library-actor{left:38%}}

.content-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:flex-end}#contentDialog{width:min(760px,94vw);max-height:90dvh;overflow:auto}#contentDialog h2{font-size:25px}.content-file{display:grid;gap:8px;margin:20px 0}.content-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.content-fields[hidden]{display:none}.content-fields label{display:grid;gap:6px;font-size:13px}.content-fields input:not([type=checkbox]),.content-fields select{width:100%;min-width:0}.content-fields>p{grid-column:1/-1}.content-pack-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.content-pack-row>span{flex:1;min-width:150px;overflow-wrap:anywhere}.content-preview-row{padding:8px 0;border-bottom:1px solid var(--line);font-size:13px}#contentPreview{max-height:220px;overflow:auto}#contentStatus{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:600px){.content-actions{justify-content:flex-start}.section-heading:has(.content-actions){flex-wrap:wrap;gap:14px}.content-fields{grid-template-columns:1fr}#contentDialog .button-row{flex-wrap:wrap}}
