/* STILLROOM — COMMUNITY LAYER. Keeps the editorial design and existing palette tokens. */
.avatar{position:relative;display:inline-grid;place-items:center;flex-shrink:0;overflow:hidden;border-radius:50%;isolation:isolate}
.avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.avatar.has-image{background:var(--soft)}
.avatar.big{min-width:76px;min-height:76px;width:76px;height:76px}
.profile-summary .avatar.big{width:152px;height:152px;font-size:2rem}
.post-author .avatar{width:64px;height:64px;font-size:1.125rem}
.original-post .post-author .avatar{width:77px;height:77px}
.thread-heading-meta .avatar{width:37px;height:37px}
.thread-row .avatar{width:46px;height:46px;font-size:1rem}
.thread-row{grid-template-columns:46px minmax(0,1fr) minmax(115px,auto);gap:16px}
.thread-row .thread-title{line-height:1.37}
.thread-meta{gap:8px 12px;flex-wrap:wrap}
.thread-stats{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.thread-stats .row{white-space:nowrap}
.recent-avatar-cluster{display:flex;align-items:center;padding-left:9px;margin-right:6px}
.recent-avatar-cluster a{margin-left:-9px;border:2px solid var(--bg);width:27px;height:27px;border-radius:50%;overflow:hidden;display:inline-flex}
.recent-avatar-cluster .avatar{height:100%;width:100%;font-size:.6rem}
.community-evaluations{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:22px;margin:0 0 20px}
.community-evaluations .section-title{margin-bottom:11px}
.community-evaluations h2{font-family:var(--serif);font-weight:500;font-size:1.4rem}
.assessment-line{padding:11px 0;border-bottom:1px solid var(--line)}
.assessment-line:last-child{border-bottom:0}
.assessment-line-top{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;font-size:.825rem;color:var(--ink)}
.assessment-line-top span:last-child{color:var(--brand);font-weight:600}
.assessment-line-top small{color:var(--muted);font-weight:400}
.assessment-track{background:var(--soft);height:6px;border-radius:6px;margin:9px 0 4px;overflow:hidden}
.assessment-track span{background:var(--brand);display:block;height:100%;border-radius:6px}
.reader-discussion-feature,.reader-thread-focus{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px 28px;padding:25px 27px;border:1px solid var(--line);border-radius:12px;background:var(--surface);margin:25px 0}
.reader-discussion-feature h2,.reader-thread-focus h2{font-family:var(--serif);font-size:1.6rem;font-weight:500;margin:8px 0}
.reader-discussion-feature p,.reader-thread-focus p{max-width:48ch}
.thread-assessments{margin:22px 0;border-top:1px solid var(--line);padding-top:15px}
.thread-assessments summary{cursor:pointer;color:var(--brand);font-size:.85rem;font-weight:600;padding:9px 0}
.thread-assessments[open] .community-evaluations{margin-top:15px;max-width:780px}
.thread-assessments summary:focus-visible{outline:2px solid var(--brand);outline-offset:4px}
.restricted-forum-post{background:color-mix(in srgb,var(--soft) 55%,var(--surface));box-shadow:none}
.restricted-post-inner{display:flex;align-items:flex-start;gap:21px;max-width:70ch}
.restricted-post-inner h3{font-family:var(--serif);font-size:1.4rem;font-weight:500;margin:6px 0 9px}
.restricted-post-inner p{font-size:.94rem;line-height:1.7;color:var(--muted);margin:0 0 15px}
.restricted-lock{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:50%;font-size:1.2rem;color:var(--brand)}
.restricted-actions{display:flex;flex-wrap:wrap;gap:8px 18px}
.evaluation-field{min-width:0;border:1px solid var(--line);border-radius:10px;padding:17px 19px;margin:0 0 14px;display:grid;gap:10px;background:var(--surface)}
.evaluation-field legend{font-weight:650;font-size:.92rem;padding:0 6px}
.evaluation-field select,.evaluation-field input{width:100%;font-size:.925rem}
.evaluation-readout{display:grid;gap:8px}
.evaluation-readout>div{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,1fr);gap:8px 16px;border-bottom:1px solid var(--line);padding:13px 4px;font-size:.88rem}
.evaluation-readout>div strong{font-weight:600}
.evaluation-readout>div>span{color:var(--brand)}
.evaluation-readout p{grid-column:1/-1;margin:0;font-size:.85rem;color:var(--muted)}
.avatar-settings{display:flex;align-items:center;flex-wrap:wrap;gap:22px;padding:10px 0 25px}
.avatar-settings .avatar.huge{width:120px;height:120px;font-size:2.3rem}
.avatar-settings .btn{margin-right:9px;margin-bottom:7px}
.avatar-crop-ui{max-width:450px}
.avatar-crop-ui>input[type=file]{margin:10px 0 20px;width:100%}
.avatar-crop-frame{position:relative;border:2px dashed var(--line);border-radius:50%;height:232px;width:232px;margin:12px auto 22px;background:var(--soft);overflow:hidden}
.avatar-crop-frame img{position:absolute;max-width:none;object-fit:fill;transform-origin:top left;user-select:none;pointer-events:none}
.avatar-sliders{display:grid;grid-template-columns:1fr;gap:4px}
.avatar-sliders label{margin-top:10px}
.avatar-sliders input{width:100%;accent-color:var(--brand)}
.thread-posts{gap:22px}
.forum-post{box-shadow:0 2px 10px #24172c05}
.reader-card .card-foot{display:flex;align-items:center;gap:15px;flex-wrap:wrap}
.profile-summary .row{flex-wrap:wrap}
@media(max-width:1020px){.thread-row{grid-template-columns:46px minmax(0,1fr) auto}}
@media(max-width:760px){
 .post-author .avatar,.original-post .post-author .avatar{width:49px;height:49px;font-size:.9rem}
 .thread-row .avatar{width:42px;height:42px}
 .thread-row{grid-template-columns:42px minmax(0,1fr);gap:11px;padding:20px 0}
 .thread-stats{grid-column:2;justify-content:flex-start;gap:11px;margin-top:0}
 .thread-stats .icon-btn{margin-left:auto}
 .recent-avatar-cluster a{width:25px;height:25px}
 .forum-post{padding:22px 18px}
 .restricted-post-inner{gap:12px}
 .restricted-lock{width:32px;height:32px;flex-shrink:0}
 .reader-discussion-feature,.reader-thread-focus{padding:20px 18px}
 .community-evaluations{padding:17px}
 .profile-summary .avatar.big{width:102px;height:102px}
 .avatar-settings .avatar.huge{width:100px;height:100px}
}
@media(prefers-reduced-motion:reduce){.avatar-crop-frame img{transition:none}}

.assessment-due-label{font-size:.81rem;color:var(--muted);margin-top:2px}
.assessment-history{margin-top:22px;padding:15px 18px;background:var(--soft);border-radius:10px;border:1px solid var(--line)}
.assessment-history summary{cursor:pointer;color:var(--brand);font-weight:600}
.assessment-history ol{margin:15px 0 0;padding-left:23px}
.assessment-history li{padding:9px 0;font-size:.86rem;line-height:1.55;border-top:1px solid var(--line)}
.assessment-history li p{margin:5px 0 0;color:var(--muted)}

.legacy-experience summary{cursor:pointer;color:var(--brand);font-size:.86rem;font-weight:600;padding:4px 0}.legacy-experience[open] summary{margin-bottom:13px}

/* A member-focused update list, intentionally restrained and permission-safe. */
.community-pulse{margin-top:36px;margin-bottom:35px}
.pulse-list{border-top:1px solid var(--line)}
.pulse-item{display:flex;align-items:flex-start;gap:15px;padding:17px 2px;border-bottom:1px solid var(--line)}
.pulse-item>.avatar,.pulse-item>a .avatar{width:45px;height:45px}
.pulse-content{min-width:0;flex:1}
.pulse-meta{font-size:.81rem;color:var(--muted);margin:0 0 5px;line-height:1.5}
.pulse-meta a{color:var(--ink);font-weight:600}
.pulse-title{font-size:.99rem;font-weight:550;line-height:1.52;color:var(--ink);overflow-wrap:anywhere}
.pulse-title:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
