.moderator-bar{display:grid!important;grid-template-columns:minmax(150px,1fr) repeat(3,max-content) minmax(230px,300px)!important;align-items:center!important;gap:8px!important;min-height:56px!important;height:auto!important;padding:10px 14px!important}.moderator-bar>b{margin:0!important}.moderator-bar form{display:block!important;width:auto!important;min-width:0!important}.moderator-bar form .button{width:auto!important;min-height:36px!important;white-space:nowrap!important}.post-actions{z-index:auto}.report-action,.report-action[open],.report-action[open]>summary{z-index:auto}@media(max-width:760px){.moderator-bar{grid-template-columns:1fr 1fr!important}.moderator-bar>b{grid-column:1/-1}.moderator-bar form .button{width:100%!important}.moderator-bar form:last-child{grid-column:1/-1}}
.moderator-bar .move-thread-form{display:flex!important;align-items:center;gap:6px}.move-thread-form select{min-width:0;min-height:36px;flex:1}.move-thread-form .button{flex:none}

/* Thread author identity, avatar and administrator-managed ranks */
.post-author-card .avatar{overflow:hidden;flex:none}
.post-avatar-image{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.post-author-card-body{display:flex;min-width:0;flex-direction:column;align-items:center}
.post-user-link{max-width:100%;font-weight:800;overflow-wrap:anywhere}
.post-rank-stack{display:flex;width:100%;max-width:148px;flex-direction:column;align-items:center;gap:5px;margin:7px 0 5px}
.post-rank-visual{display:flex;width:100%;min-height:24px;align-items:center;justify-content:center}
.post-rank-visual img{display:block;max-width:100%;width:auto;height:auto;max-height:38px;object-fit:contain}
.post-rank-badge{--rank-color:#64748b;display:inline-flex;max-width:100%;min-height:24px;align-items:center;justify-content:center;gap:5px;padding:4px 8px;border:1px solid color-mix(in srgb,var(--rank-color),transparent 72%);border-radius:6px;background:color-mix(in srgb,var(--rank-color),transparent 90%);color:var(--rank-color);font-size:10px;font-weight:800;line-height:1.15;text-align:center}
.post-rank-badge i{flex:none}
.post-author-stats{display:flex;flex-direction:column;align-items:center}

/* Professional mobile thread layout */
@media(max-width:760px){
  .thread-head{display:grid!important;grid-template-columns:minmax(0,1fr);align-items:stretch!important;gap:14px!important;margin:10px 0 14px!important}
  .thread-head>div:first-child{min-width:0}
  .thread-head h1{font-size:clamp(22px,6vw,28px)!important;line-height:1.24!important;overflow-wrap:anywhere}
  .thread-head p{margin-top:4px!important}
  .thread-tools{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;width:100%!important}
  .thread-tools>form,.thread-tools>.button{width:100%!important;min-width:0!important;flex:none!important}
  .thread-tools>form>.button{width:100%!important}
  .thread-tools>.button.accent{grid-column:1/-1;order:-1}
  .thread-tools>form:first-child:nth-last-child(2){grid-column:1/-1}
  .thread-tools .button{min-height:44px!important;padding:10px 12px!important;white-space:nowrap!important}

  .moderator-bar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;gap:8px!important;padding:14px!important;margin:-1px 0 14px!important;border-radius:12px!important}
  .moderator-bar>b{grid-column:1/-1!important;display:flex;align-items:center;gap:7px;width:100%!important;padding-bottom:3px}
  .moderator-bar>form{width:100%!important;min-width:0!important}
  .moderator-bar>form:not(.move-thread-form):nth-of-type(3){grid-column:1/-1}
  .moderator-bar>form:not(.move-thread-form) .button{width:100%!important;min-height:42px!important;padding:9px 7px!important;font-size:12px!important;white-space:nowrap!important}
  .moderator-bar .move-thread-form{grid-column:1/-1!important;display:grid!important;grid-template-columns:minmax(0,1fr) 92px!important;align-items:center!important;gap:8px!important;width:100%!important;padding-top:3px}
  .move-thread-form select{display:block!important;width:100%!important;min-width:0!important;height:44px!important;margin:0!important;padding:8px 34px 8px 11px!important;background-color:var(--card)!important}
  .move-thread-form .button{width:92px!important;min-width:92px!important;min-height:44px!important;padding:9px 10px!important}

  .post{border-radius:12px!important}
  .post aside{display:grid!important;grid-template-columns:44px minmax(0,1fr);align-items:center!important;gap:10px!important;padding:12px 14px!important;min-width:0;text-align:left!important}
  .post aside .avatar{width:44px!important;height:44px!important;flex:none}
  .post-author-card-body{align-items:flex-start!important}
  .post-user-link{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left!important}
  .post-rank-stack{width:auto;max-width:100%;min-width:0;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:5px;margin:4px 0 0}
  .post-rank-visual{width:auto;max-width:126px;min-width:0;justify-content:flex-start}
  .post-rank-visual img{max-height:27px}
  .post-rank-badge{min-width:0;min-height:22px;padding:3px 7px;font-size:9px;overflow-wrap:anywhere}
  .post-author-stats{display:none}
  .post-body{min-width:0;padding:14px 16px 16px!important}
  .post-content{padding:16px 0!important;line-height:1.65;overflow-wrap:anywhere}
  .post-content img,.post-content video,.post-content iframe,.post-content table,.post-content pre{max-width:100%}
  .post-content pre{overflow-x:auto}
  .post-content table{display:block;overflow-x:auto}
  .post-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;padding-top:12px!important}
  .post-actions:empty{display:none!important}
  .post-actions>form,.post-actions>button,.post-actions>.post-edit-link,.post-actions>details{width:100%!important;min-width:0!important;margin:0!important}
  .post-actions>form>button,.post-actions>button,.post-actions>.post-edit-link,.post-actions>details>summary{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px;width:100%!important;min-height:42px!important;padding:8px 7px!important;font-size:12px!important;line-height:1.15!important;white-space:nowrap!important}
  .post-actions>:last-child:nth-child(odd){grid-column:1/-1}

  .composer{padding:16px!important;margin-bottom:18px!important;border-radius:12px!important}
  .composer h3{margin:0 0 14px!important;font-size:18px!important}
  .reply-form .advanced-toolbar{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px!important;padding:6px!important}
  .reply-form .advanced-toolbar button{width:100%!important;height:38px!important}
  .reply-form textarea{min-height:150px!important;padding:14px!important;line-height:1.55!important;resize:vertical}
  .compose-foot{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center!important;gap:9px!important;margin-top:11px!important}
  .compose-foot .button{width:auto!important;min-width:112px;min-height:44px!important}
}

@media(max-width:360px){
  .thread-tools,.moderator-bar,.post-actions{grid-template-columns:1fr!important}
  .thread-tools>* , .moderator-bar>* , .post-actions>*{grid-column:1!important}
  .moderator-bar .move-thread-form{grid-template-columns:minmax(0,1fr) 84px!important}
  .move-thread-form .button{width:84px!important;min-width:84px!important}
  .reply-form .advanced-toolbar{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .compose-foot{grid-template-columns:1fr!important}
  .compose-foot .button{width:100%!important}
}
