.thread-shell{display:block;padding-top:22px}
.thread-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:9px;min-height:30px;margin-bottom:12px;color:var(--muted);font-size:12px}
.thread-breadcrumb>a{display:inline-flex;align-items:center;gap:6px}.thread-breadcrumb svg{width:14px;height:14px}.thread-breadcrumb>span{font-size:11px}.thread-back{margin-left:auto}
.thread-title{padding:14px 26px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line)}.thread-title h1{font-size:24px;line-height:1.4;margin:0;overflow-wrap:anywhere;min-width:0}.thread-title-flags{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px}.thread-title-flags:empty{display:none}
.thread-metrics{display:flex;align-items:center;gap:18px;flex:none;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.thread-metrics>span,.thread-metrics>a{display:inline-flex;align-items:center;gap:6px}.thread-metrics svg{width:15px;height:15px}
.post-layout,.thread-page .reply{display:grid;grid-template-columns:196px minmax(0,1fr)}
.post-author{padding:18px;background:var(--field);border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0;gap:9px}
.post-avatar{display:flex;flex:none}.post-avatar .avatar{width:92px;height:92px;border-radius:6px;border:1px solid var(--line);font-size:34px;background:var(--surface)}
.post-identity{display:grid;justify-items:center;gap:9px;min-width:0;max-width:100%}.post-username{font-size:15px;font-weight:600;overflow-wrap:anywhere;max-width:100%;line-height:1.6}.post-role{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px}.post-uid{font-size:10px;color:var(--muted)}
.post-honors{display:flex;flex-direction:column;align-items:center;gap:5px;max-width:100%}.post-honors .honors{flex-wrap:wrap;justify-content:center}.post-honors .honor-level{font-size:11px}.post-level-name{font-size:10px;color:var(--muted);overflow-wrap:anywhere}
.post-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;margin:3px 0 0;padding:14px 0 0;border-top:1px solid var(--line);gap:5px}.post-stats>div{display:flex;flex-direction:column-reverse;gap:3px;min-width:0}.post-stats dt{font-size:10px;color:var(--muted)}.post-stats dd{margin:0;font-size:17px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.5}
.post-joined{margin:0;font-size:10px;color:var(--muted);overflow-wrap:anywhere}.post-space-link{display:inline-flex;align-items:center;justify-content:center;gap:5px;color:var(--muted);font-size:10px}.post-space-link svg{width:12px;height:12px}
.post-main{padding:0 26px;min-width:0;display:flex;flex-direction:column}.post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:10px 0;min-height:44px;border-bottom:1px dashed var(--line);font-size:11px;color:var(--muted)}.post-meta time{font-size:11px}.post-meta .floor{margin-left:auto}.post-meta .floor-label{color:var(--accent);font-size:11px}
.post-meta .thread-reading-tools{margin:0 0 0 auto;gap:8px}.post-meta .thread-reading-tools .button{padding:5px 8px;min-height:30px}.post-meta .floor-jump label,.post-meta .floor-jump input{width:60px}.post-meta .floor-jump input{height:30px}.post-meta .floor-jump .icon-button{min-width:30px;min-height:30px;padding:5px}
.thread-page .thread-tags{padding:10px 0 0}.thread-page .topic-body{padding:14px 0;min-height:0;flex:1}.thread-page .topic-actions{padding:10px 0;flex-wrap:wrap}.thread-page .moderator-tools{margin:0 0 14px;padding-top:12px}.thread-page .moderator-tools .inline-form{max-width:620px}
.thread-page .prose{line-height:1.8}.thread-page .prose p{margin-bottom:12px}.thread-page .prose p:last-child{margin-bottom:0}.thread-page .prose>:first-child{margin-top:0}.thread-page .post-signature{margin-top:12px;padding-top:8px}
.thread-page .reply-panel{margin-top:14px}.thread-page .reply-panel>.section-title{padding:12px 24px}.thread-page .reply{padding:0}.thread-page .reply:target>.post-author,.thread-page .reply:target>.post-main{background:var(--accent-soft)}
.post-author-compact{padding-top:14px;padding-bottom:14px;gap:8px}.post-author-compact .post-avatar .avatar{width:64px;height:64px;font-size:26px}.post-author-compact .post-username{font-size:13px}.post-author-compact .post-identity{gap:5px}.post-author-compact .post-level-name,.post-author-compact .post-joined,.post-author-compact .post-space-link{display:none}.post-author-compact .post-stats{padding-top:8px}.post-author-compact .post-stats dd{font-size:15px}
.thread-page .reply .post-main>.prose{padding:12px 0;flex:1;min-height:0}.thread-page .reply-tools{padding:6px 0 8px;margin:0;border-top:1px solid var(--line);align-items:center;flex-wrap:wrap;min-height:40px}.thread-page .reply-tools:empty{display:none}.thread-page .reply-login{margin-top:14px;padding-top:14px;padding-bottom:14px}

/* Align the reply composer with the discussion content on desktop; keep it full width on phones. */
.thread-page #reply-form{margin:14px 0 0;scroll-margin-top:20px}
.thread-page #reply-form.reply-composer{padding:0;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.reply-composer-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 26px;border-bottom:1px solid var(--line)}
.reply-composer-heading h3{display:flex;align-items:center;gap:8px;margin:0;font-size:15px}
.reply-composer-heading h3>svg{width:17px;height:17px;color:var(--muted)}
.reply-composer-account{display:flex;align-items:center;gap:8px;min-width:0;font-size:12px}
.reply-composer-account>.avatar{width:28px;height:28px;border-radius:5px}
.reply-composer-account .member-name>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:180px}
.reply-compose-form{padding:14px 26px;gap:12px}
.reply-composer .compose-toolbar{background:var(--field);padding:6px 8px}
.reply-composer .compose-body{min-height:160px;height:160px;padding:14px;font-family:inherit}
.reply-composer .compose-preview{min-height:160px;padding:14px}
.reply-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:14px}
.reply-compose-footer .hint{margin:0;font-size:11px}
.reply-compose-footer .button{flex:none;min-width:100px}
.reply-compose-unavailable{padding:20px 26px;margin:0}

@media(max-width:1050px){.post-layout,.thread-page .reply{grid-template-columns:168px minmax(0,1fr)}.post-author{padding-left:12px;padding-right:12px}.post-main{padding-left:22px;padding-right:22px}.thread-title{padding:14px 22px}.thread-title h1{font-size:22px}}
@media(max-width:760px){.thread-shell{padding-top:16px}.thread-breadcrumb{gap:7px;font-size:11px;margin-bottom:10px}.thread-breadcrumb>span{display:none}.thread-back{font-size:10px}.thread-title{display:block;padding:12px 16px}.thread-title h1{font-size:20px;line-height:1.4}.thread-metrics{gap:16px;font-size:10px;margin-top:8px}.thread-metrics svg{width:13px;height:13px}.post-layout,.thread-page .reply{grid-template-columns:minmax(0,1fr)}.post-author,.post-author-compact{display:flex;flex-direction:row;align-items:center;text-align:left;gap:12px;padding:12px 16px;border-right:0;border-bottom:1px solid var(--line)}.post-author .post-avatar .avatar{width:45px;height:45px;font-size:20px;border-radius:5px}.post-identity,.post-author-compact .post-identity{justify-items:start;gap:4px;flex:1;min-width:0}.post-username,.post-author-compact .post-username{font-size:12px}.post-role{justify-content:flex-start;gap:6px}.post-honors{flex-direction:row;justify-content:flex-start;gap:6px;flex-wrap:wrap}.post-honors .honors{justify-content:flex-start}.post-honors .honor-level{font-size:10px}.post-level-name{font-size:9px}.post-author .post-stats,.post-author .post-joined,.post-author .post-space-link{display:none}.post-main{padding:0 16px}.post-meta{min-height:42px;padding:8px 0;font-size:10px;gap:8px}.post-meta time{font-size:10px}.thread-page .topic-body{padding:12px 0;min-height:0}.thread-page .topic-actions{padding:10px 0}.thread-page .reply-panel>.section-title{padding:12px 16px}.thread-page .reply .post-main>.prose{padding:12px 0;min-height:0}.thread-page .reply-tools{padding:6px 0 8px}.thread-page .reply-tools .icon-button{min-width:36px;min-height:36px}.thread-page .reply-panel>.pagination{padding:12px 16px}.post-meta .thread-reading-tools .button,.post-meta .floor-jump input,.post-meta .floor-jump .icon-button{min-height:36px}.post-meta .floor-jump .icon-button{min-width:36px}}

@media(max-width:760px){
  .reply-composer-heading{padding:12px 16px;gap:10px;flex-wrap:wrap}
  .reply-composer-heading h3{font-size:14px}
  .reply-composer-account{margin-left:auto;font-size:11px;gap:6px}
  .reply-composer-account>.avatar{width:24px;height:24px}
  .reply-composer-account .member-name>span{max-width:100px}
  .reply-compose-form{padding:12px 16px;gap:12px}
  .reply-composer .compose-toolbar{padding:4px;gap:1px}
  .reply-composer .compose-body{height:150px;min-height:150px;padding:12px}
  .reply-composer .compose-preview{min-height:150px;padding:12px}
  .reply-compose-footer{align-items:flex-start;flex-wrap:wrap;gap:12px}
  .reply-compose-footer .hint{flex:1 1 140px;font-size:10px;line-height:1.8}
  .reply-compose-footer .button{margin-left:auto;min-width:90px}
  .reply-compose-unavailable{padding:16px}
}

.post-author .post-honors{gap:6px}.post-author .post-honors .honors{gap:6px;min-height:28px;max-width:100%;row-gap:4px}.post-author .post-honors .honor-level{font-size:13px;line-height:26px;gap:5px}.post-author .post-honors .honor-level svg{width:17px;height:17px}.post-author .post-honors .medal-chip{width:26px;height:28px}.post-author .post-honors .medal-chip svg{width:22px;height:22px}.post-author .post-level-name{font-size:11px;line-height:1.5}
@media(max-width:760px){.post-author .post-honors .honors{gap:5px;min-height:24px}.post-author .post-honors .honor-level{font-size:12px;line-height:24px;gap:4px}.post-author .post-honors .honor-level svg{width:15px;height:15px}.post-author .post-honors .medal-chip{width:23px;height:24px}.post-author .post-honors .medal-chip svg{width:19px;height:19px}.post-author .post-level-name{font-size:10px}}
.post-meta .edit-stamp{display:inline-flex;align-items:center;gap:3px;font-size:12px;color:var(--muted);white-space:nowrap}
.post-meta .edit-stamp svg{width:13px;height:13px}
.post-meta a.edit-stamp:hover{color:var(--accent)}

/* Keep discussion text clear without making titles and replies look heavy. */
.thread-title h1{font-weight:600;color:var(--text)}
.thread-page .prose{font-weight:400;color:var(--text)}
.thread-page .prose p{font-weight:400}
.thread-page .reply .post-main>.prose{font-weight:400;color:var(--text)}
.thread-page .reply .post-main>.prose p{font-weight:400}
@media(max-width:760px){
  .thread-title h1{font-weight:600}
  .thread-page .prose,.thread-page .prose p,.thread-page .reply .post-main>.prose,.thread-page .reply .post-main>.prose p{font-weight:400}
}
