/* Shared form and content alignment. */
.catalog-site{--fantasy-art:url('assets/fantasy-background.webp');background-image:linear-gradient(#080f0ecc,#080f0ee8),var(--fantasy-art);background-position:center;background-size:cover;background-attachment:fixed}
.catalog-site.light{background-image:linear-gradient(#f5f6f3dd,#f5f6f3ef),var(--fantasy-art)}
.catalog-site .catalog-section:not(.spotlight){background:#080f0e65}
.catalog-site.light .catalog-section:not(.spotlight){background:#f5f6f3aa}
.catalog-site .site-footer{background:#080f0eb3}
.catalog-site.light .site-footer{background:#f5f6f3cc}
.catalog-site .hero-ambience{inset:0!important;background-image:var(--fantasy-art)!important;background-position:center!important;background-size:cover!important;mask-image:none!important}
.catalog-site .catalog-hero:after{background:linear-gradient(90deg,#080f0ead,#080f0e6b 45%,#080f0e12 80%),linear-gradient(0deg,#080f0e,transparent 55%)!important}
.catalog-site .spotlight:before{background:linear-gradient(90deg,#080f0ed9,#080f0e65),var(--fantasy-art) center 65%/cover!important}
.catalog-site .detail-art{background-image:var(--fantasy-art);filter:none;opacity:.7}
.catalog-site .card-save{top:8px;bottom:auto;border-color:#acccb7!important;transition:transform .18s,background-color .18s,border-color .18s,box-shadow .18s}
.catalog-site [data-save].is-saved{background:#492276!important;border-color:#7541af!important;color:#f4eaff!important;box-shadow:0 0 0 1px #49227666}
.catalog-site [data-save].is-saved .icon{fill:#a97add33}
@media(hover:hover){.catalog-site .card-save:hover,.catalog-site .card-save:focus-visible{transform:translateY(-3px) scale(1.04);border-color:#c391ff!important;box-shadow:0 5px 14px #0006}.catalog-site .book-art>a .cover{transition:transform .2s,box-shadow .2s}.catalog-site .book-art>a:hover .cover{transform:translateY(-3px);box-shadow:0 8px 22px #0005}}
@media(max-width:760px){.catalog-site{background-attachment:scroll;background-size:auto 1200px;background-repeat:repeat-y}.catalog-site .hero-ambience{background-position:70% top!important}.catalog-site .catalog-hero:after{background:linear-gradient(0deg,#080f0e 0%,#080f0edb 30%,#080f0e55 65%,#080f0e10)!important}.catalog-site .spotlight:before{background-position:65% center!important}}
@media(prefers-reduced-motion:reduce){.catalog-site .card-save:hover,.catalog-site .card-save:focus-visible,.catalog-site .book-art>a:hover .cover{transform:none}}
.batch-progress-summary{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0;padding:0}
.batch-progress-summary>section{min-width:0;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--bg)}
.batch-progress-summary strong{font-size:16px}
.batch-progress-summary p{font-size:15px;margin:12px 0;overflow-wrap:anywhere}
.batch-progress-summary progress{display:block;height:12px;border-radius:10px}
.batch-progress-summary progress::-webkit-progress-bar{background:#26332e;border-radius:10px}
.batch-progress-summary progress::-webkit-progress-value{background:#a25cf6;border-radius:10px;transition:width .15s}
.batch-progress-summary progress::-moz-progress-bar{background:#a25cf6;border-radius:10px}
.batch-state-done .batch-row-status{color:#a9e6c2}
.batch-state-error .batch-row-status,.batch-state-invalid .batch-row-status{color:#ffacac}
.batch-state-sending .batch-row-status{color:#f2d58a}
.batch-publisher .form-error{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:760px){.batch-progress-summary{grid-template-columns:1fr;gap:10px}.batch-progress-summary>section{padding:14px}}
.catalog-site{--featured-cover-width:clamp(210px,17vw,280px)}
.catalog-site .header-publish[hidden]{display:none!important}
.catalog-site .header-inner{gap:16px}
.catalog-site .topnav{font-size:16px;margin-left:0}
.catalog-site .topnav a{padding-left:9px;padding-right:9px}
.catalog-site #search-form{max-width:420px;min-width:220px;flex:1 1 320px;height:42px;margin-left:auto}
.catalog-site #search-form input{font-size:15px}
.catalog-site .header-publish,.catalog-site .site-header .account,.catalog-site .site-header .coin{font-size:15px}
.catalog-site .hero-cover{flex-basis:var(--featured-cover-width)}
.catalog-site .spot-book{flex:0 0 var(--featured-cover-width)}
.catalog-site .spot-book>span{max-width:100%}
.catalog-site .hero-ambience{left:30%;background-position:center 30%;background-size:cover;mask-image:linear-gradient(90deg,transparent,#000 35%)}
.catalog-site .catalog-hero:after{background:linear-gradient(90deg,#080f0e 0%,#080f0ef5 24%,#080f0eb3 48%,#080f0e18 80%),linear-gradient(0deg,#080f0e,transparent 45%)}
.catalog-site #catalog-hero .feature-label{background:linear-gradient(120deg,#fff0bb,#edbd55);color:#4a3105;border:1px solid #ffdf87}
.book-art{position:relative}
.card-promotion{position:absolute;left:8px;top:8px;background:#f7d782;color:#463006;padding:4px 8px;border-radius:7px;font-size:13px;font-weight:700;pointer-events:none}
.card-save{position:absolute;right:8px;bottom:8px;border:1px solid #d6e5d854!important;background:#12251eea!important;color:#e5eddd!important;width:36px;height:36px;padding:8px!important;border-radius:50%}
.card-author{display:block;color:var(--muted);font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:5px 0}
.card-stats{display:flex;flex-wrap:wrap;gap:12px;color:#acc3b8;font-size:14px;margin-top:7px}
.card-stats>span{display:inline-flex;align-items:center;gap:5px}
.card-stats .icon,.chapter-viewers .icon{width:15px;height:15px}
.chapter-viewers{display:flex!important;align-items:center;gap:5px;color:var(--muted);margin-top:6px;font-size:13px}
.detail-bottom del{color:var(--muted);margin-right:4px}
.promotion-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.promotion-dates{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.promotion-enabled{display:flex;align-items:center;gap:10px}
.promotion-enabled input{width:auto}
.notification-dropdown{position:absolute;right:32px;top:calc(100% + 8px);width:390px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 110px);overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 50px #0008;padding:18px;color:var(--ink)}
.notification-dropdown[hidden]{display:none}
.notification-dropdown-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.notification-dropdown-head h2{font-size:21px;margin:0}
.notification-dropdown .notification-item{padding:16px 10px}
.notification-dropdown .notification-item strong{font-size:16px}
.notification-dropdown .notification-item p{font-size:14px;line-height:1.8}
.notification-dropdown .notification-item small{font-size:12px}
.notification-dropdown .actions{font-size:14px;align-items:center;margin-bottom:0}
.notification-dropdown>small{display:block;color:var(--muted);font-size:13px;margin-top:12px}
@media(min-width:761px) and (max-width:1250px){
 .catalog-site .topnav{display:none}
 .catalog-site .menu-button{display:flex}
 .catalog-site #search-form{display:flex;max-width:none;min-width:160px}
}
@media(max-width:760px){
 .catalog-site .header-inner{gap:10px}
 .catalog-site .hero-ambience{left:0;right:0;background-size:cover;background-position:center 25%;mask-image:none}
 .catalog-site .catalog-hero:after{background:linear-gradient(0deg,#080f0e 0%,#080f0ee6 25%,#080f0e80 52%,transparent 90%)}
 .catalog-site .hero-inner{padding-top:240px}
 .catalog-site .hero-cover{display:none}
 .catalog-site .spot-book{flex-basis:42%}
 .catalog-site .mobile-search{display:flex}
 .catalog-site .header-publish{font-size:13px;padding:8px}
 .catalog-site .notification-link{width:30px!important;height:30px!important}
 .catalog-site .header-inner>.brand{margin-right:auto}
 .notification-dropdown{right:12px;top:calc(100% + 6px)}
 .promotion-fields,.promotion-dates{grid-template-columns:1fr;gap:0}
 .card-stats{gap:8px;font-size:13px}
}
@media(max-width:380px){.catalog-site .header-inner{gap:6px}.catalog-site .header-inner>.brand{font-size:20px}.catalog-site .mobile-search{width:28px;height:28px;padding:5px}}
.catalog-site #search-form{overflow:hidden;transition:border-color .15s,box-shadow .15s}
.catalog-site #search-form:focus-within{border-color:#bc8bff;box-shadow:0 0 0 2px #a25cf633}
.catalog-site #search-form input{background:transparent;border:0;border-radius:0;box-shadow:none;outline:none;flex:1;width:0;margin:0}
.catalog-site #search-form input:focus-visible{outline:none}
.catalog-site select{min-height:44px;border:1px solid var(--line);border-radius:10px;padding:10px 36px 10px 12px;background-color:var(--bg);color:var(--ink);font:inherit;max-width:100%}
.catalog-site select:focus-visible{outline:2px solid #bc8bff;outline-offset:2px}
.catalog-site .header-publish{background:#8134ed;border-color:#a76aef;color:#fff!important;font-weight:600}
.catalog-site .header-publish:hover{background:#9147f5;border-color:#c293ff}
.catalog-site .hero-copy h1{font-size:25px;line-height:1.5;overflow-wrap:anywhere}
.writer-content .membership-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.writer-content .membership-plan-panel{width:100%;max-width:none;margin:0 0 20px}
.writer-profile-form{max-width:none}
.writer-profile-media{display:grid;grid-template-columns:90px minmax(0,1fr) minmax(0,1fr);align-items:center;margin-bottom:18px}
.writer-profile-media label{min-width:0;margin:0}
.writer-profile-media input{width:100%;min-width:0}
.writer-profile-form .writer-banner-preview{max-height:320px;margin-bottom:18px}
.novel-detail{align-items:start;grid-template-columns:230px minmax(0,1fr)}
.detail-sidebar{min-width:0;display:flex;flex-direction:column;gap:18px}
.detail-copy{max-width:850px;min-width:0;align-self:start}
.detail-copy h1{font-size:28px;line-height:1.5;overflow-wrap:anywhere}
.detail-poster{width:100%}
.translator-card{display:flex;gap:12px;padding:16px;border:1px solid #ffffff20;border-radius:14px;background:#111b19e6;align-items:flex-start;color:#f5f3fa}
.translator-card>.icon,.translator-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:50%;object-fit:cover;color:#c49cff}
.translator-card>span{min-width:0}
.translator-card small{font-size:13px;color:#b5c0bd;display:block;margin-bottom:4px}
.translator-card strong{display:block;font-size:16px;overflow-wrap:anywhere}
.translator-bio{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;color:#b5c0bd;margin-top:6px}
.translator-channel{display:flex;align-items:center;gap:6px;margin-top:10px;font-size:14px;color:#d0adff}
.translator-channel .icon{width:15px;height:15px}
.translator-card:hover{border-color:#b881f5}
.detail-copy .source-credit{padding:10px 0;margin:14px 0;border:0;border-top:1px solid #ffffff20;background:transparent;font-size:14px;color:#c5ceca;overflow-wrap:anywhere}
.source-credit summary{cursor:pointer;color:#c6a5ed;font-size:14px;padding:4px 0}
.source-credit[open] summary{margin-bottom:8px}
.detail-bottom{max-width:none;margin:12px 40px 0 308px}
@media(max-width:760px){
 .catalog-site .hero-copy h1{font-size:21px}
 .writer-content .membership-stats{grid-template-columns:1fr}
 .writer-profile-media{grid-template-columns:70px minmax(0,1fr);gap:16px}
 .writer-profile-media>label:last-child{grid-column:1/-1}
 .novel-detail{display:flex;flex-direction:column}
 .detail-copy{order:0;width:100%}
 .detail-copy h1{font-size:24px}
 .detail-sidebar{order:1;width:100%;margin-top:18px}
 .translator-card{padding:14px}
 .detail-bottom{margin:0}
}

/* Compact notification tray: fixed header/footer, independently scrolling list. */
.notification-dropdown{display:flex;flex-direction:column;padding:0;width:410px;max-height:min(720px,calc(100dvh - 100px));overflow:hidden;border-radius:18px;background:var(--paper)}
.notification-dropdown[hidden]{display:none}
.notification-dropdown-head{flex:none;margin:0;padding:18px 20px 14px;border-bottom:1px solid var(--line);align-items:flex-start}
.notification-dropdown-head h2{font-size:19px}
.notification-dropdown-head p{font-size:14px;color:var(--muted);margin:3px 0 0}
.notification-dropdown-head .icon-button{width:28px;height:28px;padding:5px;border:0;background:none;color:var(--muted)}
.notification-dropdown-items{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#64756c transparent}
.notification-day{font-size:14px;font-weight:400;color:var(--muted);margin:0;padding:12px 20px 6px}
.notification-entry{display:flex;position:relative;gap:14px;padding:15px 20px;border-bottom:1px solid var(--line);align-items:flex-start}
.notification-entry:hover{background:#a25cf609}
.notification-entry.unread{background:#a25cf60c}
.notification-event-icon{flex:0 0 20px;color:#a5b4ad;margin-top:3px}
.notification-event-icon .icon{width:19px;height:19px}
.notification-entry-copy{min-width:0;flex:1}
.notification-story{display:block;color:var(--ink);font-size:15px;line-height:1.7;font-weight:600;overflow-wrap:anywhere}
.notification-entry-copy>p{color:var(--muted);font-size:14px;line-height:1.8;margin:7px 0;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.notification-entry-meta{display:flex;align-items:center;gap:9px;margin-top:9px;font-size:13px;color:var(--muted)}
.notification-entry-meta>span{color:#c4a0f1;font-weight:600}
.notification-entry-meta>time:before{content:'·';margin-right:9px}
.notification-entry-meta>button{margin-left:auto;padding:3px 8px;border:1px solid var(--line);font-size:12px;white-space:nowrap}
.notification-unread-dot{width:6px;height:6px;border-radius:50%;background:#b67bff;flex-shrink:0;margin-top:8px}
.notification-dropdown-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;flex:none;border-top:1px solid var(--line);background:var(--paper)}
.notification-dropdown-footer>button{padding:5px 0;background:none;border:0;color:#c6a2f3;font-size:13px}
.notification-dropdown-footer>button:disabled{opacity:.45;cursor:default}
.notification-dropdown-footer .primary{font-size:14px;border-radius:10px;padding:9px 15px}
.notification-empty{text-align:center;padding:45px 24px;color:var(--muted)}
.notification-empty>.icon{width:36px;height:36px;color:#bc95ef}
.notification-empty small{font-size:13px}
@media(max-width:760px){.notification-dropdown{max-height:calc(100dvh - 180px);width:410px}.notification-dropdown-head,.notification-dropdown-footer{padding-left:16px;padding-right:16px}.notification-entry{padding:14px 16px;gap:10px}}

.notification-archive{max-width:1000px;margin:auto}.notification-archive .notification-list{max-width:none}.notification-archive-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.notification-archive .notification-entry-copy>p{display:block}.notification-archive-heading p{color:var(--muted);font-size:15px}@media(max-width:760px){.notification-archive-heading{align-items:flex-start;flex-direction:column}.notification-archive{padding:16px!important}}
