body[data-reference=true] #account-status{display:none}#precision-view [data-shrink]>.hidden{height:100dvh}#precision-view [data-shrink=true] .shell-history,#precision-view [data-shrink=true] .shell-account-slot{display:none}.shell-account-slot{border-top:1px solid #ffffff08}.shell-account{height:56px;display:flex;gap:12px;align-items:center;padding:12px 16px;font-size:12px;color:#e6e6e6}.shell-avatar{width:32px;height:32px;border-radius:50%;background:#292929;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-size:23px;color:#5d5d5d}.shell-account>span:nth-child(2){flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shell-account:hover{background:#ffffff08}.shell-history{padding:12px 16px 20px;font-size:12px}.shell-history-label{font-size:14px;color:#777;display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.shell-history-tabs{display:flex;gap:8px;margin-bottom:12px}.shell-history-tabs button{padding:4px 8px;border:1px solid #ffffff10;border-radius:8px;color:#a0a0a0;background:transparent;font-size:12px;height:28px}.shell-history-tabs [aria-pressed=true]{border-color:#999;color:#eee}.shell-history-row>a{min-width:0;flex:1;display:flex;gap:8px;padding:0;align-items:center;color:#eee}.shell-history-list img{height:48px;width:32px;border-radius:4px;object-fit:cover}.shell-history-list strong{font-weight:400;font-size:14px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shell-history-list div{min-width:0;flex:1}.shell-history-list p{color:#777;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:3px 0}.shell-history-empty{color:#777;line-height:1.6;margin-top:16px}.shell-content{min-width:0;flex:1}.shell-page-header{height:56px;border-bottom:1px solid #ffffff0d;display:flex;align-items:center;justify-content:space-between;padding:0 16px;font-size:16px}.shell-page-header h1{font:inherit;margin:0;color:#ececec}.shell-page-header a,.shell-page-header button{color:#777;display:flex;align-items:center}.shell-page-header .shell-back{display:flex;gap:12px;color:#ddd}.shell-page-header .shell-back svg{transform:rotate(180deg)}.shell-content button,.shell-content a{cursor:pointer}.shell-content button:focus-visible,.shell-content a:focus-visible{outline:2px solid #dfff2c;outline-offset:3px}.shell-white-button{display:inline-flex;justify-content:center;align-items:center;gap:8px;height:36px;border-radius:6px;background:#efefef;color:#171717;padding:0 16px;font-size:14px;font-weight:500;border:0}.shell-empty{color:#777;text-align:center;padding:80px 20px;font-size:14px}.shell-empty svg{display:block;margin:0 auto 16px;color:#666}.shell-empty a{display:inline-block;color:#ddd;margin-top:20px;text-decoration:underline}.shell-footer{border-top:1px solid #ffffff0d;padding:40px 32px;color:#777;font-size:12px;display:flex;gap:60px;flex-wrap:wrap;max-width:960px;margin:80px auto 0}.shell-footer div{display:flex;flex-direction:column;gap:12px}.shell-footer strong{color:#ccc;font-weight:500}.shell-footer p{width:100%;font-size:11px}
.profile-content{max-width:640px;margin:56px auto 0;padding:0}.profile-card{padding:16px;border-radius:16px;background:#191919;margin-bottom:32px}.profile-identity{display:flex;align-items:center;gap:12px;min-height:48px}.profile-identity .shell-avatar{width:40px;height:40px}.profile-identity>div{flex:1}.profile-identity strong{display:block;font-size:16px;font-weight:400;color:#eee}.profile-identity small{display:block;color:#999;font-size:14px;margin-top:4px}.profile-identity>svg{color:#666}.profile-credit{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:16px}.profile-credit a{margin-left:auto;background:#eee;color:#111;font-size:12px;padding:2px 8px;border-radius:3px}.profile-menu{margin-bottom:48px}.profile-menu h2{font-size:14px;font-weight:400;color:#777;padding:8px 4px;margin:0 0 8px}.profile-menu>a,.profile-menu>button{display:flex;align-items:center;width:100%;gap:12px;min-height:48px;color:#eee;text-align:left;background:none;border:0;padding:12px 4px;font-size:14px}.profile-menu>a>svg:first-child,.profile-menu>button>svg:first-child{color:#777}.profile-menu>a>svg:last-child,.profile-menu>button>svg:last-child{margin-left:auto;color:#666;width:14px}.profile-menu>a:hover,.profile-menu>button:hover{background:#ffffff04}.profile-settings{max-width:640px;margin:48px auto;padding:0 16px}.profile-settings label{display:block;color:#aaa;font-size:14px;margin:24px 0 8px}.profile-settings input,.profile-settings textarea,.profile-settings select{background:#1c1c1c;border:1px solid #ffffff15;border-radius:8px;padding:12px;color:#eee;width:100%;font:inherit}.profile-settings select{width:auto;min-width:150px}.profile-settings form>.shell-white-button{margin-top:24px}.profile-settings .settings-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid #ffffff0c;font-size:14px}.profile-settings .settings-row input{width:20px}.library-content{max-width:768px;margin:12px auto;padding:0 16px;min-height:65vh}.library-header{display:flex;align-items:center;justify-content:space-between;padding:16px 0}.library-header h1{font-size:20px;font-weight:600;margin:0}.library-tabs{display:flex;gap:8px;padding:20px 0}.library-tabs button{height:36px;border:1px solid #ffffff1a;color:#aaa;border-radius:8px;padding:0 12px;background:none;font-size:14px}.library-tabs button[aria-selected=true]{background:#eee;color:#171717}.library-controls{display:flex;align-items:center;gap:8px;border-bottom:1px solid #ffffff0d;padding:0 0 16px;font-size:14px}.library-controls>span{flex:1}.library-controls select{color:#aaa;border:1px solid #ffffff1a;background:#171717;border-radius:8px;padding:8px 10px;font-size:14px}.library-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 16px;padding:24px 0}.library-items article img{width:100%;aspect-ratio:2/3;border-radius:8px;object-fit:cover}.library-items article h2{font-size:14px;line-height:20px;font-weight:400;margin:8px 0 4px}.library-items article p{color:#888;font-size:12px;margin:0}.library-items .shell-empty{grid-column:1/-1}.library-draft{padding:20px;background:#191919;border:1px solid #ffffff12;border-radius:12px}.library-draft small{display:block;margin-top:16px;color:#777}.replica-story-detail{max-width:768px;margin:0 auto;padding:32px 24px 100px}.replica-story-top{display:flex;gap:32px;margin:24px 0 32px}.replica-story-top>img{width:192px;height:288px;border-radius:12px;object-fit:cover}.replica-story-top h1{font-size:24px;line-height:1.3;margin:0 0 20px;font-weight:500}.replica-story-top p{color:#999;line-height:1.6}.replica-story-detail h2{font-size:18px;font-weight:500;margin:32px 0 20px}.replica-story-detail .story-description{white-space:pre-wrap;line-height:1.8;color:#ddd}.replica-story-detail .story-settings{display:flex;justify-content:space-between;padding:16px 0;border-top:1px solid #ffffff10}.replica-story-detail .story-settings select{background:#222;color:#ddd;padding:8px 12px;border:1px solid #ffffff1a;border-radius:8px}.replica-story-detail .story-play-bar{position:sticky;bottom:0;background:#171717ee;padding:20px;border-top:1px solid #ffffff0d;display:flex;justify-content:flex-end}.replica-story-detail .story-public-body img{max-width:100%}.replica-story-detail .story-public-body{padding:0!important;overflow:visible!important;max-height:none!important}.replica-story-detail .story-public-body>div{max-height:none!important}.replica-story-detail [data-preview-expand]{display:none}.replica-story-detail .story-public-body [style*="max-height"]{max-height:none!important}.replica-story-detail .story-public-body h1{font-size:20px}
@media(max-width:1023px){#precision-view [data-shrink]>.hidden{height:auto}.shell-page-header{position:sticky;top:0;z-index:10;background:#111}.profile-content{margin-top:24px;padding:0 16px}.shell-footer{padding-bottom:90px;gap:32px}.replica-story-detail{padding:16px 16px 90px}.library-content{margin-top:0}}@media(max-width:600px){.replica-story-top{gap:16px}.replica-story-top>img{width:128px;height:192px}.replica-story-top h1{font-size:20px}.library-items{gap:20px 10px}.library-header h1{font-size:18px}.profile-menu{margin-bottom:32px}}

#modal:has(.shell-notifications){width:512px;max-width:calc(100vw - 24px);height:576px;max-height:90dvh;padding:0;border:1px solid #ffffff1a;border-radius:16px;background:#171717;overflow:hidden}#modal:has(.shell-notifications)>.close{right:18px;top:18px;width:28px;height:28px;font-size:24px;color:#999}.shell-notifications{height:100%;display:flex;flex-direction:column}#modal .shell-notifications h2{text-align:left;height:64px;box-sizing:border-box;margin:0;padding:24px 56px 24px 24px;font-size:16px;line-height:16px;font-weight:500}.shell-notifications [role=tablist]{display:flex;border-bottom:1px solid #ffffff1a}.shell-notifications [role=tab]{flex:1;height:48px;min-width:0;padding:0 8px;background:none;border:0;border-bottom:2px solid transparent;color:#999;font:600 14px Inter,sans-serif;cursor:pointer}.shell-notifications [role=tab][aria-selected=true]{border-bottom-color:#f5f5f5;color:#f5f5f5}.shell-notifications [role=tab]:hover{background:#ffffff08}.shell-notifications [role=tab]:focus-visible{outline:2px solid #ddd;outline-offset:-3px}.shell-notifications [role=tabpanel]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:16px 4px 56px}.shell-notifications strong{font-size:18px;font-weight:600;line-height:28px}.shell-notifications p{margin:8px 0 0;font-size:14px;line-height:22px;color:#999}

.announcement-page{width:100%;max-width:576px;margin:0 auto;padding:12px;box-sizing:border-box}.announcement-row{display:flex;flex-direction:column;gap:8px;border-bottom:1px solid #ffffff14;padding:12px 0}.announcement-row p{margin:0;font-size:16px;font-weight:500;line-height:24px;color:#eee}.announcement-page time{font-size:14px;color:#999;line-height:16px}.announcement-badge{width:fit-content;font-size:12px;line-height:16px;padding:2px 6px;border-radius:4px}.announcement-update{background:#172d48;color:#7ba9f3}.announcement-notice{background:#333;color:#bbb}.announcement-event{background:#3f3319;color:#e6bc62}.announcement-detail{padding:20px 0}.announcement-detail h2{font-size:22px;line-height:32px;margin:16px 0 8px}.announcement-detail>p{font-size:16px;line-height:28px;margin:32px 0;color:#ddd}.announcement-detail a{text-decoration:underline}.shell-page-header:has([data-announcement-back]){justify-content:flex-start;gap:12px}.shell-page-header [data-announcement-back]{transform:rotate(180deg);padding:4px;background:none;border:0}
/* Native scrolling preserves Mac trackpad momentum and touch gestures. */
.native-carousel{overflow-x:auto!important;overflow-y:hidden;scrollbar-width:none;scroll-snap-type:x proximity;scroll-padding-inline-start:80px;touch-action:pan-x pan-y;overscroll-behavior-x:contain}
.native-carousel::-webkit-scrollbar{display:none}
.native-carousel [aria-roledescription="slide"]{scroll-snap-align:start}
.native-carousel:focus-visible{outline:1px solid #8c8c96;outline-offset:-2px}

.collection-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.collection-heading label{color:#999;font:13px system-ui;display:flex;gap:8px;align-items:center}.collection-heading select{border:1px solid #ffffff24;border-radius:8px;background:#1d1d20;color:#eee;padding:8px 12px}.collection-count{color:#999;font:13px system-ui;margin:0 0 24px}@media(max-width:600px){.collection-heading{align-items:flex-start;flex-direction:column}.collection-heading h1{margin-bottom:0}}

@media(max-width:640px){.native-carousel{scroll-padding-inline-start:16px}}

.precision-grid>a[data-grid-rank]{position:relative}.precision-grid>a[data-grid-rank]::before{content:attr(data-grid-rank);position:absolute;z-index:2;top:8px;left:8px;min-width:20px;padding:3px;border-radius:4px;background:#000a;color:white;text-align:center;font:600 14px/18px system-ui}
/* Shared dialog and community scale, with touch-sized controls. */
#title-preview .title-preview-header{display:flex;align-items:center;gap:12px;padding:18px 24px;border-bottom:1px solid #ffffff12;min-height:64px;box-sizing:border-box}
#title-preview .title-preview-header>button[data-preview-close]{margin-left:auto}
#title-preview [data-preview-close],.dialog-back{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;font-size:28px;line-height:1;border-radius:8px;background:transparent;color:#eee;flex-shrink:0}
#title-preview.search-dialog .title-preview-header>button{margin-left:0}#title-preview.search-dialog{height:80dvh}
#title-preview .title-preview-footer{padding:16px 24px;border-top:1px solid #ffffff12}#title-preview .title-preview-footer>button{width:100%}
#title-preview .public-detail{padding:24px}.public-detail-top{display:flex;gap:24px}.public-detail-top>img{width:160px;height:240px;object-fit:cover;border-radius:12px}.public-detail h1{font-size:24px;line-height:1.3;font-weight:600;margin:0 0 16px}.public-detail p{white-space:pre-wrap;color:#aaa;line-height:1.7;margin:12px 0}.public-detail section{margin-top:32px}.public-detail h2,.social-heading h2{font-size:18px;font-weight:600}.public-detail button{padding:10px 16px;background:#262626;border:1px solid #ffffff1a;border-radius:8px}.public-detail section button{display:flex;justify-content:space-between;width:100%}
.search-dialog-content{padding:8px 24px 24px}.search-dialog-input{display:flex;align-items:center;gap:12px;border:1px solid #ffffff24;border-radius:12px;padding:12px 16px;margin:12px 0 20px}.search-dialog-input input{width:100%;min-width:0;background:none;border:0;color:#eee;font:14px Inter,sans-serif;outline:none}.search-kind-tabs{display:flex;gap:8px;margin-bottom:24px;overflow:auto}.search-kind-tabs button{min-height:40px;padding:8px 14px;border-radius:8px;color:#999;white-space:nowrap}.search-kind-tabs button[aria-selected=true]{background:#333;color:#fff}.search-dialog-content h3{margin-bottom:16px;color:#aaa}.search-dialog-content .precision-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 12px}.search-dialog-content .precision-grid a{min-width:0}.search-dialog-content img{width:100%;object-fit:cover}.creator-search{display:grid;gap:16px}.inline-category-panel{padding:32px 80px 80px;min-height:600px}.inline-category-panel .collection-heading{margin-bottom:24px}.category-selected{color:#fff!important;background:#303033!important;border-color:#d4a853!important;box-shadow:0 0 0 1px #d4a853}.inline-category-panel[hidden],[data-category-original-hidden][hidden]{display:none!important}
.social-comments{padding:24px;border-top:1px solid #ffffff14}.social-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.social-heading small{font-size:12px;color:#999}.social-comments select,.creator-profile select{background:#252525;border:1px solid #ffffff24;color:#ddd;padding:8px;border-radius:8px;font-size:13px}.social-disclosure{display:block;color:#858585;font-size:12px;line-height:1.6}.social-comments form{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.social-comments form>label{width:100%;color:#bbb}.social-comments textarea{width:100%;resize:vertical;background:#212121;color:#eee;border:1px solid #ffffff24;border-radius:8px;padding:12px;font:14px/1.6 Inter,sans-serif}.social-comments form>button{padding:8px 16px;border-radius:8px}.social-comment-list article{padding:20px 0;border-top:1px solid #ffffff12}.social-comment-list header{display:flex;align-items:center;gap:12px}.social-comment-list header a,.creator-link{color:#ddd;font-size:14px}.social-comment-list small{color:#777;font-size:11px}.social-comment-list p,.creator-feed-item p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7;margin:12px 0}.social-comment-list article button{padding:6px 12px;border:1px solid #ffffff14;border-radius:6px;margin-right:8px;font-size:12px;color:#aaa}.social-comment-list article button[aria-pressed=true]{color:#e0ff2e}.creator-profile{max-width:768px;margin:40px auto;padding:0 24px 80px}.creator-identity{text-align:center}.creator-avatar{height:88px;width:88px;display:grid;place-items:center;background:#28282e;border-radius:50%;font-size:40px;margin:0 auto 16px}.creator-identity h2{font-size:22px}.creator-identity p{color:#aaa;margin:12px 0}.creator-actions{display:flex;justify-content:center;gap:12px;margin:24px 0}.creator-actions button{min-width:120px;min-height:40px;border:1px solid #ffffff24;border-radius:8px}.creator-tabs{display:flex;border-bottom:1px solid #ffffff20;margin-top:32px}.creator-tabs button{flex:1;padding:16px;color:#999;border-bottom:2px solid transparent}.creator-tabs button[aria-selected=true]{border-color:#eee;color:#eee}.creator-work-controls{display:flex;align-items:center;gap:12px;margin:24px 0}.creator-work-controls button{padding:8px 16px;border:1px solid #ffffff14;border-radius:6px;color:#999}.creator-work-controls [aria-pressed=true]{color:#eee;border-color:#aaa}.creator-work-controls label{margin-left:auto;color:#999;font-size:13px}.creator-title-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 16px}.creator-title-grid img{width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:12px}.creator-title-grid h3{font-size:14px;line-height:1.5;margin:8px 0}.creator-title-grid p,.creator-count{font-size:12px;color:#999}.creator-feed-item{border-bottom:1px solid #ffffff14;padding:20px 0}.creator-feed-item a{font-size:12px;color:#999;text-decoration:underline}.shell-notifications strong{font-size:16px;line-height:24px}.shell-notifications p{font-size:13px}.shell-notifications [role=tab]{font-weight:500}
@media(max-width:767px){.inline-category-panel{padding:24px 16px 80px}.search-dialog-content{padding:8px 16px 16px}.search-dialog-content .precision-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#title-preview .public-detail{padding:16px}.public-detail-top{gap:16px}.public-detail-top>img{width:112px;height:168px}.public-detail h1{font-size:20px}.social-comments{padding:20px 16px}.creator-profile{margin-top:24px;padding:0 16px 80px}.creator-title-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.creator-work-controls{flex-wrap:wrap}}
#title-preview .captured-dialog-body{padding:24px}#title-preview .captured-dialog-body>div:first-child>div:first-child{flex-shrink:0}.search-dialog-content [data-name]{overflow-wrap:anywhere}#precision-view button[aria-pressed=false].category-selected{background:transparent!important}.creator-work-controls[hidden]{display:none}.builder-ai [hidden]{display:none!important}
@media(max-width:767px){#title-preview .captured-dialog-body{padding:16px}}
#precision-view button[data-category-tab][aria-pressed=false]{background:transparent!important;color:#a3a3a3!important}#precision-view button[data-category-tab][aria-pressed=true]{background:#303033!important;color:#fafafa!important}
html:has(#precision-view[data-page=home]),html:has(#precision-view[data-page=character]){overflow-anchor:none}

/* Transparent branding with the original purple and gold artwork. */
img.storydate-brand{box-sizing:border-box;padding:0;border-radius:0;background:transparent;object-fit:contain;flex-shrink:0}
img.storydate-brand-halo{background:radial-gradient(ellipse at 50% 48%,#d8c8abee 0%,#c2aa8470 43%,transparent 74%)}
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;scrollbar-width:thin;scrollbar-color:#2e2b26 transparent}
::selection{background:rgba(212,168,83,.28);color:#fff}
@media(prefers-reduced-motion:reduce){.character-reading .session-message,.character-reading .session-message.streaming .message-content::after{animation:none!important}}
.community-note{color:#888;font-size:13px;margin:0 0 16px}.community-card a{display:block}.community-card img,.community-noimg{width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:10px;margin-bottom:12px;background:#1a1813}.community-noimg{display:grid;place-items:center;color:#7a6a45}

.search-dialog-content .precision-grid{display:grid}
.search-dialog-content .precision-grid > [data-story-card]{width:100%}

.shell-signin-note{margin:0;font:400 11.5px/1.45 Inter,system-ui,sans-serif;color:#8e8e93;text-align:center}

.shell-history-row,.session-history-item {display:flex;align-items:center;gap:4px;min-width:0}
.shell-history-row {margin-bottom:12px}
.session-history-item>a {flex:1;min-width:0}
.session-history-item small>span {display:inline}
.shell-history-tabs button[aria-pressed=true],.session-history-tab[aria-pressed=true] {
  background:#f5f3ee!important;color:#121212!important;border-color:transparent!important;border-radius:8px;
}

.collection-more {
  display:inline-grid;place-items:center;flex:none;width:32px;height:32px;padding:0;
  border:0;border-radius:8px;color:#c2c2c6;background:transparent;cursor:pointer;
  transition:opacity .13s ease,background .13s ease;
}
.collection-more svg {display:block;width:28px;height:28px}
.collection-more:is(:hover,[aria-expanded=true]) {background:#ffffff15;color:#fff}
.collection-more:focus-visible,.collection-popover button:focus-visible {outline:2px solid #ddd;outline-offset:-2px}
@media(hover:hover) and (pointer:fine) {
  .collection-more {opacity:0}
  :is(.library-tile,.shell-history-row,.session-history-item):is(:hover,:focus-within) .collection-more,
  .collection-more[aria-expanded=true] {opacity:1}
}
@media(hover:none),(any-pointer:coarse),(max-width:767px) {
  .collection-more {width:44px;height:44px;opacity:1}
}
.collection-popover {
  position:absolute;z-index:60;box-sizing:border-box;background:#1a1a1e;
  backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:4px;
  box-shadow:0 12px 32px rgba(0,0,0,.6);width:max-content;min-width:124px;max-width:calc(100vw - 16px);
}
.collection-popover button {
  display:flex;align-items:center;gap:9px;width:100%;min-height:36px;
  color:#e5e5e7;background:transparent;border:0;border-radius:6px;padding:6px 10px;
  font:500 13px/18px Inter,system-ui,sans-serif;text-align:start;cursor:pointer;
}
.collection-popover button:is(:hover,:focus-visible) {background:rgba(239,68,68,.12);color:#f87171}
@media(max-width:767px){.collection-popover button{min-height:44px}}
@media(prefers-reduced-motion:reduce){.collection-more{transition:none}}

.library-items .library-tile {position:relative;min-width:0;padding:0;border:0;background:none}
.library-tile>a:first-child {display:block;min-width:0}
.library-poster {
  display:grid;place-items:center;overflow:hidden;width:100%;aspect-ratio:2 / 3;
  background:#232326;color:#86868b;border-radius:8px;
}
.library-items .library-poster img {display:block;width:100%;height:100%;object-fit:cover}
[data-library-id="sn-julian"] img {object-position:76% 35%}
.library-items .library-tile :is(h2,p) {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.library-items .library-tile h2 {margin:8px 0 2px;font-size:14px;line-height:20px;font-weight:500}
.library-items .library-tile p {margin:0;color:#a2a2a7;font-size:12px;line-height:18px}
.library-tile>.collection-more,.library-tile>.library-play {
  position:absolute;top:6px;right:6px;background:rgba(18,18,20,.8);color:#f8f8fa;backdrop-filter:blur(8px);
}
.library-tile>.library-play {display:grid;place-items:center;min-height:32px;border-radius:8px;padding:0 8px;font-size:12px}
.library-controls .library-sort {
  color-scheme:dark;background-color:rgba(32,32,36,.86);color:#e5e5e7;border:1px solid #ffffff20;
  border-radius:10px;backdrop-filter:blur(10px);padding:7px 10px;cursor:pointer;
}
.mobile-history-toggle {display:none}
.mobile-history-panel {position:fixed;inset:56px auto auto 8px;margin:0;width:min(290px,calc(100vw - 16px));max-height:calc(100dvh - 80px);overflow:auto;padding:16px;color:#f3f3f4;background:#171719;border:1px solid #ffffff20;border-radius:12px;box-shadow:0 12px 32px #0009}
.mobile-history-panel {display:none}
.mobile-history-panel:popover-open {display:block}
.mobile-history-panel .shell-history {display:block}
.collection-popover[popover] {position:fixed;inset:auto;margin:0}
.library-items .library-tile.library-draft>a:first-child {height:auto;padding:0}
.library-items .library-tile.library-draft img {max-height:none;margin:0;border-radius:0}
.library-items .library-tile.library-draft>.library-play {height:auto;padding:0 9px}
@media(max-width:767px){
  .library-header .mobile-history-toggle {display:none;place-items:center;margin-left:auto;width:44px;height:44px;border-radius:9px;color:#bbb}
  @supports selector(:popover-open){.library-header .mobile-history-toggle{display:grid}}
  .library-content:not(.community-page) .library-items {grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 8px}
  .mobile-history-panel .shell-history-tabs button {min-height:44px}
}
[data-library-id="sn-seven-nights"] img {object-position:84% center}
@media(max-width:767px){
  .library-controls:has(.library-sort:only-of-type)>span {flex:1}
  .library-tile>.collection-more {top:0;right:0;background:transparent;backdrop-filter:none}
  .library-tile>.collection-more svg {width:28px;height:28px;border-radius:8px;background:#17171bcc;backdrop-filter:blur(8px)}
}

/* Cast metadata occupies one byline in a gallery and wraps on the stage. */
.cast-strip {margin:12px 0;min-width:0}
.cast-strip>small,.cast-group>small {display:block;color:#a9a6a1;font-size:12px;margin-bottom:6px}
.cast-strip>div,.cast-group>div,.cast-picked {display:flex;flex-wrap:wrap;gap:6px}
.cast-chip {display:inline-flex;align-items:center;gap:6px;max-width:100%;box-sizing:border-box;border:1px solid #ffffff20;border-radius:20px;padding:4px 10px 4px 5px;background:#ffffff06;color:#e1ded8;font:inherit;font-size:13px;text-decoration:none}
.cast-chip>span,.cast-line>span:last-child {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cast-chip .cast-avatar,.cast-stack .cast-avatar {display:inline-grid;place-items:center;flex:none;width:24px;height:24px;aspect-ratio:1;margin:0;padding:0;object-fit:cover;border-radius:50%;background:#363331;color:#ddd;font:500 12px/1 sans-serif}
.cast-avatar[src$="/p3.webp"] {object-position:72% center}
.cast-chip:is(a,button):hover,.cast-chip[aria-pressed=true] {border-color:#aaa49b;background:#ffffff16}
.cast-chip:focus-visible {outline:2px solid #c5a46c;outline-offset:2px}
.cast-line {display:flex;align-items:center;gap:6px;min-width:0;height:24px;font-size:12px;color:#c8c4bd}
.cast-stack {display:flex;flex:none;padding-left:4px}
.cast-stack .cast-avatar {width:19px;height:19px;border:1px solid #191919;margin-left:-4px}
.community-card-body>.cast-line,.community-card-body>small {box-sizing:content-box;margin-top:auto;padding-top:10px;min-height:24px;line-height:24px}
.community-card-body>small {display:block}
:root{color-scheme:dark;scrollbar-color:#4c4b50 #151517}
:where(html,aside,nav,dialog,#session-scroll,#session-input,#session-settings,.mobile-history-panel,.scrollbar){scrollbar-width:thin}
@media(max-width:767px){
  html:root{--safe-bottom:env(safe-area-inset-bottom,0px)}
  .title-preview-footer{padding-bottom:max(12px,env(safe-area-inset-bottom,0px))}
}

/* Reserve the full-bleed theater while its episode and account state load. */
body[data-manga-route] { margin:0; background:#0c0c0e; }
body[data-manga-route] > aside, body[data-manga-route] > #account-status { display:none; }
body[data-manga-route] > #main { display:block; padding:0; margin:0; width:100%; max-width:none; }
body[data-manga-route] > #main > .route-loading { margin:0; padding:16px; }

@media (min-width:1024px) {
  #precision-view [data-shrink] :is(a,button) { min-height:44px; min-width:44px; }
  #precision-view [data-shrink] :is(.shell-history-label a,a.shrink-0) { display:inline-flex; align-items:center; justify-content:center; }
}

.community-page .library-header{flex-wrap:wrap;gap:8px}
.community-actions{display:flex;align-items:center;gap:12px}
.community-actions .community-fuse{display:inline-flex;align-items:center;min-height:44px;color:#bdbab5;font-size:13px}
