
/* === site.css === */
:root{color-scheme:dark;--bg:#14171d;--surface:#1d222b;--raised:#252c37;--border:#353d49;--text:#e7e8e8;--muted:#a7adb9;--subtle:#818999;--accent:#c6a6e7;--accent-deep:#8f70af;--focus:#e8cafe;--page-width:1160px;font:16px/1.6 system-ui,-apple-system,"Segoe UI",Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}button,input,textarea,select{font:inherit}button{cursor:pointer}input,textarea,select{color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:.65rem .8rem}input:focus-visible,textarea:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid var(--focus);outline-offset:3px}textarea{resize:vertical}label{display:flex;flex-direction:column;gap:.35rem;font-weight:600}label small,.hint,.muted,small{color:var(--muted)}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.2}h1{font-size:clamp(1.8rem,3.2vw,3rem)}h2{font-size:1.5rem}p{line-height:1.7}.skip{position:absolute;left:-9999px;top:0}.skip:focus{left:1rem;z-index:1000;background:#fff;color:#000;padding:8px}.site-head{background:rgba(21,24,29,.97);border-bottom:1px solid #36333c;position:sticky;top:0;z-index:20;backdrop-filter:blur(15px)}.head-inner{max-width:1360px;margin:auto;display:flex;align-items:center;gap:2rem;padding:.5rem 2rem;min-height:83px}.brand{display:flex;flex:0 0 252px}.brand img{display:block;max-width:100%;max-height:62px;object-fit:contain;object-position:left center}.main-nav,.account-nav{display:flex;align-items:center;gap:1.2rem;font-size:.92rem;white-space:nowrap}.main-nav{flex:1}.main-nav a,.account-nav>a,.account-nav button{padding:.35rem .1rem}.account-nav form{margin:0}.account-name{color:var(--accent);font-weight:700}.nav-join{border:1px solid var(--accent-deep);border-radius:8px;padding:.45rem .7rem!important}.nav-btn{border:0;background:none;color:var(--muted)}.site-main{max-width:var(--page-width);min-height:60vh;margin:0 auto;padding:2.3rem 1.5rem 4rem}.notice{padding:1rem 1.2rem;border:1px solid var(--accent-deep);border-radius:10px;background:#282434;color:#f0defd;margin:0 0 2rem}.site-footer{border-top:1px solid var(--border);max-width:100%;padding:2.3rem max(24px,calc((100vw - var(--page-width))/2));display:flex;justify-content:space-between;gap:2rem;align-items:flex-start;color:var(--muted);flex-wrap:wrap}.site-footer>div{display:flex;flex-direction:column;gap:.35rem}.site-footer>div:nth-child(2){flex-direction:row;flex-wrap:wrap;gap:1rem}.site-footer strong{color:var(--text)}.btn{border:1px solid var(--border);background:var(--raised);display:inline-flex;align-items:center;justify-content:center;padding:.73rem 1.12rem;border-radius:9px;font-weight:700;font-size:.95rem;line-height:1.3;text-align:center;color:var(--text);gap:.4rem}.btn:hover{background:#343d4c;color:#fff}.btn.primary{color:#1e1728;background:#d8b5f0;border-color:#d8b5f0}.btn.primary:hover{background:#eccfff;border-color:#eccfff;color:#1e1728}.compact{border:1px solid var(--border);background:var(--raised);border-radius:6px;padding:.3rem .65rem;color:var(--text);font-size:.83rem}.compact:hover{background:#3a4352}.hero{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:center;padding:2.5rem 0 4rem}.hero-copy{padding:1rem 0}.hero h1{font-size:clamp(2.35rem,4.5vw,4.2rem);line-height:1.06;letter-spacing:-.045em;margin-bottom:1.3rem}.hero h1 em{font-family:Georgia,serif;font-weight:400;color:var(--accent)}.hero p:not(.eyebrow){max-width:440px;color:var(--muted);font-size:1.04rem}.eyebrow,.overline{font-size:.72rem;letter-spacing:.2em;font-weight:800;color:var(--accent);text-transform:uppercase}.hero img{display:block;width:100%;max-height:330px;object-fit:cover;border-radius:15px;border:1px solid var(--border)}.overline{padding-bottom:1rem;border-bottom:1px solid var(--border)}.shelf{margin-bottom:3.7rem}.shelf-heading{display:flex;align-items:end;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--border);padding-bottom:.85rem;margin:1.4rem 0 1.7rem}.shelf-heading h2{margin:0}.shelf-heading>span{color:var(--muted);font-size:.87rem}.book-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}.book-card{display:grid;grid-template-columns:142px 1fr;gap:1.25rem;padding:1rem;background:var(--surface);border:1px solid var(--border);border-radius:13px;min-height:250px;transition:transform .15s,border-color .15s}.book-card:hover{transform:translateY(-2px);border-color:var(--accent-deep);color:inherit}.cover{display:block;min-width:0}.cover img{width:100%;height:212px;object-fit:cover;border-radius:7px;background:#32313b}.book-text{display:flex;flex-direction:column;min-width:0;gap:.4rem}.book-text strong{font-size:1.16rem;line-height:1.3}.byline,.large-byline{color:var(--accent)}.summary{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;line-clamp:4;overflow:hidden;color:var(--muted);font-size:.87rem;line-height:1.55}.taglist{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.4rem}.tag{display:inline-block;border:1px solid #46404e;background:#302c37;color:#d1c5d9;border-radius:5px;padding:.12rem .45rem;font-size:.71rem;line-height:1.45}.book-meta{margin-top:auto;color:var(--subtle);font-size:.78rem}.small-banner{border-radius:12px;border:1px solid #4a3d55;background:linear-gradient(110deg,#25232e,#1e2732);padding:1.8rem 2rem;display:flex;align-items:center;justify-content:space-between;gap:2rem}.small-banner h2{margin-bottom:.5rem}.small-banner p{color:var(--muted);margin:0}.small-banner .btn{white-space:nowrap}.crumb{font-size:.88rem;color:var(--muted);margin-bottom:1.6rem}.crumb a{color:var(--accent)}.crumb span{padding:0 .6rem;color:#626978}.book-feature{display:grid;grid-template-columns:260px 1fr;gap:2.7rem;padding-bottom:3rem}.feature-cover img{width:100%;border-radius:10px;box-shadow:0 15px 45px #0007;display:block}.feature-copy h1{margin:.4rem 0}.large-byline{font-size:1.05rem}.stats{display:flex;flex-wrap:wrap;gap:1.3rem;color:var(--muted);font-size:.89rem;margin:1.25rem 0}.warning{border-left:3px solid #9f8564;background:var(--surface);padding:1rem 1.2rem;color:#dfd3bd}.synopsis{margin:1.6rem 0;line-height:1.75}.synopsis p{margin:0 0 1rem}.feature-copy>.btn{margin-top:1.5rem;margin-right:.5rem}.chapter-list{border:1px solid var(--border);border-radius:10px;overflow:hidden}.chapter-row{padding:1rem 1.3rem;display:flex;justify-content:space-between;gap:2rem;align-items:center;border-bottom:1px solid var(--border)}.chapter-row:nth-child(odd){background:var(--surface)}.chapter-row:last-child{border:0}.chapter-row:hover{background:var(--raised)}.chapter-row time{font-size:.8rem;color:var(--muted);white-space:nowrap}.reader-page{--reader-bg:#17191d;--reader-text:#ece9e3;--reader-card:#1e2126;--reader-edge:#353941;--reader-link:#dbb9ef;background:var(--reader-bg);color:var(--reader-text)}.reading-main{max-width:1220px}.reader-shell{margin:auto}.reading-tools{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem 1.2rem;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:1rem 1.1rem;margin-bottom:1.6rem}.tools-title{color:var(--accent);font-weight:800;margin-right:.4rem}.reading-tools label{display:flex;flex-direction:row;align-items:center;gap:.5rem;font-size:.78rem;color:var(--muted)}.reading-tools input[type=range]{width:88px;accent-color:var(--accent);padding:0;border:0}.reading-tools select{padding:.24rem .35rem;font-size:.82rem}.reading-tools output{font-size:.78rem;min-width:3rem}.reading-pane{background:var(--reader-card);color:var(--reader-text);border:1px solid var(--reader-edge);border-radius:10px;padding:2rem max(1.2rem,4vw);transition:background .15s,color .15s}.chapter-heading{text-align:center;margin:auto auto 2.8rem;max-width:760px}.chapter-heading>a{color:var(--reader-link);font-size:.9rem}.chapter-heading h1{font-family:Georgia,serif;font-size:clamp(1.8rem,3vw,2.5rem);font-weight:500;line-height:1.27;margin:1rem 0}.chapter-heading p{color:var(--muted);margin:0}.chapter-notes{max-width:740px;margin:2rem auto;padding:1.2rem;border-left:3px solid var(--accent-deep);background:color-mix(in srgb,var(--reader-card),white 4%);color:var(--reader-text)}.chapter-notes strong{color:var(--reader-link)}.chapter-prose{--font-size:19px;--line-height:1.9;--content-width:740px;max-width:var(--content-width);margin:auto;font:var(--font-size)/var(--line-height) Georgia,'Times New Roman',serif;overflow-wrap:break-word;word-break:normal}.chapter-prose p{line-height:inherit;margin:0 0 1.15em}.chapter-prose h1,.chapter-prose h2,.chapter-prose h3,.chapter-prose h4{text-align:center;margin:1.65em 0 .9em;font-family:Georgia,serif;line-height:1.35;font-weight:600}.chapter-prose blockquote{border-left:3px solid #888;padding-left:1.2rem;margin-left:.5rem}.chapter-prose img{max-width:100%;height:auto}.chapter-prose hr{border:0;border-top:1px solid var(--reader-edge);margin:2rem}.reader-page[data-paragraph=indent] .chapter-prose p{text-indent:1.6em;margin-bottom:0}.reader-page[data-paragraph=indent] .chapter-prose p:first-of-type{text-indent:0}.reader-page[data-theme=light]{--reader-bg:#e8e9ed;--reader-card:#fff;--reader-text:#24232a;--reader-edge:#d4d4dc;--reader-link:#674394}.reader-page[data-theme=sepia]{--reader-bg:#e6d8bf;--reader-card:#f6eddc;--reader-text:#493d2b;--reader-edge:#bdae92;--reader-link:#754d75}.reader-page[data-theme=light] .chapter-heading p,.reader-page[data-theme=sepia] .chapter-heading p{color:var(--reader-text)}.chapter-actions{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;padding-top:2rem;margin-top:4rem;border-top:1px solid var(--reader-edge);color:var(--muted);font-size:.9rem}.chapter-actions form{margin:0}.chapter-nav{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin:1.6rem 0}.chapter-nav>span{min-width:100px}.chapter-nav>span:last-child{text-align:right}.chapter-nav>a{font-size:.85rem}.comments{max-width:900px;margin:4rem auto}.comments h2{color:var(--text)}.comment-form{padding:1.3rem;background:var(--surface);border-radius:10px;border:1px solid var(--border);margin-bottom:2rem}.comment-form textarea,.reply-form textarea{width:100%;margin-top:.7rem}.comment-controls{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin-top:.7rem}.comment-controls .primary{margin-left:auto}.emoji-picker{display:flex;flex-wrap:wrap;gap:.2rem;background:var(--raised);border-radius:8px;margin-top:.8rem;max-height:200px;overflow:auto;padding:.6rem}.emoji-picker[hidden]{display:none}.emoji-picker button{background:none;border:none;padding:.25rem}.emoji-picker img,.emoji{height:27px;width:27px;object-fit:contain;vertical-align:middle}.emoji-picker button:hover{background:#555;border-radius:5px}.signin-note{background:var(--surface);padding:1.1rem;border-radius:8px}.signin-note a{color:var(--accent)}.comment{background:var(--surface);border:1px solid var(--border);border-radius:9px;padding:1.1rem 1.3rem;margin-bottom:.8rem}.comment.reply{margin-left:2rem;background:#1b2028}.comment-head{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;font-size:.9rem}.comment-head time{margin-left:auto;color:var(--muted);font-size:.78rem}.comment-text{line-height:1.65;margin:.8rem 0;white-space:normal;overflow-wrap:anywhere}.comment-text blockquote{border-left:3px solid var(--accent-deep);background:var(--raised);padding:.5rem 1rem}.comment-text details{border:1px dashed var(--border);padding:.5rem}.comment-actions{display:flex;gap:.7rem;align-items:center}.comment-actions form{display:flex;gap:.4rem}.comment-actions button{border:0;background:none;color:var(--muted);padding:.2rem}.comment-actions button:hover{color:var(--accent)}.reply-form{margin-top:1rem}.reply-form[hidden]{display:none}.panel{padding:1.7rem;border:1px solid var(--border);background:var(--surface);border-radius:12px;margin:1.3rem 0}.section-head{margin-bottom:1.6rem}.section-head h1{margin-bottom:.35rem}.section-head p{margin:0;color:var(--muted)}.narrow{max-width:720px}.auth-card{max-width:500px;margin:4rem auto}.auth-card form,.editor-form{display:flex;flex-direction:column;gap:1.25rem}.auth-card input{width:100%}.auth-links{display:flex;gap:1rem;justify-content:space-between;flex-wrap:wrap;margin-top:1.5rem;font-size:.86rem;color:var(--accent)}.studio{max-width:1000px;margin:auto}.studio-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.5rem 0 2rem}.studio .panel h2{margin-bottom:1rem}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.88rem;text-align:left}th,td{padding:.8rem .65rem;border-bottom:1px solid var(--border);vertical-align:middle}th{color:var(--muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.05em}td a{color:var(--accent)}.admin-line{display:flex;justify-content:space-between;gap:1rem;padding:.9rem 0;border-bottom:1px solid var(--border)}.admin-line>a{color:var(--accent);white-space:nowrap}.editor-form label{width:100%}.editor-form .manuscript{min-height:450px;font-family:Georgia,'Times New Roman',serif;font-size:1rem;line-height:1.55}.editor-format{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.editor-format span{font-size:.8rem;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;align-items:end}.form-grid button{align-self:end}.editor-bottom{display:flex;align-items:center;justify-content:flex-end;gap:.7rem}.editor-bottom a{margin-right:auto;color:var(--muted)}.preview{max-height:550px;overflow:auto}.preview .chapter-prose{max-width:100%}.inline-form{display:flex;gap:.4rem;flex-wrap:nowrap}.inline-form select{max-width:140px}.moderation-row{display:flex;justify-content:space-between;gap:2rem;padding:.8rem;border-bottom:1px solid var(--border)}.moderation-row p{margin:0;color:var(--muted)}.legacy-text{line-height:1.8}.legacy-text div{margin-bottom:.5rem}.legacy-text h1,.legacy-text h2{text-align:left}.legacy-text a{color:var(--accent)}
@media(max-width:1000px){.head-inner{gap:1rem;padding:.6rem 1rem;flex-wrap:wrap}.brand{flex:1 1 200px}.main-nav{order:3;flex-basis:100%;justify-content:center;padding-bottom:.4rem}.account-nav{margin-left:auto}.site-main{padding:1.5rem 1rem 3rem}.book-card{grid-template-columns:100px 1fr;gap:.9rem}.book-card .cover img{height:155px}.book-card{min-height:180px}.summary{-webkit-line-clamp:3;line-clamp:3}}
@media(max-width:700px){.head-inner{gap:.5rem}.brand{flex:1 1 100%;justify-content:center}.brand img{max-height:50px}.account-nav{margin:0 auto;gap:.9rem;flex-wrap:wrap;justify-content:center}.main-nav{gap:1rem;flex-wrap:wrap;order:2;font-size:.82rem}.hero{grid-template-columns:1fr;padding:1rem 0 2rem;gap:1rem}.hero img{order:-1;max-height:180px}.book-grid{grid-template-columns:1fr}.book-card{grid-template-columns:107px 1fr}.book-feature{grid-template-columns:1fr;gap:1.6rem}.feature-cover{max-width:205px;margin:auto}.small-banner{flex-direction:column;align-items:flex-start}.chapter-row time{font-size:.7rem}.reading-tools{gap:.75rem}.reading-tools label{width:calc(50% - .5rem)}.reading-pane{padding:1.8rem .9rem}.chapter-prose{line-height:1.75}.comment.reply{margin-left:.65rem}.site-footer{flex-direction:column;gap:.7rem}.form-grid{grid-template-columns:1fr}.editor-bottom{flex-wrap:wrap}.chapter-nav>span{min-width:0}.chapter-nav .btn{padding:.6rem .5rem;font-size:.78rem}.chapter-nav>a{font-size:.76rem}.auth-card{margin:1.5rem auto}}

.hero-art{min-height:340px;display:flex;align-items:center;justify-content:center;gap:0;position:relative;padding:1rem 2rem}.hero-art img{width:34%;height:auto;aspect-ratio:2/3;object-fit:cover;border-radius:8px;border:3px solid #24222d;box-shadow:0 14px 28px #0008}.hero-art img:first-child{transform:rotate(-11deg) translate(20px,10px)}.hero-art img:nth-child(2){width:39%;z-index:2;transform:translateY(-8px)}.hero-art img:last-child{transform:rotate(10deg) translate(-20px,10px)}@media(max-width:700px){.hero-art{min-height:190px;padding:0 2rem}.hero-art img{max-height:210px}}

.chapter-prose .chapter-align-center,.synopsis .chapter-align-center,.legacy-text .chapter-align-center{text-align:center}.chapter-prose .chapter-align-left,.synopsis .chapter-align-left,.legacy-text .chapter-align-left{text-align:left}.chapter-prose .chapter-align-right,.synopsis .chapter-align-right,.legacy-text .chapter-align-right{text-align:right}.chapter-prose .chapter-align-justify{text-align:justify}.edit-form{margin-top:.7rem}.edit-form textarea{width:100%;display:block;margin-bottom:.5rem}.edit-form[hidden]{display:none}

/* Illustrated stories, maps and legacy chapter headings */
.chapter-prose img.chapter-illustration,.chapter-notes img.chapter-illustration,.preview img.chapter-illustration {
  display:block;max-width:100%;height:auto;object-fit:contain;margin:1.3rem auto;
  border-radius:3px;cursor:zoom-in;
}
.chapter-prose figure,.chapter-prose .chapter-align-center:has(>img),.chapter-prose h1:has(img),
.chapter-prose h2:has(img),.chapter-prose h3:has(img),.chapter-prose h4:has(img){
  text-align:center;font-size:inherit;font-weight:normal;line-height:normal;
  margin:1.25rem auto;padding:0;
}
.chapter-prose figure img,.chapter-prose h1 img,.chapter-prose h2 img,.chapter-prose h3 img {margin-left:auto;margin-right:auto;}
.chapter-prose figcaption {font: .85rem/1.45 system-ui,sans-serif;color:var(--muted);margin:.5rem auto;text-align:center;}
.chapter-prose .missing-chapter-image,.chapter-notes .missing-chapter-image{border:1px dashed var(--reader-edge);background:transparent;
  border-radius:7px;max-width:100%;padding:1.1rem;text-align:center;margin:1.2rem auto;
  display:flex;flex-direction:column;gap:.3rem;font: .86rem/1.4 system-ui,sans-serif;color:var(--muted);}
.chapter-prose .missing-chapter-image strong{color:var(--reader-text);}
.chapter-prose .missing-chapter-image span {overflow-wrap:anywhere;}
.chapter-prose .missing-art-divider{margin:1.8rem auto;max-width:55%;}
.chapter-lightbox{position:fixed;inset:2vh 2vw;border:1px solid var(--border);border-radius:10px;
  background:#11151a;color:#fff;max-width:96vw;max-height:96vh;width:fit-content;padding:3.5rem 1rem 1rem;overflow:auto;}
.chapter-lightbox::backdrop{background:rgba(0,0,0,.86);}
.chapter-lightbox img{display:block;width:auto;height:auto;max-width:calc(96vw - 4rem);max-height:calc(88vh - 5rem);margin:auto;object-fit:contain;}
.chapter-lightbox .lightbox-close{position:absolute;top:.6rem;right:.75rem;background:#313944;color:#fff;
  border:1px solid #535e6b;border-radius:8px;padding:.35rem .8rem;}
.chapter-lightbox .lightbox-caption{text-align:center;margin:.5rem auto 0;font-size:.85rem;}
.image-upload-widget{padding:1.1rem;border:1px dashed var(--border);border-radius:9px;background:var(--raised);}
.image-upload-widget label{font-size:.92rem;}
.image-upload-widget input[type=file]{width:100%;max-width:100%;}
.image-upload-widget .hint{font-size:.85rem;margin:.5rem 0;}
.image-upload-widget .upload-message{min-height:1.5rem;color:var(--accent);font-size:.86rem;margin:0;}

.chapter-notes h1:has(img),.chapter-notes h2:has(img),.chapter-notes h3:has(img),
.chapter-notes h4:has(img){font-size:inherit;font-weight:normal;margin:1.25rem auto;text-align:center;line-height:normal;}

/* Rellawings v20: visual emoji composer for comments, inbox, and profile posts */
.emoji-rich-source[hidden]{display:none!important}
.emoji-rich-input{width:100%;min-height:7.2rem;padding:1rem 1.1rem;border:1px solid var(--border);border-radius:10px;background:#0f1520;color:var(--text);line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;cursor:text;box-sizing:border-box}
.emoji-rich-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px rgba(215,175,255,.15)}
.emoji-rich-input.is-empty::before{content:attr(data-placeholder);color:var(--muted);pointer-events:none}
.emoji-rich-input .composer-emoji{display:inline-block;width:27px;height:27px;vertical-align:-6px;margin:0 1px;object-fit:contain;pointer-events:none;user-select:none}
.comment-form .emoji-rich-input,.reply-form .emoji-rich-input,.edit-form .emoji-rich-input,.v8-emoji-form .emoji-rich-input,.community-form .emoji-rich-input{margin-top:.7rem}

/* v26: Story cover editor and shared Synopsis rich text editing. */
.rw26-cover-panel{border:1px solid var(--border);border-radius:12px;padding:1.1rem 1.2rem;background:var(--surface)}
.rw26-cover-row{display:grid;grid-template-columns:170px minmax(0,1fr);gap:1.4rem;align-items:center}
.rw26-cover-image img{display:block;width:100%;max-width:170px;aspect-ratio:2/3;object-fit:cover;border-radius:7px;background:var(--raised)}
.rw26-cover-upload{min-width:0;padding:1rem}
.rw26-cover-upload label{display:flex;flex-direction:column;gap:.6rem;width:100%}
.rw26-cover-upload input[type=file]{min-width:0;width:100%}
.rw26-cover-panel .rw26-cover-help{margin:1rem 0 0;color:var(--muted);font-size:.91rem;line-height:1.55}
.rw26-synopsis-heading{margin:.5rem 0 0}
.rw26-synopsis-heading .hint{margin:.35rem 0 .5rem}
.rw26-synopsis-shell{min-width:0}
#synopsis-content{min-height:260px;max-height:720px;overflow-y:auto;padding:1.5rem 2rem;outline:none;color:#e9e6e2;background:#20252b;font:17px/1.75 Georgia,'Times New Roman',serif;overflow-wrap:anywhere}
#synopsis-content:focus-visible{outline:2px solid var(--accent-deep);outline-offset:-2px}
#synopsis-content[hidden]{display:none!important}
#synopsis-content p{line-height:inherit;margin-bottom:1em}
#synopsis-content img{display:block;max-width:100%;height:auto;margin:1rem auto}
#synopsis-content blockquote{border-left:3px solid var(--accent-deep);padding:.5rem 1rem;background:#292c33}
#synopsis-content table{width:100%;border-collapse:collapse;margin:1rem 0}
#synopsis-content th,#synopsis-content td{border:1px solid #777;padding:.5rem;min-width:40px}
.rw26-synopsis-shell.rich-fullscreen #synopsis-content,.rw26-synopsis-shell.rich-fullscreen .rich-source{flex:1;min-height:0;max-height:none;overflow:auto}
@media(max-width:620px){.rw26-cover-row{grid-template-columns:120px minmax(0,1fr);gap:.85rem}.rw26-cover-panel{padding:.9rem}.rw26-cover-upload{padding:.5rem}#synopsis-content{padding:1rem;min-height:220px}}
@media(max-width:420px){.rw26-cover-row{grid-template-columns:1fr}.rw26-cover-image img{width:120px}.rw26-cover-upload{padding:.6rem}}

/* v78.51: #0F1520 is the original dark rich-editor background.
   Preserve it sitewide and in Dark, but never use it on Light/Sepia inbox.
   Also works if the page uses the native messenger theme dropdown and its
   data-theme attribute has not yet synchronized. */
body.rw7825-inbox-page:is([data-theme="light"],:has(#rw7836-theme option[value="light"]:checked)) .rw77-inbox .emoji-rich-input,
body.rw7825-inbox-page:is([data-theme="light"],:has(#rw7836-theme option[value="light"]:checked)) .rw77-inbox #rw77-reply-composer{
  background:#ffffff!important;color:#30283b!important;-webkit-text-fill-color:#30283b!important;
  caret-color:#30283b!important;border-color:#cdbddc!important;
}
body.rw7825-inbox-page:is([data-theme="sepia"],:has(#rw7836-theme option[value="sepia"]:checked)) .rw77-inbox .emoji-rich-input,
body.rw7825-inbox-page:is([data-theme="sepia"],:has(#rw7836-theme option[value="sepia"]:checked)) .rw77-inbox #rw77-reply-composer{
  background:#fffaf0!important;color:#463523!important;-webkit-text-fill-color:#463523!important;
  caret-color:#463523!important;border-color:#c7b18e!important;
}


/* === community-v4.css === */
/* Rellawings community v4. Scoped rules keep chapter editor styles unchanged. */
.member-link{color:var(--accent);text-decoration:none}
.member-link:hover{text-decoration:underline}
.book-card .book-text strong a{color:var(--text)}
.book-card .book-text strong a:hover{color:var(--accent)}
.book-card .book-text .byline a{color:var(--accent)}
.account-nav .account-name{font-weight:750;color:var(--accent)}
.account-nav .nav-search-icon{display:inline-flex;align-items:center;justify-content:center;font-size:1.9rem;width:36px;height:36px;line-height:1}
.notification-dropdown{position:relative;flex-shrink:0}
.notification-dropdown>summary{position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:6px;min-width:35px;min-height:35px;color:var(--text);list-style:none;border-radius:8px}
.notification-dropdown>summary::-webkit-details-marker{display:none}
.notification-dropdown>summary:hover,.notification-dropdown[open]>summary{background:var(--raised)}
.bell-count{position:absolute;top:-7px;right:-11px;padding:0 4px;min-width:17px;height:17px;border-radius:11px;background:#d44765;color:white;font:700 10px/17px system-ui;text-align:center;box-shadow:0 0 0 2px var(--bg)}
.bell-count[hidden]{display:none}
.notification-popover{z-index:200;position:absolute;right:-14px;top:calc(100% + 10px);width:min(390px,calc(100vw - 24px));max-height:min(520px,80vh);background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:12px;box-shadow:0 16px 50px #0009;overflow:hidden}
.popover-title{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid var(--border)}
.bell-count-label{font-size:.77rem;color:var(--muted)}
.notification-feed{max-height:385px;overflow:auto}
.notice-item{display:flex;align-items:flex-start;gap:10px;padding:11px 14px;border-bottom:1px solid var(--border);font-size:.83rem;line-height:1.45;color:var(--text)}
.notice-item.unread{background:color-mix(in srgb,var(--accent) 9%,var(--surface))}
.notice-item:hover{background:var(--raised)}
.notice-item img{width:35px;height:35px;object-fit:cover;border-radius:5px;flex:0 0 35px}
.notice-item small{display:block;color:var(--muted);font-size:.75rem;margin-top:3px}
.notification-footer{display:flex;justify-content:space-between;gap:8px;padding:12px 14px;font-size:.84rem}
.notification-footer a{color:var(--accent)}
.directory-page .panel{margin-top:0}
.directory-search-form label{display:block;margin-bottom:12px}
.directory-search-form input[name=q]{width:100%}
.directory-search-options{display:flex;align-items:center;flex-wrap:wrap;gap:20px}
.directory-search-options label{display:flex;align-items:center;gap:6px;margin:0}
.directory-search-options input{width:auto}
.directory-member,.directory-story{display:flex;align-items:flex-start;gap:18px;border-bottom:1px solid var(--border);padding:17px 0}
.directory-member> a img{height:70px;width:70px;object-fit:cover;border-radius:9px}
.directory-story> a img{height:125px;width:86px;object-fit:cover;border-radius:7px}
.directory-member h3,.directory-story h3{margin:0}
.directory-member p,.directory-story p{color:var(--muted);margin:.3rem 0 .6rem}
.directory-member>div,.directory-story>div{min-width:0}
.v4-pagination{display:flex;align-items:center;justify-content:center;gap:15px;margin:28px 0;color:var(--muted)}
.profile-v4{display:grid;grid-template-columns:minmax(215px,270px) minmax(0,1fr);align-items:start;gap:25px}
.profile-v4 .panel{margin:0 0 16px}
.profile-v4-card{text-align:center}
.profile-v4-avatar{display:block;width:125px;height:125px;object-fit:cover;border:4px solid var(--raised);border-radius:7px;margin:0 auto 12px}
.profile-v4-card h1{margin:0;font-size:1.3rem}
.profile-v4-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin-top:15px}
.profile-v4-buttons form{margin:0}
.profile-v4-buttons .btn{font-size:.78rem;padding:.4rem .6rem}
.profile-v4-metrics>div{display:flex;justify-content:space-between;gap:8px;font-size:.85rem;margin:7px 0}
.profile-v4-metrics span{color:var(--muted)}
.profile-v4-bio{line-height:1.7;overflow-wrap:anywhere}
.profile-v4-main{min-width:0}
.profile-tabs{display:flex;flex-wrap:wrap;gap:0;border-bottom:1px solid var(--border);margin:-16px -16px 20px;overflow-x:auto}
.profile-tabs a{display:block;padding:12px 13px;border-bottom:3px solid transparent;white-space:nowrap;color:var(--text);font-size:.9rem}
.profile-tabs a.active{border-color:#3e99d7;font-weight:750}
.profile-tabs a:hover{background:var(--raised)}
.profile-wall-compose{padding:14px 0 20px;border-bottom:1px solid var(--border);margin-bottom:10px}
.profile-wall-compose textarea{width:100%;margin:8px 0;resize:vertical}
.profile-entry{padding:18px 0;border-bottom:1px solid var(--border);overflow-wrap:anywhere;line-height:1.6}
.profile-entry.profile-reply{margin-left:28px;border-left:2px solid var(--border);padding-left:16px}
.profile-entry-head{display:flex;gap:10px;align-items:center}
.profile-entry-head img{width:38px;height:38px;border-radius:50%;object-fit:cover}
.profile-entry-head time{color:var(--muted);font-size:.78rem}
.profile-entry-body{margin:10px 0 12px}
.profile-entry details{color:var(--accent);font-size:.86rem}
.profile-entry details textarea{display:block;width:100%;margin:8px 0}
.profile-details{display:grid;grid-template-columns:minmax(110px,1fr) 2fr;gap:0}
.profile-details dt,.profile-details dd{margin:0;padding:7px;border-bottom:1px solid var(--border)}
.profile-details dt{color:var(--muted)}
.profile-v4-main h2{font-size:1.2rem;margin-top:1.5rem}
.reading-list-item{display:flex;gap:15px;padding:12px 0;border-bottom:1px solid var(--border)}
.reading-list-item img{height:100px;width:68px;object-fit:cover;border-radius:5px}
.reading-list-item>div{min-width:0}
.reading-list-item a{color:var(--accent)}
.reading-list-item p{margin:6px 0}
.reading-list-item small{color:var(--muted)}
.review-card{padding:20px 0;border-bottom:1px solid var(--border);overflow-wrap:anywhere}
.review-card>div:first-child{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.review-card h4{margin:12px 0 4px}
.review-card small{display:block;color:var(--muted);margin-top:10px}
.rating-stars{color:#f6b45d;font-size:1.35rem;letter-spacing:1px}
.book-reviews{max-width:980px;margin:48px auto}
.review-compose form{display:grid;gap:14px;margin-top:15px}
.review-compose label{display:block}
.review-compose textarea,.review-compose input{display:block;width:100%}
.review-compose select{display:block;max-width:220px}
.pref-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 18px;margin:8px 0 26px}
.pref-grid label{display:flex;align-items:flex-start;gap:10px;padding:5px;line-height:1.4}
.pref-grid input[type=checkbox]{width:auto;flex-shrink:0;margin-top:4px}
@media(max-width:850px){.profile-v4{grid-template-columns:1fr}.profile-v4-side{display:grid;grid-template-columns:1fr 1fr;gap:12px}.profile-v4-bio{grid-column:1/-1}.notification-popover{right:-75px}}
@media(max-width:580px){.profile-v4-side{display:block}.pref-grid{grid-template-columns:1fr}.profile-tabs{flex-wrap:nowrap}.notification-popover{position:fixed;left:12px;right:12px;top:92px;width:auto;max-height:70vh}.directory-member,.directory-story{gap:12px}.directory-member> a img{width:56px;height:56px}}

.header-search{position:relative;flex-shrink:0}
.header-search>summary{display:flex;justify-content:center;align-items:center;width:36px;height:36px;font-size:1.8rem;line-height:1;list-style:none;cursor:pointer;border:1px solid var(--border);border-radius:7px}
.header-search>summary::-webkit-details-marker{display:none}
.header-search>summary:hover,.header-search[open]>summary{background:var(--raised)}
.header-search-popover{position:absolute;right:0;top:calc(100% + 12px);z-index:195;background:var(--surface);box-shadow:0 15px 40px #0009;border:1px solid var(--border);border-radius:10px;padding:16px;width:min(350px,calc(100vw - 30px))}
.header-search-popover input[type=search]{display:block;width:100%;margin:8px 0}
.header-search-popover .search-types{display:flex;align-items:center;gap:16px;margin-bottom:12px;font-size:.9rem}
.header-search-popover input[type=radio]{width:auto}
.header-search-popover .btn{width:100%}
@media(max-width:580px){.header-search-popover{right:-70px}}

.notice-item> a{flex:0 0 35px;display:block}
.notice-item span a:not(.member-link){color:var(--text)}
.notice-item span a:hover{text-decoration:underline;color:var(--accent)}
.review-remove{text-align:right;margin-top:-15px}


/* === features.css === */
/* Rellawings community/studio extensions; color and typography inherit from site.css */
.account-nav{gap:.75rem}.account-nav a{white-space:nowrap}.nav-count{display:inline-block;background:var(--accent);color:#211a2b;border-radius:50%;font-size:.65rem;padding:0 .4em;line-height:1.5}.hero-art>a{display:contents}.hero-art>a img{flex-shrink:0}.hero-art>a:hover img{filter:brightness(1.12)}
.hero-art>a:first-child img{transform:rotate(-11deg) translate(20px,10px)}.hero-art>a:nth-child(2) img{width:39%;z-index:2;position:relative;transform:translateY(-8px)}.hero-art>a:last-child img{transform:rotate(10deg) translate(-20px,10px)}.hero-copy .btn{margin:.35rem .5rem .35rem 0}
.profile-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:1.4rem;align-items:start}.profile-sidebar{position:sticky;top:110px}.profile-sidebar form{margin:0 0 .8rem}.profile-sidebar .btn{margin-bottom:.7rem}.profile-sidebar h1{font-size:1.5rem;margin:.6rem 0}.profile-avatar{width:112px;height:112px;object-fit:cover;background:var(--raised);border-radius:12px;border:1px solid var(--border)}.profile-bio{margin:1rem 0 0;border-top:1px solid var(--border);padding-top:1rem;white-space:normal;overflow-wrap:anywhere}.profile-main{display:grid;gap:1.4rem;min-width:0}.mini-book-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:1rem}.mini-book-grid a{display:flex;flex-direction:column;gap:.5rem;font-size:.83rem}.mini-book-grid img{width:100%;max-width:160px;aspect-ratio:2/3;object-fit:cover;border-radius:7px}.community-form,.community-form label{display:flex;flex-direction:column;gap:.5rem}.community-form textarea{width:100%}.community-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:.5rem}.wall-post{border-top:1px solid var(--border);padding:1.3rem .3rem;overflow-wrap:anywhere}.wall-post p{margin:0 0 .6rem}.wall-post>a,.wall-post p>a{color:var(--accent);font-weight:700}.wall-post small{margin-left:.5rem}.wall-post details{padding:.5rem;background:var(--raised)}
.mail-list-item,.alert-line{display:grid;grid-template-columns:minmax(150px,1fr) 160px 180px;gap:.8rem;padding:.85rem 1rem;border-bottom:1px solid var(--border);align-items:center}.alert-line{display:block}.mail-list-item.unread,.alert-line.unread{background:#352c40}.mail-list-item small,.alert-line small{color:var(--muted);font-weight:400}.mail-body{white-space:normal;line-height:1.8;padding:2rem 0;border-block:1px solid var(--border);margin-bottom:1.5rem;overflow-wrap:anywhere}
.feature-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:1rem;margin:1.2rem 0}.feature-picker label{border:1px solid var(--border);border-radius:9px;padding:.7rem;display:grid;grid-template-columns:1.2rem 54px 1fr;gap:.6rem;align-items:center;font-size:.85rem;font-weight:500;cursor:pointer}.feature-picker img{width:54px;aspect-ratio:2/3;object-fit:cover;border-radius:4px}.studio-shortcuts{margin-top:1.2rem}.studio-shortcuts .btn{margin:.25rem}
.sortable-chapters{list-style:none;padding:0;margin:1rem 0;max-width:960px}.sortable-chapters li{display:flex;align-items:center;gap:.8rem;border:1px solid var(--border);padding:.7rem .8rem;margin:.4rem 0;background:var(--surface);border-radius:8px}.sortable-chapters li.dragging{opacity:.55;border-style:dashed}.sortable-chapters li:hover{border-color:var(--accent-deep)}.sortable-chapters .drag-handle{font-size:1.2rem;cursor:grab;user-select:none}.sortable-chapters .sort-title{flex:1;min-width:0}.sortable-chapters small{margin-left:.4rem}.sortable-chapters button{min-width:2.4rem}.stats-table{width:100%;border-collapse:collapse}.stats-table th,.stats-table td{border-bottom:1px solid var(--border);padding:.75rem;text-align:left}.stats-table th{color:var(--muted)}.traffic-chart{display:flex;align-items:flex-end;gap:.2rem;overflow-x:auto;min-height:200px;margin:1.4rem 0}.traffic-chart .bar-group{display:flex;flex-direction:column;justify-content:end;align-items:center;gap:.4rem;min-width:34px}.traffic-chart .bar-group span{display:block;background:#8d6faf;width:65%;min-height:2px;border-radius:3px 3px 0 0}.traffic-chart small{font-size:.62rem;white-space:nowrap}
.chapter-poll{max-width:var(--content-width,740px);margin:2.2rem auto;padding:1.3rem 1.5rem;background:var(--surface);border:1px solid var(--border);border-radius:10px;color:var(--text)}.chapter-poll h2{font-size:1.3rem}.chapter-poll h3{font-size:1.1rem;font-family:inherit;text-align:left}.chapter-poll label{display:flex;flex-direction:row;align-items:center;font-weight:500;gap:.7rem;margin:.8rem 0}.chapter-poll .btn{margin-top:.65rem}.poll-option{display:grid;grid-template-columns:1fr auto;gap:.4rem;margin:1rem 0}.poll-track{grid-column:1/-1;height:.65rem;border-radius:12px;background:var(--raised);overflow:hidden}.poll-track i{display:block;height:100%;background:var(--accent);border-radius:12px}
.search-book{display:flex;gap:.7rem;max-width:100%;margin-bottom:1.3rem}.search-book input{flex:1;min-width:0}.search-hit{padding:1rem 0;border-bottom:1px solid var(--border)}.search-hit a{color:var(--accent);font-weight:700}.search-hit p{margin:.4rem 0;color:var(--muted)}.chapter-search-link{text-align:center;margin:1rem auto 2rem}.selection-actions{position:absolute;z-index:40;display:flex;gap:.2rem;padding:.35rem;background:#1d2028;color:#fff;border:1px solid #59505f;box-shadow:0 12px 30px #0008;border-radius:8px;max-width:310px}.selection-actions[hidden]{display:none}.selection-actions button{color:#fff;border:0;background:transparent;padding:.4rem .55rem;cursor:pointer;font-size:.8rem}.selection-actions button:hover{background:#3b3b4b}
.rich-editor-shell{position:relative;border:1px solid var(--border);border-radius:10px;overflow:visible;background:var(--surface);min-width:0}.rich-toolbar{display:flex;flex-wrap:wrap;gap:.28rem;background:#161a20;padding:.6rem;position:sticky;top:83px;z-index:8;border-bottom:1px solid var(--border);align-items:center}.rich-toolbar .compact{font-size:.72rem;background:#272d37;padding:.35rem .5rem;min-height:30px}.rich-toolbar .compact:hover,.rich-toolbar .compact:focus{background:#4b435a}.rich-toolbar select{padding:.32rem;width:auto;min-width:120px;font-size:.82rem}.rich-status{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.7rem;color:var(--muted);font-size:.78rem;padding:.5rem .85rem;border-top:1px solid var(--border)}#rich-content{min-height:520px;max-height:780px;overflow-y:auto;padding:2rem max(1.2rem,7%);outline:0;color:#e9e6e2;background:#20252b;font:17px/1.85 Georgia,'Times New Roman',serif;overflow-wrap:break-word;white-space:normal}#rich-content:focus-visible{outline:2px solid var(--accent-deep);outline-offset:-2px}#rich-content img{display:block;max-width:100%;height:auto;margin:1rem auto}#rich-content p{line-height:inherit}#rich-content h1,#rich-content h2,#rich-content h3{text-align:inherit}#rich-content blockquote{border-left:3px solid var(--accent-deep);padding:.5rem 1rem;background:#292c33}#rich-content table,.chapter-prose table{border-collapse:collapse;max-width:100%;width:auto;display:block;overflow:auto;margin:1rem auto}#rich-content td,#rich-content th,.chapter-prose td,.chapter-prose th{border:1px solid #777;padding:.5rem;min-width:54px}#rich-content td:focus{outline:1px solid var(--accent)}.rich-source{display:block!important;width:100%;border:0;min-height:530px;max-height:70vh;padding:1.3rem;font:13px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;resize:vertical;background:#171b23;color:#d6e6df}.rich-source[hidden]{display:none!important}#rich-content[hidden]{display:none}.rich-fullscreen{position:fixed;z-index:500;inset:0;border-radius:0;background:var(--surface);display:flex;flex-direction:column}.rich-fullscreen .rich-toolbar{top:0;position:relative;flex-shrink:0}.rich-fullscreen #rich-content,.rich-fullscreen .rich-source{height:100%;max-height:none;min-height:0;flex:1}.rich-fullscreen .rich-status{flex-shrink:0}.rich-table-grid{position:absolute;z-index:30;max-width:290px;background:#272b34;color:#fff;border:1px solid #888;border-radius:8px;padding:1rem;box-shadow:0 15px 30px #000a}.rich-table-grid p{margin-bottom:.7rem}.table-grid-cells{display:grid;grid-template-columns:repeat(10,18px);gap:3px}.table-grid-cells button{background:#404855;border:1px solid #777;width:18px;height:18px;padding:0;border-radius:2px;cursor:pointer}.table-grid-cells button.selected,.table-grid-cells button:hover{background:#bd9ee1}.rich-editor-shell:has(.rich-fullscreen){z-index:500}
.chapter-prose details.chapter-spoiler,#rich-content details.chapter-spoiler{border:1px solid var(--reader-edge,#64646c);border-radius:8px;background:color-mix(in srgb,var(--reader-card,#222),white 6%);padding:1rem;margin:1.3rem 0}.chapter-spoiler summary{cursor:pointer;font-family:system-ui;font-size:.82em;font-weight:700}.chapter-prose aside,#rich-content aside{margin:1.25rem 0;border-left:4px solid #a78cc0;padding:1rem 1.25rem;background:color-mix(in srgb,var(--reader-card,#222),white 5%)}.chapter-prose .chapter-announcement,#rich-content .chapter-announcement{border-color:#5585b2}.chapter-prose .chapter-author-note,#rich-content .chapter-author-note{border-color:#d4b68e}.chapter-prose .chapter-litrpg,#rich-content .chapter-litrpg{border:1px solid #797ea5;border-radius:9px;background:color-mix(in srgb,var(--reader-card,#222),#504d86 22%);font-family:system-ui}.chapter-prose .chapter-align-center{text-align:center}.chapter-prose .chapter-align-left{text-align:left}.chapter-prose .chapter-align-right{text-align:right}.chapter-prose .chapter-align-justify{text-align:justify}.chapter-prose figure{text-align:center;margin:2rem auto}.chapter-prose figure img{margin:auto}.chapter-prose .chapter-illustration{display:block;margin:1rem auto}.chapter-prose pre{white-space:pre-wrap}.chapter-prose li{margin-bottom:.25em}
@media(max-width:1050px){.account-nav{flex-wrap:wrap;justify-content:flex-end}.head-inner{gap:.8rem;flex-wrap:wrap}.main-nav{order:3;width:100%;justify-content:center;flex-wrap:wrap}.rich-toolbar{top:0}}
@media(max-width:720px){.profile-layout{grid-template-columns:1fr}.profile-sidebar{position:static}.mail-list-item{grid-template-columns:1fr;gap:.15rem}.hero-art{padding:0}.hero-art>a img{max-height:200px}.rich-toolbar{max-height:35vh;overflow-y:auto}.search-book{flex-direction:column}.feature-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.feature-picker label{grid-template-columns:20px 1fr}.feature-picker label span{grid-column:1/-1}}
.cover-preview{display:flex;align-items:center;gap:1.5rem;padding:1rem;border:1px solid var(--border);border-radius:9px;margin:1rem 0}.cover-preview img{max-height:180px;max-width:140px;object-fit:contain}.wall-post.wall-reply{margin-left:1.3rem;padding-left:1.1rem;border-left:3px solid var(--accent-deep)}.wall-reply-form{margin:.7rem 0}.wall-reply-form summary{cursor:pointer;color:var(--accent);font-size:.86rem}.wall-reply-form form{margin-top:.5rem}.wall-reply-form textarea{width:100%}
.author-links{color:var(--muted);font-size:.85rem;margin-top:-.35rem}.author-links a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.rich-toolbar button[data-rich-tool="spoiler"]{background:#753244;color:#fff;border-color:#a85b72}.rich-toolbar button[data-rich-tool="announcement"]{background:#254d65;color:#fff}.rich-toolbar button[data-rich-tool="author-note"]{background:#554b37;color:#fff}
.rich-image-dialog{max-width:min(610px,94vw);width:100%;max-height:88vh;overflow-y:auto;border:1px solid var(--border);border-radius:14px;padding:1.6rem;background:var(--surface);color:var(--text);box-shadow:0 20px 80px #000b}.rich-image-dialog::backdrop{background:#000a}.rich-image-dialog label{margin-bottom:1rem}.rich-image-dialog .image-dialog-fields{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}.rich-image-dialog details{margin:1rem 0}.rich-image-dialog summary{cursor:pointer;font-weight:700;margin-bottom:.8rem}.image-dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:.5rem}
/* Rescue patch: feedback and robust alignment for imported manuscript blocks. */
.editor-save-message{min-height:1.5em;margin:.6rem 0;color:var(--accent,#c3a0eb);font-size:.9rem;overflow-wrap:anywhere}
#safe-preview-panel[hidden]{display:none!important}
#safe-preview-panel{margin-top:1.5rem;scroll-margin-top:5rem}
#safe-preview-panel .chapter-prose{margin-inline:auto;max-width:min(100%,850px)}
#rich-content [style*="text-align:justify"],#safe-preview-panel .chapter-prose [style*="text-align:justify"],.chapter-prose [style*="text-align:justify"]{text-align:justify;}
#rich-content [style*="text-align:center"],#safe-preview-panel .chapter-prose [style*="text-align:center"],.chapter-prose [style*="text-align:center"]{text-align:center;}

/* Studio toolbar layout: two deliberate, consistent Scribble Hub-like rows. */
.rich-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;background:#171b1d;overflow:visible}
.rich-toolbar-row{display:flex;align-items:center;flex-wrap:wrap;gap:3px;padding:7px 8px;min-height:42px}
.rich-toolbar-row + .rich-toolbar-row{border-top:1px solid #303942}
.rich-toolbar .rt-button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:2px;width:34px;height:32px;min-width:34px;min-height:32px;padding:3px!important;border:1px solid transparent;border-radius:3px;background:transparent;color:#cfdae3;font-family:Arial,sans-serif;font-size:16px;line-height:1;white-space:nowrap;cursor:pointer}
.rich-toolbar .rt-button:hover,.rich-toolbar .rt-button:focus-visible{background:#374754;border-color:#586879;color:#fff;outline:none}
.rich-toolbar .rt-button:active{background:#455f74}
.rich-toolbar .rt-button strong{font-size:17px}.rich-toolbar .rt-button em{font-family:Georgia,serif;font-size:19px}.rich-toolbar .rt-button u{font-family:Georgia,serif;font-size:17px}.rich-toolbar .rt-button s{font-size:12px}.rich-toolbar .rt-icon{width:20px;height:20px;flex:none}
.rich-toolbar select[data-rich-tool="block"]{margin-right:4px;min-height:34px;min-width:140px;padding:5px 24px 5px 10px;font-size:13px;border:1px solid #465461;border-radius:3px;background:#f5f6f7;color:#25313d}
.rich-toolbar .rt-glyph{font-family:Georgia,'Times New Roman',serif;font-size:20px;line-height:1}.rich-toolbar .rt-quote{font-size:25px}.rich-toolbar .rt-code{font:700 11px/1 ui-monospace,monospace}.rich-toolbar .rt-color{border-bottom:2px solid #caa2e7;font-weight:700}
.rich-toolbar .rt-mark{display:inline-flex;align-items:center;justify-content:center;width:22px;min-height:22px;border-radius:3px;background:#d23e55;color:#fff;font-family:Georgia,serif;font-weight:700;font-size:17px}
.rich-toolbar .rt-announcement .rt-mark{font-family:Arial,sans-serif;font-size:7px;letter-spacing:-.5px;background:#eee;color:#d14f45}
.rich-toolbar .rt-footnote .rt-glyph{font-size:18px;color:#ceddf1}.rich-toolbar .rt-footnote sup{font-size:10px;color:#a3cafa}
.rich-toolbar .rt-spoiler,.rich-toolbar .rt-announcement,.rich-toolbar .rt-author-note{background:transparent!important}
.rich-toolbar .rt-spoiler:hover,.rich-toolbar .rt-announcement:hover,.rich-toolbar .rt-author-note:hover{background:#374754!important}
.rich-toolbar .rt-author-note .rt-glyph{color:#e3b86d}.rich-toolbar .rt-litrpg .rt-glyph{color:#b0b5ba}
.comment-text img.emoji,.wall-post img.emoji{display:inline-block!important;width:auto!important;height:24px!important;max-width:30px!important;vertical-align:-6px;margin:0 2px;border:0;object-fit:contain}
@media(max-width:720px){.rich-toolbar{max-height:40vh;overflow-y:auto}.rich-toolbar-row{padding:5px;gap:2px}.rich-toolbar .rt-button{width:32px;min-width:32px}.rich-toolbar select[data-rich-tool="block"]{min-width:125px}}

/* Chapter studio table toolkit. No third-party assets or libraries. */
.rw-table-menu{position:fixed;z-index:710;background:#20252c;border:1px solid #45515e;color:#d9e4ed;min-width:240px;max-width:min(300px,95vw);padding:5px 0;box-shadow:0 14px 36px #000a;font:15px/1.4 system-ui,-apple-system,sans-serif;border-radius:5px}
.rw-table-menu button{font:inherit;color:inherit;cursor:pointer;text-align:left}
.rw-table-menu>button,.rw-table-branch>button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:9px 16px;border:0;background:transparent;min-height:36px}
.rw-table-menu button:hover,.rw-table-menu button:focus-visible,.rw-table-branch.open>button{background:#176a99;color:white;outline:0}
.rw-table-divider{border-top:1px solid #38424c;margin:4px 0}
.rw-table-branch{position:relative}
.rw-table-submenu{display:none;position:absolute;top:-5px;left:100%;min-width:260px;max-width:min(330px,95vw);background:#20252c;border:1px solid #45515e;padding:5px 0;box-shadow:0 12px 30px #0009;z-index:2}
.rw-table-branch.open>.rw-table-submenu{display:block}
.rw-table-submenu.open-left{left:auto;right:100%}
.rw-table-submenu [data-table-action]{display:block;border:0;padding:9px 13px;min-height:36px;background:transparent;width:100%;white-space:normal}
.rw-table-grid{display:grid;grid-template-columns:repeat(10,20px);gap:2px;padding:7px 12px 5px}
.rw-table-grid button{width:20px;height:20px;min-width:20px;min-height:20px;padding:0;border:1px solid #75828f!important;background:#141a20!important;border-radius:1px}
.rw-table-grid button.selected,.rw-table-grid button:hover,.rw-table-grid button:focus-visible{background:#a5cbec!important;border-color:#f3f9ff!important}
.rw-table-size{font-size:12px;color:#b7c6d5;text-align:center;padding:3px 8px 7px}
.rw-table-dialog{width:min(610px,95vw);max-height:90vh;overflow:auto;border:1px solid #566575;border-radius:10px;background:#20272e;color:#e7edf3;padding:0;box-shadow:0 24px 65px #000b}
.rw-table-dialog::backdrop{background:#05080dc4}
.rw-table-form{margin:0}
.rw-table-dialog-head{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;background:#171d23;gap:12px}
.rw-table-dialog-head h2{font:600 20px/1.3 system-ui,sans-serif;margin:0}
.rw-table-x{border:0;background:transparent;color:#e5edf5;font-size:26px;cursor:pointer;padding:0 6px}
.rw-table-tabs{display:flex;gap:0;border-bottom:1px solid #49545f}
.rw-table-tabs button{background:#222a33;color:#d9e4f1;border:0;border-right:1px solid #3c4852;font:600 15px system-ui;padding:12px 22px;cursor:pointer}
.rw-table-tabs button[aria-selected=true]{background:#314d61;box-shadow:inset 0 -3px #60b8f0}
.rw-table-tab{padding:20px}
.rw-table-tab[hidden]{display:none}
.rw-table-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.rw-table-fields label{display:flex;flex-direction:column;gap:6px;font:500 14px/1.35 system-ui;color:#d8e1eb;margin:0}
.rw-table-fields label:has(input[type=checkbox]){flex-direction:row;align-items:center;align-self:end;gap:9px}
.rw-table-fields input:not([type=checkbox]),.rw-table-fields select{display:block;width:100%;min-width:0;min-height:40px;margin:0;padding:7px 10px;color:#18202b;background:#f7f8fa;border:1px solid #92a0ab;border-radius:4px;font:15px/1.3 system-ui}
.rw-table-fields input[type=color]{padding:4px;max-width:140px}
.rw-table-fields input[type=checkbox]{width:auto;min-height:0}
.rw-table-span{grid-column:1/-1}
.rw-table-hint{font:13px/1.5 system-ui;color:#c5d1db;margin:14px 0 0}
.rw-table-dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid #48525e}
.rw-editing-fullscreen{overflow:hidden}
#rich-content table,.chapter-prose table{display:table;overflow:visible;border-collapse:collapse;max-width:100%;width:100%;table-layout:auto}
#rich-content table td,#rich-content table th,.chapter-prose table td,.chapter-prose table th{min-width:0;overflow-wrap:anywhere;vertical-align:top}
#rich-content table caption,.chapter-prose table caption{caption-side:top;font:600 14px/1.5 system-ui;margin-bottom:8px}
@media(max-width:690px){.rw-table-menu{left:8px!important;top:80px!important}.rw-table-submenu,.rw-table-submenu.open-left{left:0;right:auto;top:100%;max-height:45vh;overflow-y:auto}.rw-table-fields{grid-template-columns:1fr}.rw-table-grid{grid-template-columns:repeat(10,18px)}.rw-table-grid button{width:18px;height:18px;min-width:18px;min-height:18px}}
/* Show table icon and caret as one split control, as in the requested editor reference. */
.rich-toolbar .rt-button.rt-table{border-top-right-radius:0;border-bottom-right-radius:0;margin-right:0}
.rich-toolbar .rt-button.rt-table-menu{width:19px;min-width:19px;margin-left:-3px;border-left:1px solid #56616c;border-top-left-radius:0;border-bottom-left-radius:0}
.rich-toolbar .rt-button.rt-table-menu .rt-glyph{font-size:16px}

/* FIX 2026-10-31: One connected Table + caret button. No orphan arrow/popover. */
.rich-toolbar .rt-button.rt-table-toggle{display:inline-flex!important;align-items:stretch!important;gap:0!important;min-width:49px!important;width:49px!important;height:33px!important;padding:0!important;border:1px solid #566575!important;border-radius:4px!important;background:#252e38!important;overflow:hidden}
.rich-toolbar .rt-button.rt-table-toggle:hover,.rich-toolbar .rt-button.rt-table-toggle[aria-expanded="true"]{background:#335976!important;border-color:#8fa8bf!important}
.rich-toolbar .rt-table-symbol{display:flex;align-items:center;justify-content:center;flex:1;min-width:29px}
.rich-toolbar .rt-table-symbol .rt-icon{width:21px;height:21px}
.rich-toolbar .rt-table-chevron{display:flex;align-items:center;justify-content:center;width:18px;flex:0 0 18px;border-left:1px solid #566575;font-size:12px;color:#dce5ed}


/* === navigation-v5.css === */
/* Rellawings header + site theme v5: intentionally isolated from the editor. */
.head-inner{max-width:1440px;gap:clamp(.8rem,2vw,2.4rem)}
.brand{flex:0 0 clamp(145px,17vw,235px)}
.main-nav{gap:clamp(.7rem,2vw,1.9rem)}
.main-nav a{padding:.55rem .15rem}
.account-nav{gap:.75rem;margin-left:auto;flex-wrap:nowrap}
.account-nav form{margin:0}
.account-dropdown{position:relative;flex:0 0 auto}
.account-dropdown>summary{list-style:none;display:flex;align-items:center;gap:.65rem;cursor:pointer;white-space:nowrap;padding:.38rem .3rem;border-radius:7px}
.account-dropdown>summary::-webkit-details-marker{display:none}
.account-dropdown>summary:hover,.account-dropdown[open]>summary{background:var(--raised)}
.nav-avatar{width:30px;height:30px;object-fit:cover;border-radius:4px;background:var(--raised)}
.nav-username{color:var(--accent);font-weight:750}
.account-dropdown>summary svg{width:12px;color:var(--text)}
.account-popover{position:absolute;right:0;top:calc(100% + 12px);width:min(282px,calc(100vw - 20px));padding:8px 0;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 18px 50px #0009;z-index:230;color:var(--text);white-space:normal}
.account-popover>a,.account-popover form button{display:flex;align-items:center;width:100%;gap:12px;text-align:left;border:0;background:transparent;color:var(--text);padding:10px 16px;font-size:.91rem;line-height:1.3;border-radius:0;text-decoration:none}
.account-popover>a span:first-child,.account-popover form button span:first-child{width:20px;flex:0 0 20px;text-align:center;font-size:1.23rem;color:var(--muted)}
.account-popover>a:hover,.account-popover form button:hover{background:var(--raised);color:var(--accent)}
.account-popover .nav-count{margin-left:auto;background:#b75369;color:#fff;padding:0 6px;border-radius:12px;font-size:.7rem}
.theme-menu{display:flex;gap:8px;align-items:center;justify-content:space-between;border-top:1px solid var(--border);margin:7px 10px 0;padding:13px 6px 7px}
.theme-menu label{display:flex;align-items:center;flex-direction:row;gap:7px;margin:0;font-size:.86rem;font-weight:600;white-space:nowrap}
.theme-menu label span{color:var(--accent);font-size:1.25rem}
.theme-menu select{width:104px;min-width:0;padding:.32rem 1.4rem .32rem .5rem;font-size:.82rem;border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:6px}
/* Keep both utilities aligned as square icon buttons. */
.account-nav .header-search>summary,.account-nav .notification-dropdown>summary{width:38px;height:38px;min-width:38px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:7px;padding:0;color:var(--text)}
.account-nav .notification-dropdown>summary:hover,.account-nav .header-search>summary:hover{background:var(--raised)}
.account-nav .header-search-popover{right:0;top:calc(100% + 12px)}
.account-nav .notification-popover{right:0;top:calc(100% + 12px)}
/* Only the theme colors change: no new page designs or images are introduced. */
body[data-site-theme=light]{color-scheme:light;--bg:#f4f2f6;--surface:#fff;--raised:#eae4ef;--border:#d6ccdf;--text:#282532;--muted:#5e5969;--subtle:#716b7b;--accent:#704491;--accent-deep:#9c79b4;--focus:#73479c;background:var(--bg);color:var(--text)}
body[data-site-theme=sepia]{color-scheme:light;--bg:#ede2cb;--surface:#f8efdD;--raised:#e8d6b8;--border:#c7b498;--text:#403426;--muted:#6d5c49;--subtle:#756851;--accent:#805c72;--accent-deep:#a7837b;--focus:#7a526e;background:var(--bg);color:var(--text)}
body[data-site-theme=light] .site-head{background:rgba(250,248,251,.98);border-color:var(--border)}
body[data-site-theme=sepia] .site-head{background:rgba(239,227,205,.98);border-color:var(--border)}
body[data-site-theme=light] .account-popover,body[data-site-theme=sepia] .account-popover{box-shadow:0 14px 36px #3b2b3e30}
body[data-site-theme=light] .book-card,body[data-site-theme=sepia] .book-card{background:var(--surface);border-color:var(--border)}
body[data-site-theme=light] .tag{background:#f0e6f1;border-color:#dac9db;color:#55415e}
body[data-site-theme=sepia] .tag{background:#eadcc9;border-color:#c5ae9a;color:#5e443c}
body[data-site-theme=light] .small-banner,body[data-site-theme=sepia] .small-banner{background:var(--surface);border-color:var(--border)}
body[data-site-theme=light] .warning,body[data-site-theme=sepia] .warning{background:var(--raised);color:var(--text)}
body[data-site-theme=light] .comment.reply,body[data-site-theme=sepia] .comment.reply{background:var(--raised)}
body[data-site-theme=light] .notice,body[data-site-theme=sepia] .notice{background:var(--surface);color:var(--text)}
body[data-site-theme=light] .btn:hover,body[data-site-theme=sepia] .btn:hover{background:var(--raised);color:var(--accent)}
body[data-site-theme=light] .compact:hover,body[data-site-theme=sepia] .compact:hover{background:var(--raised)}
/* Preserve the reader's independent, existing typography preferences. */
@media(max-width:1000px){.head-inner{gap:.6rem}.brand{flex:0 0 160px}.main-nav{order:0;flex:1 1 auto;padding-bottom:0}.account-nav{margin-left:auto}}
@media(max-width:760px){.head-inner{flex-wrap:wrap;gap:.3rem .7rem;padding:.5rem .8rem}.brand{flex:0 0 auto}.brand img{max-height:44px}.account-nav{flex:0 0 auto;order:1;margin-left:auto;gap:.35rem}.main-nav{order:2;flex:1 1 100%;justify-content:center;padding:.2rem 0 .1rem;gap:1.25rem}.account-dropdown>summary{gap:.35rem}.nav-avatar{width:27px;height:27px}.account-nav .header-search>summary,.account-nav .notification-dropdown>summary{width:35px;height:35px;min-width:35px}}
@media(max-width:430px){.nav-username{display:none}.brand img{max-width:120px}.main-nav{font-size:.78rem;gap:.8rem}.account-popover{right:-88px}.account-nav .header-search-popover{right:-42px}.account-nav .notification-popover{right:-4px}}


/* === header-v43_3.css === */
/* Rellawings v43.3 — isolated responsive header; no changes to existing site navigation/theme modules. */
.site-head .head-inner{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:nowrap;min-height:80px;gap:clamp(.6rem,1.4vw,1.1rem);
  padding:.45rem clamp(.75rem,2.2vw,2rem);
}
.site-head .brand{flex:0 0 clamp(205px,21vw,275px);min-width:0;justify-content:flex-start}
.site-head .brand img{display:block;width:100%;max-height:65px;object-fit:contain;object-position:left center}
.site-head .main-nav{order:0;display:flex;flex:1 1 auto;flex-basis:auto;min-width:0;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:clamp(.75rem,2vw,2.1rem);padding:0}
.site-head .main-nav a{white-space:nowrap}
.site-head .main-nav .header-discord{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;padding:2px;border-radius:8px}
.site-head .header-discord img{display:block;width:31px;height:31px;object-fit:contain}
.site-head .main-nav .header-discord:hover{background:var(--raised)}
.site-head .account-nav{order:1;display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;margin-left:auto;flex-wrap:nowrap;gap:clamp(.3rem,.9vw,.8rem)}
.site-head .mobile-site-menu{display:none}
/* The main links disappear at tablet and smaller widths. A native details menu replaces them. */
@media(max-width:960px){
  .site-head .head-inner{min-height:64px;gap:clamp(.3rem,1.5vw,.7rem);padding:.4rem clamp(.65rem,2.5vw,1.25rem)}
  .site-head .brand{order:0;flex:0 1 auto;width:clamp(140px,21vw,205px);min-width:0;justify-content:flex-start}
  .site-head .brand img{max-height:54px;max-width:100%;object-position:left}
  .site-head .main-nav{display:none}
  .site-head .account-nav{order:1;flex:0 0 auto;margin-left:auto;gap:clamp(.25rem,1vw,.65rem);justify-content:flex-end}
  .site-head .mobile-site-menu{order:2;display:block;position:relative;flex:0 0 auto;margin:0;z-index:260}
  .site-head .mobile-site-menu>summary{width:40px;height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;list-style:none;border:1px solid var(--border);border-radius:9px;color:var(--text);background:transparent}
  .site-head .mobile-site-menu>summary::-webkit-details-marker{display:none}
  .site-head .mobile-site-menu>summary:hover,.site-head .mobile-site-menu[open]>summary{background:var(--raised);color:var(--accent)}
  .site-head .mobile-site-links{position:absolute;right:0;top:calc(100% + 11px);display:flex;flex-direction:column;gap:3px;width:min(285px,calc(100vw - 22px));max-height:calc(100dvh - 80px);overflow:auto;padding:9px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 18px 44px #0006;color:var(--text)}
  .site-head .mobile-site-links a{display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 13px;border-radius:8px;white-space:nowrap;font-weight:600}
  .site-head .mobile-site-links a:hover,.site-head .mobile-site-links a:focus-visible{background:var(--raised);color:var(--accent)}
  .site-head .mobile-site-links img{display:block;flex:none;width:28px;height:28px;object-fit:contain}
}
/* Portrait phones: use the full width and keep the controls on the same row. */
@media(max-width:650px){
  .site-head .head-inner{min-height:58px;gap:5px;padding:5px 10px}
  .site-head .brand{width:clamp(130px,37vw,165px);flex:0 1 auto}
  .site-head .brand img{max-height:43px}
  .site-head .account-nav{gap:5px}
  .site-head .nav-username{display:none}
  .site-head .account-dropdown>summary{gap:3px;padding:4px 2px;min-height:40px}
  .site-head .nav-avatar{width:29px;height:29px}
  .site-head .account-nav .header-search>summary,
  .site-head .account-nav .notification-dropdown>summary{width:36px;height:40px;min-width:36px}
  .site-head .mobile-site-menu>summary{width:38px;height:40px}
  .site-head .account-nav .header-search-popover{right:-40px}
}
@media(max-width:365px){
  .site-head .head-inner{padding:5px 7px;gap:3px}
  .site-head .brand{width:clamp(105px,36vw,127px)}
  .site-head .account-nav{gap:3px}
  .site-head .nav-avatar{width:26px;height:26px}
  .site-head .account-dropdown>summary{padding:4px 0;gap:2px}
  .site-head .account-dropdown>summary svg{width:10px}
  .site-head .account-nav .header-search>summary,
  .site-head .account-nav .notification-dropdown>summary{width:34px;min-width:34px;height:38px}
  .site-head .mobile-site-menu>summary{width:36px;height:38px}
}
@media(prefers-reduced-motion:reduce){.site-head .mobile-site-links{scroll-behavior:auto}}

/* Guest actions remain available inside the mobile navigation menu. */
@media(max-width:650px){.site-head .account-nav>.nav-login,.site-head .account-nav>.nav-join{display:none}}

/* Existing logo image contains wide transparent margins (visible art is ~40% of image width). 
   Crop only those transparent margins in the header; do not change or replace the source image. */
.site-head .brand{--rw-logo-visible-width:175px;flex:0 0 var(--rw-logo-visible-width);width:var(--rw-logo-visible-width)}
.site-head .brand .header-logo-view{display:block;position:relative;width:var(--rw-logo-visible-width);height:calc(var(--rw-logo-visible-width) * .376);overflow:hidden}
.site-head .brand .header-logo-view img{position:absolute!important;top:0!important;left:calc(var(--rw-logo-visible-width) * -.782)!important;display:block;width:calc(var(--rw-logo-visible-width) * 2.505)!important;max-width:none!important;max-height:none!important;height:auto!important;object-fit:initial!important}
@media(max-width:960px){.site-head .brand{--rw-logo-visible-width:140px;flex:0 0 var(--rw-logo-visible-width)}}
@media(max-width:650px){.site-head .brand{--rw-logo-visible-width:clamp(112px,34vw,143px)}}
@media(max-width:365px){.site-head .brand{--rw-logo-visible-width:clamp(106px,33vw,121px)}}
/* Old two-row header positioned account/search/bell popovers too far left on narrow phones. */
@media(max-width:650px){
  .site-head .account-dropdown .account-popover,
  .site-head .account-nav .header-search-popover,
  .site-head .account-nav .notification-popover{
    position:fixed;top:70px;left:10px;right:10px;width:auto;max-width:none;
    max-height:calc(100dvh - 80px);overflow-y:auto;
  }
}

/* v43.4 — close the unwanted space between the bell and navigation menu.
   The legacy small-screen rule used `margin:0 auto` on .account-nav.
   That retained a right auto margin, creating a misleading blank gap. */
@media(max-width:960px){
  .site-head .account-nav{margin-right:0;margin-left:auto}
}
/* At tablet width the complete navigation fits comfortably on one row.
   Keep the hamburger at <=767px for comfortable phone-sized touch targets. */
@media(min-width:768px) and (max-width:960px){
  .site-head .head-inner{gap:clamp(.35rem,1.1vw,.8rem)}
  .site-head .main-nav{display:flex;order:0;flex:1 1 auto;min-width:0;gap:clamp(.5rem,1.15vw,.95rem);font-size:clamp(.79rem,1.5vw,.96rem);padding:0;justify-content:center}
  .site-head .main-nav a{white-space:nowrap;padding:.38rem .1rem}
  .site-head .main-nav .header-discord{min-width:36px;min-height:40px}
  .site-head .main-nav .header-discord img{width:28px;height:28px}
  .site-head .mobile-site-menu{display:none}
  .site-head .account-nav{margin-left:auto;margin-right:0;gap:clamp(.2rem,.55vw,.5rem)}
  .site-head .brand{--rw-logo-visible-width:clamp(125px,17vw,145px)}
}
/* Compact the phone controls as a contiguous group at the right edge.
   Do not compromise the minimum finger-sized click targets. */
@media(max-width:767px){
  .site-head .head-inner{justify-content:flex-start;gap:5px}
  .site-head .account-nav{margin-left:auto;margin-right:0;gap:clamp(2px,.65vw,5px)}
  .site-head .mobile-site-menu{margin:0}
}


/* === read-menu-v58.css === */
/* v58: isolated Read dropdown and discovery pagination. */
.site-head .rw58-read-menu{position:relative;flex:none;z-index:280}
.site-head .rw58-read-menu>summary{display:inline-flex;align-items:center;gap:.4rem;cursor:pointer;list-style:none;white-space:nowrap;color:inherit;padding:.4rem .2rem;border-radius:7px}
.site-head .rw58-read-menu>summary::-webkit-details-marker,.site-head .rw58-mobile-read>summary::-webkit-details-marker{display:none}
.site-head .rw58-read-menu>summary:hover,.site-head .rw58-read-menu[open]>summary{color:var(--accent,#cba6ec)}
.site-head .rw58-read-menu>summary svg,.site-head .rw58-mobile-read>summary svg{transition:transform .15s ease}
.site-head .rw58-read-menu[open]>summary svg,.site-head .rw58-mobile-read[open]>summary svg{transform:rotate(180deg)}
.site-head .rw58-read-popover{position:absolute;top:calc(100% + 9px);left:0;min-width:185px;padding:.5rem;background:var(--surface,#202630);color:var(--text,#f7f7fa);border:1px solid var(--border,#3a4050);border-radius:10px;box-shadow:0 16px 34px #0008;display:flex;flex-direction:column;gap:2px}
.site-head .rw58-read-popover a{display:block;padding:.62rem .8rem;border-radius:7px;font-weight:550;color:inherit;white-space:nowrap}
.site-head .rw58-read-popover a:hover,.site-head .rw58-read-popover a:focus-visible{color:var(--accent,#d9b6ef);background:var(--raised,#2c313d)}
.site-head .rw58-read-menu>summary:focus-visible,.site-head .rw58-mobile-read>summary:focus-visible{outline:2px solid var(--accent,#caade9);outline-offset:2px}
.site-head .rw58-mobile-read{width:100%;min-width:0;color:inherit}
.site-head .rw58-mobile-read>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;list-style:none;cursor:pointer;padding:10px 13px;min-height:48px;border-radius:8px;font-weight:650}
.site-head .rw58-mobile-read>summary:hover,.site-head .rw58-mobile-read[open]>summary{background:var(--raised,#303642);color:var(--accent,#cba6ec)}
.site-head .rw58-mobile-read-links{display:flex;flex-direction:column;margin:0 0 .3rem .85rem;padding-left:.45rem;border-left:2px solid var(--border,#3a4050)}
.site-head .mobile-site-links .rw58-mobile-read-links a{min-height:39px;padding:8px 12px;font-weight:500}
.rw58-directory-search{margin:1.2rem 0 .75rem;max-width:660px}
.rw58-directory-search label{display:block;font-weight:650;margin:0 0 .45rem}
.rw58-directory-search>div{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}
.rw58-directory-search input{flex:1 1 230px;min-width:0;max-width:550px;min-height:43px;border:1px solid var(--border,#474353);background:var(--surface,#191e26);color:var(--text,#eee);border-radius:8px;padding:.55rem .8rem;font:inherit}
.rw58-directory-total{color:var(--muted,#a6b0c0);font-size:.91rem;margin:.45rem 0 1rem}
.rw58-pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.4rem;padding:1.2rem .5rem;margin-top:.6rem}
.rw58-pagination .rw58-page-current,.rw58-pagination .rw58-page-number{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:.25rem .55rem;border:1px solid var(--border,#444);border-radius:7px;text-decoration:none}
.rw58-pagination .rw58-page-current{border-color:var(--accent,#bd98da);background:var(--raised,#343039);color:var(--accent,#d9b8ef);font-weight:700}
.rw58-pagination .rw58-page-number:hover,.rw58-pagination .rw58-page-number:focus-visible{background:var(--raised,#343039)}
.rw58-pagination .rw58-page-count{width:100%;text-align:center;color:var(--muted,#a6b0c0);font-size:.86rem}
.rw58-pagination .rw58-page-gap{padding:0 .18rem}
@media(max-width:767px){.site-head .rw58-read-menu{display:none}.rw58-pagination .rw58-page-number{min-width:34px}.rw58-directory-search input{flex-basis:180px}}
@media(min-width:768px){.site-head .rw58-mobile-read{display:none}}
@media(prefers-reduced-motion:reduce){.site-head .rw58-read-menu svg,.site-head .rw58-mobile-read svg{transition:none}}


/* === reviews-v43.css === */
/* Rellawings v43 — theme-aware reader ratings and reviews; no changes to chapter/forum styles */
:root{--rw43-star:#e4b36d;--rw43-star-idle:#777784;--rw43-score-bg:color-mix(in srgb,var(--surface),var(--accent) 4%);--rw43-review-border:var(--border)}
body[data-theme="light"],html[data-theme="light"],body[data-site-theme="light"],html[data-site-theme="light"],body.theme-light{--rw43-star:#a96a1a;--rw43-star-idle:#9a9a9d}
body[data-theme="sepia"],html[data-theme="sepia"],body[data-site-theme="sepia"],html[data-site-theme="sepia"],body.theme-sepia{--rw43-star:#985a25;--rw43-star-idle:#a39786}
/* Inline, ScribbleHub-like ratings: one star row, one score, one count. */
.rw43-rating-hero{position:relative;display:block;border:0;background:transparent;padding:0;margin:.85rem 0 1.35rem;color:var(--text);max-width:100%}
.rw43-overall{display:flex;flex-wrap:wrap;align-items:center;gap:.62rem;min-height:2.25rem}
.rw43-overall .rw43-public-score{font-size:1.14rem;line-height:1.3;font-weight:650;font-variant-numeric:tabular-nums;color:var(--text)}
.rw43-rating-count{font-size:.9rem;color:var(--accent);text-decoration:none;white-space:nowrap}
.rw43-rating-count:hover{text-decoration:underline}
.rw43-rate{display:flex;align-items:center;margin:0}
.rw43-stars{display:inline-flex;gap:.03em;align-items:center;white-space:nowrap}
.rw43-stars .rw43-star{font-size:1.37rem;line-height:1;display:inline-block;font-family:Arial,sans-serif;color:var(--rw43-star-idle)}
.rw43-stars .rw43-star.is-on{color:var(--rw43-star)}
.rw43-main-stars .rw43-star{--rw43-fill:0%;background:linear-gradient(to right,var(--rw43-star) var(--rw43-fill),var(--rw43-star-idle) var(--rw43-fill));background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-decoration:none}
.rw43-main-stars button.rw43-star{cursor:pointer;padding:.12rem .05rem;border:0;background-color:transparent;font-weight:700;touch-action:manipulation}
.rw43-main-stars a.rw43-star{padding:.12rem .05rem;cursor:pointer;font-weight:700}
.rw43-main-stars button.rw43-star:hover,.rw43-main-stars button.rw43-star:focus-visible{filter:brightness(1.15)}
.rw43-main-stars button.rw43-star:focus-visible,.rw43-main-stars a.rw43-star:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:3px}
.rw43-toast{position:absolute;left:0;bottom:calc(100% + .35rem);z-index:25;max-width:min(350px,95vw);width:max-content;padding:.65rem .85rem;border:1px solid var(--border);background:var(--surface);color:var(--text);box-shadow:0 8px 24px #0003;border-radius:9px;font-size:.87rem}
.rw43-toast[hidden]{display:none!important}
.rw43-toast.is-error{border-color:#bc5454}
.rw43-review-rating-hint{margin:0;color:var(--muted);font-size:.83rem}
.rw43-reviews{margin:3rem 0 2rem;max-width:100%}
.rw43-reviews .rw43-compose{margin:1rem 0 2rem}
.rw43-compose summary{font-size:1.07rem;color:var(--accent);cursor:pointer;font-weight:700}
.rw43-compose form{margin-top:1.2rem;display:flex;flex-direction:column;gap:1rem}
.rw43-compose input,.rw43-compose textarea{width:100%}

.rw43-compose .btn{align-self:flex-start}
.rw43-card{border-top:1px solid var(--rw43-review-border);padding:1.4rem .3rem 1.6rem;margin:0;position:relative;color:var(--text);overflow-wrap:anywhere}
.rw43-card-head{display:flex;gap:.85rem;align-items:center}
.rw43-user-avatar{display:block;flex:0 0 46px}
.rw43-user-avatar img{display:block;width:46px;height:46px;object-fit:cover;border-radius:50%;border:1px solid var(--border)}
.rw43-user-main{min-width:0;flex:1}
.rw43-card-byline{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;font-weight:750}
.rw43-card-byline a{color:var(--accent)}
.rw43-card-byline .rw43-star{font-size:1.1rem}
.rw43-user-main time{font-size:.75rem;color:var(--muted)}
.rw43-card h3{font-size:1.05rem;margin:.8rem 0 .7rem}
.rw43-review-text{white-space:normal;line-height:1.7;max-width:100%;overflow-wrap:anywhere;position:relative}
.rw43-review-text.is-collapsed{max-height:11.8rem;overflow:hidden}
.rw43-review-text.is-collapsed:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3rem;background:linear-gradient(transparent,var(--bg));pointer-events:none}
.rw43-expand{display:block;margin:.35rem 0 .8rem auto;color:var(--accent);background:transparent;border:0;padding:.25rem .4rem;cursor:pointer}
.rw43-card-foot{display:flex;flex-wrap:wrap;align-items:center;gap:.7rem;font-size:.82rem;color:var(--muted);margin-top:1.1rem}
.rw43-like-btn,.rw43-minor-action,.rw43-report>summary{border:1px solid var(--border);border-radius:6px;background:var(--raised);color:var(--text);padding:.3rem .65rem;cursor:pointer;font-size:.83rem;text-decoration:none}
.rw43-like-btn.is-liked{border-color:var(--accent);color:var(--accent)}
.rw43-delete-form{margin:0}
.rw43-report{margin-left:auto;position:relative}
.rw43-report form{margin-top:.7rem;padding:.9rem;display:flex;flex-direction:column;gap:.5rem;border-radius:8px;border:1px solid var(--border);background:var(--surface);min-width:min(340px,85vw)}
.rw43-report textarea{width:100%}.rw43-report form .btn{align-self:flex-start}
.rw43-method{border-top:1px solid var(--border);margin-top:1.5rem;padding:1rem 0;color:var(--muted);font-size:.86rem}
.rw43-method summary{cursor:pointer;color:var(--accent)}
.rw43-method p{margin:1rem 0}
.rw43-moderation-actions{display:flex;gap:.5rem;flex-wrap:wrap}.rw43-moderation-actions form{margin:0}
.rw43-report-admin pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
@media(max-width:600px){.rw43-overall{gap:.35rem}.rw43-overall .rw43-stars{width:auto}.rw43-card{padding:1.1rem .1rem}.rw43-card-byline .rw43-star{font-size:1rem}.rw43-card-foot{gap:.4rem}.rw43-user-avatar,.rw43-user-avatar img{width:40px;height:40px;flex-basis:40px}.rw43-report{width:100%;margin-left:0}}


/* === ratings-ui-v43_2.css === */
/* v43.2 — compact, theme-sensitive, accessible rating indicators. */
.rw432-badge{appearance:none;display:inline-flex;align-items:center;gap:.32rem;max-width:100%;padding:0;border:0;background:transparent;color:var(--muted);cursor:pointer;vertical-align:middle;font:inherit;line-height:1.25;white-space:nowrap;text-align:left}
.rw432-badge:hover .rw432-badge-label,.rw432-badge:focus-visible .rw432-badge-label{text-decoration:underline;color:var(--accent)}
.rw432-badge-stars{display:inline-flex;align-items:center;gap:0;white-space:nowrap;flex:none}
.rw432-badge-star{font-size:.92rem;line-height:1;color:var(--rw43-star-idle,#858391);font-family:Arial,sans-serif;font-weight:700;background:linear-gradient(90deg,var(--rw43-star,#e4b36d) var(--rw432-fill),var(--rw43-star-idle,#858391) var(--rw432-fill));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.rw432-badge-label{font-size:.73rem;line-height:1.25;white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}
.rw432-home-cover{display:flex;flex-direction:column;align-items:stretch;gap:.55rem;min-width:0}
.rw432-home-cover .cover{width:100%}
.rw432-home-cover .book-rating-line{display:block;min-height:1rem;max-width:100%}
.rw432-home-cover .rw432-badge{gap:.23rem}
.rw432-home-cover .rw432-badge-stars{letter-spacing:-.035em}
.rw432-home-cover .rw432-badge-star{font-size:.92rem}
.rw432-home-cover .rw432-badge-label{font-size:.7rem}
.genre-story-card{position:relative}
.rw432-genre-rating{position:absolute;right:1rem;top:1rem;z-index:2;max-width:205px;text-align:right}
.rw432-genre-rating .rw432-badge{padding:.15rem .3rem;background:var(--bg);border-radius:5px}
.rw432-genre-rating .rw432-badge-label{font-size:.77rem}
/* Avoid overlapping lengthy titles or status labels in narrow genre results. */
@media(max-width:1100px){.rw432-genre-rating{position:static;max-width:100%;text-align:left;margin-top:.6rem}}
.rw432-forum-preview-rating{display:flex;justify-content:center;margin-top:.22rem;min-height:1.2rem}
.rw432-forum-preview-rating .rw432-badge{gap:.3rem}
.rw432-studio-rating-cell{white-space:nowrap;min-width:118px}
.rw432-studio-rating-cell .rw432-badge-star{font-size:.78rem}
.rw432-studio-rating-cell .rw432-badge-label{font-size:.73rem}
.rw432-studio-rating-cell .rw432-rating-number{font-variant-numeric:tabular-nums;font-size:.85rem;color:var(--text)}
/* Shared popover for the rating-count button on story pages and compact ratings elsewhere. */
.rw43-rating-count{appearance:none;border:0;padding:0;background:none;font:inherit;color:var(--accent);cursor:pointer;white-space:nowrap}
.rw43-rating-count:hover,.rw43-rating-count:focus-visible{text-decoration:underline}
.rw432-popover{position:fixed;z-index:2500;width:min(310px,calc(100vw - 20px));padding:.9rem 1rem;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);box-shadow:0 14px 35px #0006;box-sizing:border-box;font-size:.83rem}
.rw432-popover[hidden]{display:none!important}
.rw432-popover-heading{display:flex;align-items:center;justify-content:space-between;font-weight:750;margin-bottom:.85rem;font-size:1rem}
.rw432-popover-heading button{appearance:none;border:none;background:none;color:var(--muted);font-size:1.25rem;line-height:1;cursor:pointer}
.rw432-dist-row{display:grid;grid-template-columns:15px minmax(45px,1fr) 105px;align-items:center;gap:.45rem;margin:.4rem 0;line-height:1.25}
.rw432-bar{height:18px;background:var(--raised);border-radius:3px;overflow:hidden;display:block}
.rw432-bar>span{height:100%;display:block;background:var(--rw43-star,#e4b36d)}
.rw432-dist-row[data-star="5"] .rw432-bar>span{background:#52b74f}
.rw432-dist-row[data-star="4"] .rw432-bar>span{background:#8bc34a}
.rw432-dist-row[data-star="3"] .rw432-bar>span{background:#dbc14d}
.rw432-dist-row[data-star="2"] .rw432-bar>span{background:#db922a}
.rw432-dist-row[data-star="1"] .rw432-bar>span{background:#d46b2b}
.rw432-dist-value{text-align:left;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.rw432-dist-note{font-size:.73rem;color:var(--muted);margin:.85rem 0 0}
@media(max-width:450px){.rw432-home-cover .rw432-badge{flex-wrap:wrap;row-gap:.14rem}.rw432-home-cover .rw432-badge-label{width:100%}.rw432-genre-rating{position:static;margin-top:.65rem}.rw432-popover{font-size:.77rem}}


/* === engagement-v75.css === */
/* v75: isolated reader support, profile actions, and home story metrics. */
body.reader-page .rw74-story-support{text-align:center;margin:18px auto 20px;max-width:100%;}
body.reader-page .rw74-story-support>.rw74-support-links,
body.reader-page .rw74-story-support .rw74-support-links{justify-content:center;}
.profile-v4-card .rw75-profile-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:stretch;width:100%;margin:14px 0 0;}
.profile-v4-card .rw75-profile-actions>form,.profile-v4-card .rw75-profile-actions>.rw75-donate{min-width:0;margin:0;}
.profile-v4-card .rw75-profile-actions .btn{box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;min-width:0;min-height:36px;margin:0;padding:7px 3px;white-space:nowrap;font-size:clamp(.74rem,.85vw,.84rem);font-weight:600;text-align:center;cursor:pointer;}
.profile-v4-card .rw75-profile-actions .rw75-action-disabled{opacity:.55;cursor:not-allowed;}
.profile-v4-card .rw75-edit-profile{display:inline-flex;justify-content:center;margin:11px auto 0;max-width:100%;}
.rw75-donate{position:relative;}
.rw75-donate>summary{list-style:none;cursor:pointer;}
.rw75-donate>summary::-webkit-details-marker{display:none;}
.rw75-donate[open]>summary{border-color:var(--accent);}
.rw75-donate-menu{position:absolute;z-index:40;top:calc(100% + 6px);right:0;width:max-content;min-width:178px;max-width:min(280px,90vw);padding:6px;background:var(--raised);border:1px solid var(--border);border-radius:9px;box-shadow:0 10px 28px rgba(0,0,0,.35);}
.profile-v4-card .rw75-donate-menu .rw74-support-links{display:flex;flex-direction:column;align-items:stretch;padding:0;margin:0;gap:3px;}
.profile-v4-card .rw75-donate-menu .rw74-support-link{display:flex;justify-content:flex-start;white-space:nowrap;padding:7px 9px;min-height:34px;}
.rw75-home-meta{display:flex;flex-wrap:wrap;gap:5px 12px;align-items:center;line-height:1.45;white-space:normal;}
.rw75-home-meta>span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;}
.rw75-home-meta svg{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
@media(max-width:450px){.rw75-home-meta{gap:4px 9px;font-size:.78rem}.profile-v4-card .rw75-profile-actions{gap:4px}}


/* === member-presence-v78.css === */
/* v78 global member status, small CSS-only dots; no icon fonts or external resources. */
.rw78-presence-frame{position:relative;display:inline-flex;vertical-align:middle;flex:0 0 auto;max-width:100%;line-height:0;isolation:isolate}
.rw78-presence-frame>img{max-width:100%}
.rw78-presence-dot{position:absolute;z-index:2;top:0;right:0;width:11px;height:11px;border-radius:50%;background:#89919c;border:2px solid var(--surface,#20262f);box-sizing:content-box;pointer-events:none;box-shadow:0 0 0 1px rgba(0,0,0,.16)}
.rw78-presence-frame.rw78-is-online>.rw78-presence-dot{background:#25ca85}
.profile-v4-card>.rw78-presence-frame{margin:0 auto 12px;display:flex;width:max-content}
.profile-v4-card>.rw78-presence-frame>img.profile-v4-avatar{margin:0}
.profile-entry-head>.rw78-presence-frame>img,.rw77-message>.rw78-presence-frame>img{display:block}
.rw78-friends{max-width:1050px;margin:0 auto}.rw78-heading{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;align-items:center;margin:0 0 15px}.rw78-heading h1{margin:0}.rw78-heading p{color:var(--muted,#9da9b8);margin:4px 0}.rw78-toolbar{display:flex;gap:9px;flex-wrap:wrap}
.rw78-friend-summary{display:flex;flex-wrap:wrap;gap:15px;padding:14px 16px;border:1px solid var(--border,#394151);border-radius:10px;margin-bottom:15px}.rw78-friend-summary strong{font-size:1.15rem}
.rw78-find{padding:15px;border:1px solid var(--border,#394151);background:var(--surface,#20262f);border-radius:10px;display:grid;gap:9px}.rw78-find>div{display:flex;gap:10px}.rw78-find input{flex:1;min-width:0}
.rw78-friend-section{margin:24px 0}.rw78-friend-section h2{font-size:1.17rem;margin:0 0 12px}.rw78-member-card{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--border,#394151);border-radius:9px;margin:0 0 7px;background:var(--surface,#20262f)}
.rw78-member-avatar{flex:0 0 auto}.rw78-member-avatar>img{display:block;width:45px;height:45px;object-fit:cover;border-radius:50%}.rw78-member-info{display:flex;flex-direction:column;flex:1;min-width:0}.rw78-member-name{font-weight:600;overflow-wrap:anywhere}.rw78-member-info small,.rw78-muted{font-size:.82rem;color:var(--muted,#a3afbd)}.rw78-member-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;align-items:center}.rw78-member-actions form{margin:0}
.rw78-profile-friend{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;margin:10px 0 0;font-size:.82rem}.rw78-profile-friend form{margin:0}.rw78-profile-friend .btn{font-size:.78rem;padding:5px 9px}.rw78-friend-label{color:var(--muted,#a5b0bc)}.rw78-friend-accepted{font-weight:600}
@media(max-width:540px){.rw78-member-card{gap:8px;padding:10px}.rw78-member-actions{justify-content:flex-start}.rw78-member-info{flex:1 1 105px}.rw78-member-actions .btn{font-size:.78rem;padding:5px 8px}}
.rw78-recipient-chip{border:1px solid var(--border,#445166);border-radius:20px;background:var(--surface,#252d38);color:inherit;padding:5px 12px;cursor:pointer}
.rw78-recipient-chip[aria-pressed="true"]{border-color:#bba1e9;background:rgba(159,122,208,.2)}

/* v78.22: privacy-aware manual presence, shared across site and messenger. */
.rw78-presence-frame.rw7822-is-idle>.rw78-presence-dot{background:#e5b44f}
.rw78-presence-frame.rw7822-is-dnd>.rw78-presence-dot{background:#e45c68}

