/* Reference-only Work Details layout, theme-aware. */
.reference-work{display:grid;gap:20px;min-width:0}
.reference-hero{position:relative;isolation:isolate;border:1px solid var(--border);border-radius:16px;overflow:hidden;padding:16px 22px 18px;color:#f8fafc}
.reference-banner,.reference-hero-shade{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.reference-hero-shade{z-index:-1;background:linear-gradient(90deg,#101827dd,#111827a0,#101827d9)}
.reference-breadcrumb{display:flex;align-items:center;gap:6px;font-size:12px;color:#b6c0d3;margin-bottom:10px}.reference-breadcrumb a:hover{color:white}.reference-breadcrumb b{color:#fff}
.reference-hero-content{display:grid;grid-template-columns:164px minmax(0,1fr) 200px;gap:24px;align-items:start}
.reference-cover{position:relative;border-radius:10px;overflow:hidden;border:1px solid #a7b1cf80;aspect-ratio:2/2.8}.reference-cover img{width:100%;height:100%;object-fit:cover;transition:transform .22s}.reference-cover:hover img{transform:scale(1.025)}
.reference-type{position:absolute;top:8px;inset-inline-start:8px;font-size:10px;font-weight:700;padding:4px 7px;background:var(--accent);color:#fff;border-radius:5px}
.reference-hero-info{display:grid;gap:12px;padding-top:4px}.reference-hero-info h1{font-size:30px;line-height:1.2;color:#fff;margin:0}.reference-hero-info p{font-size:13px;line-height:1.65;color:#cbd5e1;max-width:660px;margin:0}
.reference-countdown{justify-self:start;display:flex;align-items:center;gap:6px;border:1px solid #63748f;border-radius:7px;background:#101a2edb;padding:7px 10px;font-size:12px;color:#b9c9dc}.reference-countdown b{color:#fff}.reference-countdown .ic{width:15px;height:15px}
.reference-tags{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.reference-trend{display:flex;align-items:center;gap:4px;color:#fb7185;background:#3f1a2a99;border:1px solid #fb718570;padding:5px 8px;border-radius:6px;font-size:11px;font-weight:650}.reference-trend .ic{width:13px;height:13px}.reference-genre{font-size:12px;color:var(--accent);font-weight:550;transition:color .2s}.reference-hero .reference-genre{color:#b4d6ff}.reference-genre:hover{text-decoration:underline}.genre-sep{color:var(--muted)}
.reference-hero-actions{display:grid;gap:10px;align-self:center}.reference-rating{display:grid;justify-items:center;gap:7px;padding:13px 10px;background:color-mix(in srgb,var(--surface) 88%,#202d45);border:1px solid var(--border);border-radius:11px;transition:background .2s,border-color .2s}.reference-rating:hover{border-color:var(--accent);background:var(--raised)}.reference-rating>div{display:flex;align-items:baseline;gap:6px}.reference-rating b{font-size:25px}.reference-rating .gold{font-size:23px}.reference-rating small{font-size:10px}.reference-hero-buttons{display:flex;gap:6px;align-items:center}.reference-hero-buttons button{font-size:11px;padding:7px 8px;white-space:nowrap;min-height:34px;flex:1}.reference-hero-buttons button:last-child{flex:0 0 auto}
.reference-work-grid{display:grid;grid-template-columns:minmax(200px,1fr) minmax(0,3fr);gap:16px;align-items:stretch}.reference-information{display:flex;flex-direction:column;justify-content:space-evenly;gap:10px;padding:17px 20px}.reference-info-item{display:flex;align-items:flex-start;gap:10px;min-width:0}.reference-info-icon{color:var(--muted);padding-top:2px;flex:none}.reference-info-icon .ic{width:16px;height:16px}.reference-info-item>div{min-width:0}.reference-info-item small{display:block;color:var(--muted);font-size:11px;margin-bottom:3px}.reference-info-value{font-size:13px;font-weight:600;overflow-wrap:anywhere}.reference-status.ongoing{color:#34d399}.reference-status.completed{color:var(--accent)}.reference-status.hiatus{color:#eab308}.reference-information .review-select-trigger{min-height:27px;padding:4px 7px;font-size:12px}
.reference-work-main{display:grid;gap:12px;min-width:0;align-content:start}.reference-chapters{padding:13px}.reference-chapter-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.reference-chapter-header h2{font-size:18px;margin:0 0 3px}.reference-chapter-header small{font-size:11px;color:var(--muted)}.reference-chapter-header .chapter-tools{gap:5px}.reference-chapter-header input{width:100px}
.reference-chapters .chapter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:308px;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain;padding:1px;align-content:start}
.reference-chapters .reference-chapter{display:grid;grid-template-columns:minmax(62px,35%) minmax(0,1fr) auto;gap:7px;align-items:stretch;min-height:89px;padding:6px;border:1px solid var(--border);background:var(--surface);border-radius:10px;transition:background .2s,border-color .2s;min-width:0}
.reference-chapters .reference-chapter:hover{background:var(--raised);border-color:var(--accent)}.reference-chapters .reference-chapter.current{background:color-mix(in srgb,var(--accent) 12%,var(--surface));border-color:var(--border);outline:none}.reference-chapter.current .reference-chapter-text b{color:var(--accent)}
.reference-chapters .reference-chapter.read{opacity:1}.reference-chapter.read .reference-chapter-art img{filter:grayscale(1);opacity:.65}.reference-chapter.read .reference-chapter-text{color:var(--muted)}
.reference-chapter-art{position:relative;align-self:center;min-width:0}.reference-chapters .reference-chapter-art img{width:100%;height:64px;object-fit:cover;border-radius:7px}.reference-chapter-new{position:absolute;top:3px;inset-inline-end:3px;font-size:8px;background:var(--accent);color:#fff;border-radius:4px;padding:3px 4px;font-weight:700}
.reference-chapter-text{display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0}.reference-chapter-text b{font-size:12px;white-space:nowrap}.reference-chapter-text>span{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reference-chapter-text small{font-size:9px;color:var(--muted)}.reference-chapter-side{display:flex;flex-direction:column;justify-content:space-between;align-items:end;gap:4px}.reference-chapter-side small{font-size:10px;white-space:nowrap}.reference-chapter-side .reference-read{color:#34d399;font-size:9px}
.reference-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.reference-stat{display:flex;align-items:center;justify-content:center;gap:10px;padding:10px;background:var(--surface);border:1px solid var(--border);border-radius:9px;min-width:0}.reference-stat .ic{width:19px;height:19px;color:var(--accent)}.reference-stat>div{display:grid;gap:3px}.reference-stat b{font-size:17px}.reference-stat small{font-size:10px;color:var(--muted)}
.reference-activity{padding:10px 12px}.reference-activity h3{font-size:13px}.reference-activity-grid{display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:8px;margin-top:8px}.reference-activity-grid>div,.reference-your-rating{display:flex;align-items:center;gap:8px;min-width:0;min-height:58px;border:1px solid var(--border);border-radius:8px;background:var(--raised);padding:8px}.reference-activity-grid .reference-progress{flex-direction:column;align-items:stretch;gap:4px}.reference-progress b{font-size:11px}.reference-progress .progress{height:5px;width:100%}.reference-progress small,.reference-continue small,.reference-your-rating small{font-size:9px;color:var(--muted)}.reference-book-icon{display:grid;place-content:center;flex:none;background:var(--accent);border-radius:50%;width:25px;height:25px;color:#fff}.reference-book-icon .ic{width:14px;height:14px}.reference-continue>div{display:grid;gap:3px;min-width:0;flex:1}.reference-continue b{font-size:11px}.reference-resume-button{padding:5px 7px;border-radius:5px;background:var(--accent);color:white!important;font-size:10px;white-space:nowrap}.reference-your-rating{justify-content:space-between;flex-wrap:wrap;font-size:11px}.reference-your-rating .ic{width:13px;height:13px;color:var(--muted)}.work-stars{display:inline-flex;white-space:nowrap;gap:2px}.star-meter{color:transparent;background:linear-gradient(90deg,#fbbf24 var(--filled),var(--muted) var(--filled));background-clip:text;-webkit-background-clip:text;font-size:14px}
.reference-creators{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:16px;padding:13px}.reference-creators-list{padding-inline-end:14px;border-inline-end:1px solid var(--border);min-width:0}.reference-creators-list h3{font-size:12px;color:var(--muted);margin-bottom:9px}.reference-creators-list>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.reference-creator{display:flex;align-items:center;gap:6px;min-width:0;background:var(--raised);border:1px solid var(--border);border-radius:7px;padding:6px}.reference-creator .avatar{width:27px;height:27px;flex:none}.reference-creator>div{min-width:0;display:grid;gap:3px}.reference-creator b{font-size:10px;line-height:1.3;overflow-wrap:anywhere}.reference-creator small{font-size:9px;color:var(--muted)}.reference-creator-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:center}.reference-support,.reference-discord{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid var(--border);border-radius:8px;background:var(--raised);min-width:0}.reference-creator-actions>div>div{display:grid;gap:4px;flex:1;min-width:0}.reference-creator-actions b{font-size:11px}.reference-creator-actions small{font-size:10px;line-height:1.3;color:var(--muted)}.reference-creator-actions button{flex:none;min-width:0;padding:7px 9px;font-weight:650;font-size:10px;border:0;color:#fff}.reference-creator-actions .reference-support-button{background:#e6a40c;color:#17120a}.reference-creator-actions .reference-discord-button{background:#0ea5e9}
.reference-similar{min-width:0;padding:12px}.reference-similar-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.reference-similar-head h3{display:flex;align-items:center;gap:6px;font-size:15px;color:var(--muted)}.reference-similar-head h3 .ic{width:15px;height:15px}.reference-similar-head button{width:28px;height:28px;padding:3px;border-radius:50%}.reference-similar-rail{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity}.reference-similar-rail::-webkit-scrollbar{display:none}.reference-similar-card{display:flex;align-items:center;gap:10px;flex:0 0 270px;min-width:0;height:86px;border:1px solid var(--border);border-radius:7px;background:var(--raised);padding:0 8px 0 0;overflow:hidden;scroll-snap-align:start;transition:border-color .2s,background .2s}.reference-similar-card img{width:55px;height:84px;object-fit:cover;flex:none;border-radius:5px}.reference-similar-card>div{min-width:0;display:grid;gap:5px;flex:1}.reference-similar-card b{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reference-similar-card small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reference-similar-meta{display:flex;gap:5px;align-items:center;justify-content:space-between}.reference-similar-meta strong{font-size:11px;color:#fbbf24;white-space:nowrap}.reference-similar-meta>span{font-size:9px;color:var(--muted);white-space:nowrap}.reference-similar-card:hover{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--raised))}
.reference-work .comments-layout{margin:0;align-items:start;gap:14px}.reference-work .comment-compose{padding:12px;display:grid;gap:8px;position:sticky;top:90px}.reference-work .comment-compose h3{font-size:15px;margin:0}.reference-work .comment-compose .line{margin:4px 0}.reference-reactions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.reference-reaction{display:grid;justify-items:center;gap:3px;padding:7px 2px;background:var(--raised);border:1px solid var(--border);border-radius:7px;min-width:0}.reference-reaction span{font-size:17px}.reference-reaction small{font-size:10px}.reference-reaction:hover,.reference-reaction.active{background:var(--accent-soft);border-color:var(--accent)}.reference-work .comment-compose textarea{resize:none;min-height:35px;max-height:90px;line-height:1.4}.reference-comments .comment{padding:12px 0}.reference-replies-toggle{font-size:11px;color:var(--accent);background:none;border:0;padding:3px 0;justify-self:start}.reference-replies{display:grid;gap:9px;border-inline-start:1px solid var(--border);padding-inline-start:14px;margin-inline-start:8px}.reference-replies[hidden]{display:none}.reference-reply{display:flex;gap:8px;align-items:flex-start}.reference-reply .avatar{width:26px;height:26px}.reference-reply b,.reference-reply p{font-size:12px}.reference-reply small{font-size:10px;color:var(--muted)}
dialog.reference-rate-modal{width:min(340px,calc(100vw - 32px))}.reference-rating-form{text-align:center;display:grid;gap:14px;padding:8px 6px}.reference-rating-form p{font-size:13px;color:var(--muted)}.reference-rating-stars{display:flex;justify-content:center;gap:3px}.rating-star{font-size:38px;line-height:1.1;padding:4px;min-width:0;color:var(--muted);background:none;border:0;transition:color .18s,transform .15s}.rating-star.filled{color:#fbbf24}.rating-star.half{color:transparent;background:linear-gradient(90deg,#fbbf24 50%,var(--muted) 50%);background-clip:text}.rating-star:hover{transform:scale(1.12);color:#fbbf24}.reference-rating-number{font-size:22px}.reference-rating-caption{font-size:11px;color:var(--muted)}.reference-rating-save{justify-content:center}
[dir=rtl] .direction-explicit .ic{transform:none!important}.home-view-all.direction-explicit{display:inline-flex;align-items:center;gap:5px}.home-view-all.direction-explicit:after{content:"›";direction:ltr;unicode-bidi:isolate}[dir=rtl] .home-view-all.direction-explicit:after{content:"‹"}
.review-resume .grow{align-self:center;min-width:0}.review-resume-progress{margin-top:1px;min-width:0}.review-resume-progress .progress{width:auto;min-width:0}.review-resume .review-type{position:static}.review-resume .resume-play .ic{transform:none!important}
@media(max-width:1100px){.reference-hero-content{grid-template-columns:140px minmax(0,1fr) 170px;gap:16px}.reference-work-grid{grid-template-columns:minmax(185px,1fr) minmax(0,2.8fr)}.reference-chapters .chapter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.reference-chapters .reference-chapter{grid-template-columns:minmax(48px,32%) minmax(0,1fr);gap:5px;position:relative}.reference-chapter-side{position:absolute;inset-inline-end:5px;top:4px;bottom:4px}.reference-chapter-text{padding-top:10px;padding-bottom:8px}.reference-creators{grid-template-columns:1fr}.reference-creators-list{padding:0;border:0}}
@media(max-width:700px){.reference-work{gap:12px}.reference-hero{padding:10px;border-radius:14px}.reference-breadcrumb{font-size:10px;gap:4px;margin-bottom:8px}.reference-hero-content{grid-template-columns:100px minmax(0,1fr);gap:10px}.reference-hero-info{gap:7px;padding:0}.reference-hero-info h1{font-size:21px}.reference-hero-info p{font-size:11px;line-height:1.45}.reference-countdown{font-size:10px;padding:4px 6px}.reference-tags{gap:4px}.reference-genre,.reference-trend{font-size:10px}.reference-type{font-size:9px;top:5px;inset-inline-start:5px}.reference-hero-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:7px}.reference-rating{display:flex;align-items:center;gap:4px;padding:5px 7px}.reference-rating>small:first-child{display:none}.reference-rating b,.reference-rating .gold{font-size:15px}.reference-rating small{font-size:9px}.reference-hero-buttons{gap:4px}.reference-hero-buttons button{font-size:10px;padding:5px 6px;min-height:29px}.reference-work-grid{grid-template-columns:1fr;gap:10px}.reference-information{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:10px}.reference-info-item{gap:6px}.reference-info-value{font-size:11px}.reference-info-item small{font-size:10px}.reference-info-icon .ic{width:14px;height:14px}.reference-chapters{padding:10px}.reference-chapter-header h2{font-size:15px}.reference-chapter-header small{font-size:10px}.reference-chapter-header input{width:66px}.reference-chapter-header .chapter-tools{gap:4px}.reference-chapter-header .chapter-start{min-width:0;padding:5px 7px}.reference-chapters .chapter-grid{grid-template-columns:1fr;max-height:320px}.reference-chapters .reference-chapter{grid-template-columns:105px minmax(0,1fr) auto;min-height:81px;padding:6px;gap:8px}.reference-chapter-side{position:static}.reference-chapter-text{padding:0}.reference-chapters .reference-chapter-art img{height:66px}.reference-stats{gap:6px}.reference-stat{gap:5px;padding:8px 4px}.reference-stat b{font-size:15px}.reference-stat .ic{width:15px;height:15px}.reference-stat small{font-size:9px}.reference-activity-grid{grid-template-columns:1fr 1fr;gap:6px}.reference-activity-grid .reference-continue{grid-column:1/-1;grid-row:2}.reference-activity-grid>div,.reference-your-rating{min-height:49px;padding:6px;gap:4px}.reference-creators{padding:10px;gap:9px}.reference-creators-list>div{gap:4px}.reference-creator{padding:4px;gap:4px}.reference-creator .avatar{width:23px;height:23px}.reference-creator b{font-size:9px}.reference-creator-actions{gap:6px}.reference-creator-actions>div{padding:6px;flex-wrap:wrap;gap:5px}.reference-creator-actions b{font-size:10px}.reference-creator-actions small{font-size:9px}.reference-creator-actions button{font-size:10px;width:100%}.reference-similar{padding:10px}.reference-similar-card{flex-basis:225px;height:79px}.reference-similar-card img{height:77px;width:50px}.reference-similar-head .row{display:none}.reference-work .comment-compose{position:static}.reference-work .comments-layout{gap:9px}.reference-reaction span{font-size:16px}}
@media(prefers-reduced-motion:reduce){.reference-work *,.reference-rating-form *{transition:none!important}}

/* Final source comparison: center the rating window and stabilize the compact artwork. */
body[data-review-page=home] dialog.reference-rate-modal{inset:0;margin:auto;max-height:calc(100dvh - 28px);border-radius:13px}
.reference-rate-modal .dialog-head{min-height:0;padding:12px 15px}.reference-rate-modal .dialog-body{padding:13px}
.reference-hero-shade{background:linear-gradient(90deg,#101827d9,#111827b0,#101827e0)}
[dir=rtl] .reference-hero-shade{background:linear-gradient(270deg,#101827d9,#111827b0,#101827e0)}
.reference-progress .progress{display:block;width:100%!important;min-width:0;align-self:stretch;background:color-mix(in srgb,var(--border) 60%,var(--surface));overflow:hidden}
.reference-chapters .reference-chapter-art img{display:block}
.reference-similar-card{padding:0;padding-inline-end:8px}.reference-similar-card img{border-radius:5px}
.reference-creator-actions .reference-support-button:hover{filter:brightness(1.1)}.reference-creator-actions .reference-discord-button:hover{filter:brightness(1.1)}
.reference-work .comment-compose .row#comment-form{align-items:center;min-width:0}.reference-work .comment-compose textarea{height:36px;min-height:36px}
.reference-work .comments-layout{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
.reference-work .reference-info-item:has(.reference-status.ongoing) .reference-info-icon{color:#34d399}
[dir=rtl] .review-catalog-pagination .direction-explicit .ic,[dir=rtl] .reference-similar-head .direction-explicit .ic{transform:none!important}
@media(max-width:700px){.reference-work .comments-layout{grid-template-columns:1fr}.reference-hero-info p{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}.reference-hero-actions .reference-rating{flex:none}.reference-hero-actions .reference-hero-buttons{flex:1;justify-content:end}.reference-hero-buttons button .ic{width:13px;height:13px}.reference-hero-buttons button{padding:5px;gap:3px}.reference-rate-modal .dialog-head{padding:9px 12px}}

/* 2026-12-04: separate aggregate and personal scales; compact chapter stars. */
.reference-work .reference-your-rating{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px;min-width:0;cursor:default}
.reference-inline-stars{display:inline-flex;align-items:center;gap:2px;max-width:100%}
.reference-inline-stars .inline-rating-star{background:transparent;border:0;box-shadow:none;color:var(--muted,#8991a3);padding:2px;min-width:0;min-height:28px;font-size:20px;line-height:1;transition:color .2s,transform .1s}
.reference-inline-stars .inline-rating-star.filled,.reference-inline-stars .inline-rating-star:hover{color:#fbbf24}
.reference-inline-stars .inline-rating-star:active{transform:scale(.94)}
.reference-chapter-rating{display:flex;align-items:center;gap:3px;max-width:100%;white-space:nowrap;color:#fbbf24;font-size:10px}
.reference-chapter-rating .work-stars{display:inline-flex;gap:0;font-size:10px;line-height:1}
.reference-chapter-rating .star-meter{font-size:inherit}
.reference-work .reference-reactions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;margin:0}
.reference-work .reference-reaction{width:100%;min-width:0;min-height:36px;padding:5px;justify-content:center}
@media(max-width:700px){.reference-inline-stars .inline-rating-star{font-size:17px;padding:1px}.reference-chapter-rating{flex-direction:column;align-items:flex-end;gap:2px}.reference-chapter-rating .work-stars{font-size:9px}.reference-chapter-side{min-width:0}}

/* Approved exception: original team-card geometry and button tokens. */
.reference-creator-actions>div{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:64px;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface);font-size:11px}
.reference-creator-actions>div>div{min-width:0;overflow-wrap:break-word}
.reference-creator-actions>div small{display:block;margin-top:4px;font-size:9px;line-height:12px}
.reference-creator-actions button{flex-shrink:0;min-height:30px;padding:5px 10px!important;font-size:10px;border-radius:6px;font-weight:600;color:#fff!important}
.reference-creator-actions .reference-support-button{background:#f59e0b!important;border-color:#f59e0b!important}
.reference-creator-actions .reference-discord-button{background:var(--accent)!important;border-color:var(--accent)!important}
@media(max-width:700px){.reference-creator-actions>div{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between}.reference-creator-actions button{width:100%}}

dialog.reference-report-modal{width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;inset:0;border-radius:14px}
.reference-report{display:grid;gap:6px}.reference-report p,.reference-report small{color:var(--muted);font-size:11px}.reference-report label{font-weight:600;font-size:12px;margin-top:5px}.reference-report-target{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--border);border-radius:7px}.reference-report-target img{width:24px;height:36px;object-fit:cover;border-radius:4px}.reference-report-target>div{flex:1;min-width:0;display:grid}.reference-report-columns{display:grid;grid-template-columns:1fr 1fr;gap:8px}.reference-report-columns>div{display:grid;gap:4px;min-width:0}.reference-report :is(select,textarea){width:100%;padding:7px 10px;border-radius:5px}.reference-report>.row{justify-content:flex-end}.reference-report-danger{background:#b91c1c;color:white;border-color:#b91c1c}

/* Half-star rating: fixed physical direction in both locales, cumulative hover. */
.reference-inline-stars,.reference-rating-stars{direction:ltr!important;unicode-bidi:isolate;flex-direction:row!important}
.reference-inline-stars .inline-rating-star,.reference-rating-stars .rating-star{position:relative;display:grid;place-items:center;padding:0 2px;line-height:1.3;background:none!important;border:0!important;box-shadow:none!important;color:transparent!important;transform:none!important;direction:ltr!important}
.reference-inline-stars .inline-rating-star:after,.reference-rating-stars .rating-star:after{content:'★';position:absolute;inset:0;display:grid;place-items:center;color:transparent;background:linear-gradient(to right,#fbbf24 var(--star-fill,0%),#9299a8 var(--star-fill,0%));background-clip:text;-webkit-background-clip:text;pointer-events:none}
.reference-rating-stars .rating-star{width:42px;min-height:46px;font-size:36px}.reference-inline-stars .inline-rating-star{width:23px;min-height:30px;font-size:20px}
.reference-inline-stars .inline-rating-star:focus-visible,.reference-rating-stars .rating-star:focus-visible{outline:1px solid var(--accent);outline-offset:1px;border-radius:4px}
.reference-chapters .reference-chapter{display:flex;position:relative;align-items:center;min-height:96px;gap:10px;padding:8px 10px;border-radius:8px}
.reference-chapters .reference-chapter-art{flex:0 0 54px;width:54px;height:76px;overflow:hidden;border:1px solid var(--border);border-radius:4px}
.reference-chapters .reference-chapter-art img{width:100%;height:100%;object-fit:cover;border-radius:0}
.reference-chapter-text{flex:1;align-self:stretch;justify-content:center;gap:6px;min-width:0;padding:0}.reference-chapter-text b{font-size:13px;padding-inline-end:26px}.reference-chapter-text>span{font-size:11px}.reference-chapter-metrics{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:auto}.reference-chapter-metrics .reference-chapter-rating{flex-direction:row;align-items:center}.reference-chapter-metrics b{padding:0;font-size:10px}
.reference-chapter-side{position:absolute;inset-inline-end:7px;top:7px;bottom:auto;display:flex}.reference-chapter-side .reference-chapter-new{position:static}
.reference-creators{align-items:stretch;gap:12px}.reference-creators-list{display:grid;align-content:center}.reference-creators-list>div{align-items:stretch}.reference-creator{min-height:62px;align-items:center}.reference-creator>div{flex:1}.reference-creator b{font-size:11px;line-height:1.3;overflow-wrap:anywhere}.reference-creator small{font-size:10px}.reference-creator-actions{align-items:stretch;grid-auto-rows:1fr}.reference-creator-actions>div{min-height:76px;height:100%;box-sizing:border-box}.reference-creator-actions b{font-size:12px}.reference-creator-actions small{font-size:10px;line-height:1.4}
.reference-work .reference-reaction{display:flex;align-items:center;gap:6px;min-height:43px;padding:8px}.reference-reaction b{font-size:11px}.reference-reaction small{margin-inline-start:auto}
.reference-work .comment-compose textarea{overflow:auto;min-width:0;resize:none}
@media(min-width:701px){.reference-work .comments-layout{align-items:start}.reference-work .comment-compose{position:sticky;top:90px;align-self:start}.reference-work .comment-compose .row#comment-form{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.reference-work .comment-compose textarea{grid-column:1/-1;min-height:130px;height:130px;max-height:none;padding:14px;resize:vertical}.reference-work .comment-compose .row#comment-form>button:last-child{grid-column:2}.reference-work .comment-compose .row#comment-form>button:not(:last-child){justify-self:start}}
@media(max-width:700px){.reference-creators-list>div{grid-template-columns:repeat(3,minmax(0,1fr))}.reference-creator{min-height:74px;flex-direction:column;justify-content:center;gap:4px;text-align:center;padding:6px 3px}.reference-creator b{font-size:10px;line-height:1.3}.reference-creator small{font-size:9px}.reference-creator-actions>div{min-height:116px;padding:8px;gap:6px}.reference-creator-actions>div>div{align-content:start}.reference-creator-actions b{font-size:11px}.reference-creator-actions small{font-size:10px}.reference-creator-actions button{margin-top:auto}.reference-work .reference-reaction{gap:4px;padding:6px}.reference-reaction b{font-size:10px}.reference-reaction span{font-size:15px}.reference-work .comment-compose textarea{height:36px;min-height:36px;max-height:36px;overflow:hidden}.reference-chapters .reference-chapter{min-height:96px}.reference-inline-stars .inline-rating-star{width:20px;font-size:18px}}

.reference-replies{position:relative;display:grid;gap:0;padding:6px 0 6px 24px;padding-inline-start:24px;padding-inline-end:0;margin-inline-start:-25px;border-inline-start:1px solid var(--border);border-end-start-radius:18px}
.reference-reply{position:relative;display:flex;gap:10px;padding:10px 0;min-width:0}
.reference-reply:before{content:'';position:absolute;width:23px;height:26px;inset-inline-start:-24px;top:0;border-bottom:1px solid var(--border);border-inline-start:1px solid var(--border);border-end-start-radius:18px;pointer-events:none}
.reference-reply .avatar{width:36px;height:36px;flex:none}.reference-reply-content{min-width:0;flex:1}.reference-reply-content b{font-size:13px}.reference-reply-content small{font-size:11px;margin-inline-start:4px}.reference-reply-content p{font-size:12.5px;line-height:1.5;margin-block:5px;overflow-wrap:anywhere}.reference-reply-actions{display:flex;align-items:center;gap:8px;color:var(--accent);font-size:10px}.reference-reply-actions button{font-size:10px;padding:3px 5px}.reference-reply-actions .ic{width:13px;height:13px}
@media(max-width:700px){.reference-reply .avatar{width:28px;height:28px}.reference-replies{margin-inline-start:-16px;padding-inline-start:18px}.reference-reply:before{width:17px;inset-inline-start:-18px}.reference-reply-content b{font-size:12px}}

/* Compact, theme-native work menu and discussion. */
body[data-review-page=home] dialog.reference-work-menu-modal{width:min(220px,calc(100vw - 32px));border-radius:10px;padding:0}
.reference-work-menu-modal .dialog-head{min-height:34px;padding:7px 10px}.reference-work-menu-modal .dialog-head h3{font-size:12px}.reference-work-menu-modal .dialog-body{padding:6px}
.reference-work-menu{display:grid;gap:3px}.reference-work-menu button{display:flex;justify-content:flex-start;gap:7px;padding:7px 8px;min-height:30px;font-size:11px;text-align:start;border:0;background:transparent}.reference-work-menu button:hover{background:var(--raised)}.reference-work-menu .ic{width:14px;height:14px}
.reference-creators{gap:10px;padding:10px}.reference-creator{min-height:44px;padding:5px;gap:5px}.reference-creator b{font-size:10px}.reference-creator small{font-size:9px}.reference-creator-actions>div{min-height:62px;padding:7px 9px}.reference-creator-actions b{font-size:11px}.reference-creator-actions small{font-size:10px}
.reference-work .comments-layout{gap:10px;align-items:stretch}.reference-work .comment-compose{padding:10px;gap:6px}.reference-work .comment-compose h3{font-size:13px}.reference-work .reference-reaction{min-height:36px;padding:5px 6px;gap:4px}.reference-reaction span{font-size:15px}.reference-reaction b,.reference-reaction small{font-size:10px}
.reference-work .reference-comments{padding:10px;min-width:0}.reference-comments h2{font-size:15px}.reference-comments .comment{gap:8px;padding:10px 0;font-size:12px}.reference-comments .comment>.avatar{width:30px;height:30px;flex:none}.reference-comments .comment .grow.stack{gap:4px}.reference-comments .comment b{font-size:12px}.reference-comments .comment p{font-size:12px;line-height:1.45;margin:3px 0}.reference-comments .comment .row button{padding:3px 5px;font-size:10px;min-height:24px}.reference-comments .comment .row .ic{width:13px;height:13px}.reference-replies-toggle{font-size:10px;padding:3px 0}.reference-replies{padding-block:2px;margin-inline-start:-14px;padding-inline-start:17px;gap:0}.reference-reply{gap:7px;padding:6px 0}.reference-reply:before{width:16px;height:17px;inset-inline-start:-17px}.reference-reply .avatar{width:25px;height:25px}.reference-reply-content b{font-size:11px}.reference-reply-content small{font-size:10px}.reference-reply-content p{font-size:11px;margin:3px 0}.reference-reply-actions{gap:5px}
@media(min-width:701px){.reference-work .comments-layout{grid-template-columns:minmax(250px,1fr) minmax(0,2fr);align-items:stretch}.reference-work .comment-compose{position:relative;top:auto;align-self:stretch;display:flex;flex-direction:column}.reference-work .comment-compose #comment-form{display:grid;grid-template-columns:1fr auto;grid-template-rows:minmax(130px,1fr) auto;flex:1;min-height:170px}.reference-work .comment-compose textarea{height:100%;min-height:130px;max-height:none;resize:none}.reference-work .reference-comments{max-height:420px;overflow:auto;scrollbar-width:thin}}
@media(max-width:700px){.reference-creators-list>div{gap:4px}.reference-creator{flex-direction:row;align-items:center;justify-content:flex-start;text-align:start;min-height:48px;padding:4px;gap:4px}.reference-creator .avatar{width:22px;height:22px}.reference-creator b{font-size:9px;line-height:1.25}.reference-creator-actions>div{min-height:88px;height:100%;padding:7px;gap:4px}.reference-creator-actions small{font-size:9px}.reference-creator-actions button{min-height:26px;padding:4px 7px!important}.reference-work .comments-layout{display:grid;grid-template-columns:1fr}.reference-work .comment-compose textarea{height:36px;min-height:36px}.reference-reply .avatar{width:24px;height:24px}}

@media(min-width:701px){.reference-work .comment-compose .row#comment-form{align-items:stretch;grid-template-rows:minmax(130px,1fr) auto}.reference-work .comment-compose #comment-form input[type=hidden]{display:none}.reference-work .comment-compose #comment-form textarea{height:auto;align-self:stretch;resize:none}.reference-work .comment-compose #comment-form>button{align-self:end}}

/* Reply connectors terminate at each avatar; no decorative tail. */
.reference-work .reference-replies{border:0;border-radius:0;margin-inline-start:0;padding-inline-start:17px;padding-block:0;position:relative}
.reference-work .reference-reply{position:relative}
.reference-work .reference-reply:before{content:'';position:absolute;inset-inline-start:-13px;top:0;width:13px;height:18px;border:0;border-inline-start:1px solid var(--border);border-bottom:1px solid var(--border);border-end-start-radius:8px}
.reference-work .reference-reply:not(:last-child):after{content:'';position:absolute;inset-inline-start:-13px;top:18px;bottom:0;border-inline-start:1px solid var(--border)}
.reference-work .reference-reply:last-child:after{content:none}

.work-options-dropdown{position:fixed!important;inset:auto;min-width:0;width:max-content;max-width:calc(100vw - 16px);margin:0;padding:4px;z-index:90;color:var(--text)}.work-options-dropdown button{display:flex;align-items:center;gap:7px;font-size:11px;min-height:31px;padding:6px 9px}.work-options-dropdown .ic{width:14px;height:14px}.work-options-dropdown::backdrop{background:transparent}
