/* CORVASEC FIX66.43.2 — Classic Forum Topic Restore + Refinement
   Keeps the traditional left-side author/profile rail while removing the oversized fixed-height posts.
*/
body.hybrid-forum-shell .forum-shell .forum-thread-skin{
  --cvf-bg:#f4f8fb;
  --cvf-panel:#ffffff;
  --cvf-panel-soft:#f5f9fc;
  --cvf-author:#eef5fa;
  --cvf-line:#cbdde9;
  --cvf-line-soft:#dce8f0;
  --cvf-text:#17304a;
  --cvf-muted:#6f8498;
  --cvf-link:#087ec9;
  --cvf-accent:#1595e6;
  --cvf-accent-deep:#0878c4;
  color:var(--cvf-text)!important;
}

/* Restore the classic left author rail and let post height follow content. */
body.hybrid-forum-shell .forum-shell .forum-thread-post{
  display:grid!important;
  grid-template-columns:176px minmax(0,1fr)!important;
  align-items:stretch!important;
  min-height:0!important;
  margin:0!important;
  border:1px solid var(--cvf-line)!important;
  border-top:0!important;
  border-radius:0!important;
  background:var(--cvf-panel)!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-author{
  min-height:0!important;
  padding:14px 13px 12px!important;
  border-right:1px solid var(--cvf-line)!important;
  background:var(--cvf-author)!important;
  color:var(--cvf-muted)!important;
  text-align:center!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-author .forum-author-name{
  display:block!important;
  margin:0!important;
  color:var(--cvf-text)!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1.25!important;
  text-decoration:none!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-author .forum-author-name:hover{color:var(--cvf-accent)!important}
body.hybrid-forum-shell .forum-shell .forum-thread-role{
  display:block!important;
  margin-top:3px!important;
  color:var(--cvf-accent-deep)!important;
  font-size:8px!important;
  font-weight:700!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-avatar{
  display:grid!important;
  place-items:center!important;
  width:86px!important;
  height:86px!important;
  margin:11px auto 10px!important;
  border:1px solid #8bbad8!important;
  border-radius:2px!important;
  background:#dcebf5!important;
  color:#fff!important;
  font-size:28px!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-avatar img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-avatar>span{
  display:grid;
  place-items:center;
  width:100%;height:100%;
  background:linear-gradient(145deg,#1f9be5,#0b6fae);
  color:#fff!important;
  font-size:28px!important;
  font-weight:800!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-author-stats{
  margin-top:2px!important;
  border:1px solid var(--cvf-line)!important;
  border-radius:2px!important;
  background:var(--cvf-panel)!important;
  text-align:left!important;
  overflow:hidden!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-author-stats span{
  display:grid!important;
  grid-template-columns:auto 1fr!important;
  gap:5px!important;
  min-height:21px!important;
  align-items:center!important;
  padding:0 8px!important;
  border-bottom:1px solid var(--cvf-line-soft)!important;
  background:var(--cvf-panel)!important;
  color:var(--cvf-muted)!important;
  font-size:8px!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-author-stats span:last-child{border-bottom:0!important}
body.hybrid-forum-shell .forum-shell .forum-thread-author-stats b{color:var(--cvf-text)!important;font-weight:700!important}
body.hybrid-forum-shell .forum-shell .forum-thread-author-icons{margin-top:7px!important;min-height:13px!important}

/* Content is compact, but still leaves enough room for a normal one-line reply. */
body.hybrid-forum-shell .forum-shell .forum-thread-content{
  display:flex!important;
  min-width:0!important;
  min-height:0!important;
  flex-direction:column!important;
  background:var(--cvf-panel)!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-post-title{
  min-height:29px!important;
  padding:0 15px!important;
  border-bottom:1px solid var(--cvf-line-soft)!important;
  background:var(--cvf-panel-soft)!important;
  color:var(--cvf-text)!important;
  font-size:10px!important;
  font-weight:700!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-post-inner{
  display:block!important;
  flex:0 0 auto!important;
  min-height:0!important;
  background:var(--cvf-panel)!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-post .forum-post-body{
  display:block!important;
  flex:0 0 auto!important;
  min-height:72px!important;
  padding:18px 16px 16px!important;
  color:var(--cvf-text)!important;
  font-size:10px!important;
  line-height:1.65!important;
  overflow-wrap:anywhere!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-post .forum-post-body:empty{min-height:42px!important}
body.hybrid-forum-shell .forum-shell .forum-thread-datebar{
  height:24px!important;
  padding:0 12px!important;
  border-color:#123c58!important;
  background:linear-gradient(#123b55,#0c2c40)!important;
  color:#b9d2e3!important;
  font-size:7.5px!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-datebar a{color:#7dcaff!important}

/* Keep classic actions, but make them legible and less cramped. */
body.hybrid-forum-shell .forum-shell .forum-thread-post-actions{
  min-height:33px!important;
  padding:5px 10px!important;
  border-top:1px solid var(--cvf-line-soft)!important;
  background:var(--cvf-panel-soft)!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-post-buttons{gap:5px!important}
body.hybrid-forum-shell .forum-shell .forum-thread-action{
  min-width:0!important;
  min-height:23px!important;
  padding:0 9px!important;
  border:1px solid var(--cvf-line)!important;
  border-radius:2px!important;
  background:var(--cvf-panel)!important;
  color:var(--cvf-link)!important;
  text-transform:uppercase!important;
  font-size:7.5px!important;
  font-weight:800!important;
  box-shadow:none!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-action:hover{
  border-color:var(--cvf-accent)!important;
  background:#eef8fe!important;
  color:var(--cvf-accent-deep)!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-action.is-blue{
  border-color:var(--cvf-accent-deep)!important;
  background:linear-gradient(#179dea,#0879c4)!important;
  color:#fff!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-reaction-summary{color:var(--cvf-muted)!important;font-size:8px!important}

/* Cleaner quotes, attachments and accepted solutions while preserving classic placement. */
body.hybrid-forum-shell .forum-shell .forum-thread-quote{
  margin:16px 16px 0!important;
  padding:10px 12px!important;
  border:1px solid var(--cvf-line-soft)!important;
  border-left:3px solid var(--cvf-accent)!important;
  background:var(--cvf-panel-soft)!important;
  color:var(--cvf-muted)!important;
  font-size:9px!important;
  font-style:normal!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-quote strong{color:var(--cvf-text)!important}
body.hybrid-forum-shell .forum-shell .forum-thread-post .forum-attachments{
  margin:0 16px 12px!important;padding:8px 10px!important;
  border:1px solid var(--cvf-line-soft)!important;background:var(--cvf-panel-soft)!important;
}
body.hybrid-forum-shell .forum-shell .forum-accepted-solution-banner{
  margin:12px 16px 0!important;padding:7px 10px!important;border-radius:2px!important;
}

/* Related knowledge and quick reply no longer dominate the page. */
body.hybrid-forum-shell .forum-shell .forum-thread-related{margin-top:16px!important;margin-bottom:16px!important;border-color:var(--cvf-line)!important;background:var(--cvf-panel)!important}
body.hybrid-forum-shell .forum-shell .forum-thread-related>header{height:29px!important;line-height:29px!important;background:linear-gradient(#123b55,#0c2c40)!important;color:#d9edf9!important}
body.hybrid-forum-shell .forum-shell .forum-thread-related a{padding:8px 10px!important;border-color:var(--cvf-line-soft)!important}
body.hybrid-forum-shell .forum-shell .forum-thread-related strong{color:var(--cvf-text)!important}
body.hybrid-forum-shell .forum-shell .forum-thread-reply{margin-top:20px!important;border-color:var(--cvf-line)!important;background:var(--cvf-panel)!important}
body.hybrid-forum-shell .forum-shell .forum-thread-reply-heading{height:31px!important;line-height:31px!important;background:linear-gradient(#123b55,#0c2c40)!important;color:#d9edf9!important}
body.hybrid-forum-shell .forum-shell .forum-thread-reply-subheading{height:20px!important;line-height:20px!important;background:#0a2637!important;color:#a9c5d8!important}
body.hybrid-forum-shell .forum-shell .forum-thread-reply form{padding:11px!important;background:var(--cvf-panel)!important}
body.hybrid-forum-shell .forum-shell .forum-thread-reply textarea{
  height:118px!important;min-height:90px!important;
  padding:10px!important;border-color:var(--cvf-line)!important;
  background:var(--cvf-panel)!important;color:var(--cvf-text)!important;font-size:10px!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-editor-toolbar{height:30px!important;border-color:var(--cvf-line)!important;background:var(--cvf-panel-soft)!important;color:var(--cvf-muted)!important}

/* Dark theme: keep the classic structure, not white cards pasted onto a dark site. */
html[data-theme="dark"] body.hybrid-forum-shell .forum-shell .forum-thread-skin,
body.hybrid-forum-shell.theme-dark .forum-shell .forum-thread-skin,
body.hybrid-forum-shell .forum-shell .theme-dark .forum-thread-skin{
  --cvf-bg:#061722;
  --cvf-panel:#071c29;
  --cvf-panel-soft:#0a2433;
  --cvf-author:#081f2d;
  --cvf-line:#244456;
  --cvf-line-soft:#173647;
  --cvf-text:#d8e7f1;
  --cvf-muted:#91a9ba;
  --cvf-link:#55c0ff;
  --cvf-accent:#35b9ff;
  --cvf-accent-deep:#139ee8;
}
html[data-theme="dark"] body.hybrid-forum-shell .forum-shell .forum-thread-author-stats span,
html[data-theme="dark"] body.hybrid-forum-shell .forum-shell .forum-thread-author-stats,
html[data-theme="dark"] body.hybrid-forum-shell .forum-shell .forum-thread-post-actions,
html[data-theme="dark"] body.hybrid-forum-shell .forum-shell .forum-thread-post-title,
html[data-theme="dark"] body.hybrid-forum-shell .forum-shell .forum-thread-reply textarea,
html[data-theme="dark"] body.hybrid-forum-shell .forum-shell .forum-thread-editor-toolbar{
  background:var(--cvf-panel-soft)!important;
  color:var(--cvf-text)!important;
  border-color:var(--cvf-line-soft)!important;
}
html[data-theme="dark"] body.hybrid-forum-shell .forum-shell .forum-thread-action{
  background:#0b2737!important;color:var(--cvf-link)!important;border-color:#31556a!important;
}
html[data-theme="dark"] body.hybrid-forum-shell .forum-shell .forum-thread-action:hover{background:#10344a!important}
html[data-theme="dark"] body.hybrid-forum-shell .forum-shell .forum-thread-avatar{background:#0e3146!important;border-color:#347196!important}

/* Mobile keeps the author identity prominent but moves it above content for readability. */
@media(max-width:700px){
  body.hybrid-forum-shell .forum-shell .forum-thread-post{grid-template-columns:1fr!important}
  body.hybrid-forum-shell .forum-shell .forum-thread-author{
    display:grid!important;grid-template-columns:58px minmax(0,1fr);grid-template-rows:auto auto auto;gap:2px 10px!important;
    padding:10px!important;border-right:0!important;border-bottom:1px solid var(--cvf-line)!important;text-align:left!important;
  }
  body.hybrid-forum-shell .forum-shell .forum-thread-avatar{grid-column:1;grid-row:1/4;width:58px!important;height:58px!important;margin:0!important}
  body.hybrid-forum-shell .forum-shell .forum-thread-author .forum-author-name{grid-column:2;grid-row:1}
  body.hybrid-forum-shell .forum-shell .forum-thread-role{grid-column:2;grid-row:2}
  body.hybrid-forum-shell .forum-shell .forum-thread-author-icons{grid-column:2;grid-row:3;justify-content:flex-start!important;margin:2px 0 0!important}
  body.hybrid-forum-shell .forum-shell .forum-thread-author-stats{grid-column:1/-1;display:grid!important;grid-template-columns:repeat(4,1fr)!important;margin-top:7px!important}
  body.hybrid-forum-shell .forum-shell .forum-thread-author-stats span{display:flex!important;flex-direction:column!important;gap:1px!important;padding:5px!important;border-bottom:0!important;border-right:1px solid var(--cvf-line-soft)!important}
  body.hybrid-forum-shell .forum-shell .forum-thread-author-stats span:last-child{border-right:0!important}
  body.hybrid-forum-shell .forum-shell .forum-thread-post .forum-post-body{min-height:54px!important;padding:14px 12px!important}
  body.hybrid-forum-shell .forum-shell .forum-thread-post-actions{align-items:flex-start!important;flex-direction:column!important}
  body.hybrid-forum-shell .forum-shell .forum-thread-post-buttons{width:100%!important;justify-content:flex-start!important}
  body.hybrid-forum-shell .forum-shell .forum-thread-reaction-summary{width:100%!important}
  body.hybrid-forum-shell .forum-shell .forum-thread-reply textarea{height:105px!important}
}

/* CORVASEC FIX66.43.3 — Classic Forum Polish */
body.hybrid-forum-shell .forum-shell .forum-thread-post{
  grid-template-columns:154px minmax(0,1fr)!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-author{
  padding:10px 10px 9px!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-avatar{
  width:74px!important;
  height:74px!important;
  margin:8px auto 8px!important;
  border-radius:3px!important;
  background:linear-gradient(145deg,#e7f4fb,#cde8f7)!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-avatar img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-avatar [data-avatar-fallback]{
  display:grid!important;
  width:100%!important;
  height:100%!important;
  place-items:center!important;
  background:linear-gradient(145deg,#168fd8,#075f98)!important;
  color:#fff!important;
  font-size:22px!important;
  font-weight:900!important;
  letter-spacing:.5px!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-avatar [hidden]{display:none!important}
body.hybrid-forum-shell .forum-shell .forum-thread-avatar.is-fallback{border-color:#75b9df!important}
body.hybrid-forum-shell .forum-shell .forum-thread-role{font-size:7.5px!important}
body.hybrid-forum-shell .forum-shell .forum-thread-author-stats span{
  min-height:18px!important;
  padding:0 6px!important;
  font-size:7.5px!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-author-icons{margin-top:5px!important;min-height:9px!important}
body.hybrid-forum-shell .forum-shell .forum-thread-post .forum-post-body{
  min-height:48px!important;
  padding:14px 14px 12px!important;
  font-size:10px!important;
  line-height:1.55!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-post-title{
  min-height:27px!important;
  padding:0 14px!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-post-actions{
  min-height:31px!important;
  padding:4px 8px!important;
  gap:8px!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-post-buttons{
  gap:4px!important;
  margin-left:auto!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-action{
  min-height:24px!important;
  padding:0 10px!important;
  font-size:7.75px!important;
  letter-spacing:.15px!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-reaction-summary{
  font-size:7.5px!important;
  white-space:nowrap!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-quote{
  margin:10px 14px 0!important;
  padding:9px 11px!important;
  border-left:3px solid var(--cvf-accent)!important;
  background:color-mix(in srgb,var(--cvf-panel-soft) 92%,var(--cvf-accent) 8%)!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-quote strong{
  display:block!important;
  margin-bottom:4px!important;
  color:var(--cvf-link)!important;
  font-size:8.5px!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-quote p{
  margin:0!important;
  color:var(--cvf-text)!important;
  line-height:1.5!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-related{
  margin-top:12px!important;
  margin-bottom:12px!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-related a{
  min-height:39px!important;
  padding:7px 10px!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-reply{margin-top:14px!important}
body.hybrid-forum-shell .forum-shell .forum-thread-reply form{padding:9px!important}
body.hybrid-forum-shell .forum-shell .forum-thread-reply textarea{
  height:96px!important;
  min-height:82px!important;
  max-height:220px!important;
  resize:vertical!important;
}
body.hybrid-forum-shell .forum-shell .forum-thread-editor-toolbar{height:27px!important}
body.hybrid-forum-shell .forum-shell .forum-thread-attachment,
body.hybrid-forum-shell .forum-shell .forum-thread-reply-footer{font-size:8px!important}

html[data-theme="dark"] body.hybrid-forum-shell .forum-shell .forum-thread-avatar{
  background:linear-gradient(145deg,#10364b,#0a2535)!important;
  border-color:#347196!important;
}
html[data-theme="dark"] body.hybrid-forum-shell .forum-shell .forum-thread-quote{
  background:#0a2637!important;
  border-left-color:#35b9ff!important;
}

@media(max-width:700px){
  body.hybrid-forum-shell .forum-shell .forum-thread-author{
    grid-template-columns:52px minmax(0,1fr)!important;
    padding:8px 9px!important;
  }
  body.hybrid-forum-shell .forum-shell .forum-thread-avatar{
    width:52px!important;height:52px!important;margin:0!important;
  }
  body.hybrid-forum-shell .forum-shell .forum-thread-avatar [data-avatar-fallback]{font-size:17px!important}
  body.hybrid-forum-shell .forum-shell .forum-thread-author-stats{margin-top:5px!important}
  body.hybrid-forum-shell .forum-shell .forum-thread-author-stats span{min-height:0!important;padding:4px!important}
  body.hybrid-forum-shell .forum-shell .forum-thread-post .forum-post-body{min-height:42px!important;padding:11px!important}
  body.hybrid-forum-shell .forum-shell .forum-thread-post-actions{gap:5px!important}
  body.hybrid-forum-shell .forum-shell .forum-thread-post-buttons{justify-content:flex-start!important;margin-left:0!important}
  body.hybrid-forum-shell .forum-shell .forum-thread-action{min-height:26px!important;padding:0 9px!important;font-size:8px!important}
  body.hybrid-forum-shell .forum-shell .forum-thread-reply textarea{height:88px!important;min-height:80px!important}
}
