/* FriendHub 2.6.4 — conventional Reddit-like threading and steady navigation */
.fh264-thread{border-top:1px solid var(--line);padding-top:12px;margin-top:12px;min-width:0}
.fh264-title{font-size:16px;margin:0 0 12px}
.fh264-comment{position:relative;border-left:2px solid color-mix(in srgb,var(--accent) 22%,var(--line));padding:7px 6px 7px 13px;margin:5px 0;min-width:0}
.fh264-comment-head{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-bottom:4px}
.fh264-author{background:transparent!important;border:0!important;font-weight:700;padding:0!important;color:var(--text)!important;cursor:pointer}
.fh264-author:hover{text-decoration:underline}
.fh264-comment-head small{font-size:11px}
.fh264-comment-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.55}
.fh264-comment-controls{display:flex;flex-wrap:wrap;gap:3px;margin-top:5px}
.fh264-comment-controls button{padding:4px 8px;font-size:12px;background:transparent;border:0}
.fh264-comment-controls button:hover,.fh264-collapse:hover{color:var(--accent)}
.fh264-children{padding-left:min(16px,3vw);margin-top:7px}
.fh264-children[hidden]{display:none!important}
.fh264-root-reply{margin:15px 0 4px}
.fh264-reply-form{display:grid;gap:8px;max-width:800px;margin:7px 0 12px}
.fh264-reply-form textarea{min-height:70px;max-height:240px;font:inherit;resize:vertical}
.fh264-reply-actions{display:flex;justify-content:flex-end;gap:8px}
.fh264-ref{display:inline!important;border:0!important;background:none!important;box-shadow:none!important;color:var(--accent)!important;font:inherit!important;font-weight:650!important;padding:0 1px!important;text-align:inherit;vertical-align:baseline}
.fh264-ref:hover{text-decoration:underline}
#view-chat .chat-layout{min-height:690px!important;align-items:stretch}
#view-chat #messages{height:clamp(540px,71dvh,950px)!important;max-height:950px!important;min-height:540px!important;overflow-y:auto!important;overscroll-behavior:contain!important;overflow-anchor:none;scrollbar-gutter:stable}
#view-chat .chat-input textarea{min-height:60px!important;max-height:200px}
@media(min-width:851px){
 .app{align-items:start}
 .app>.side,.app .side.fh9-sticky-side,.side.fh9-sticky-side{
   position:sticky!important;top:0!important;align-self:start!important;
   height:100dvh!important;max-height:100dvh!important;overflow-y:auto!important;z-index:35!important;
 }
}
@media(max-width:850px){
 #view-chat .chat-layout{min-height:0!important}
 #view-chat #messages{height:max(47dvh,380px)!important;min-height:320px!important;max-height:650px!important}
 .app>.side{position:sticky!important;top:0;z-index:40!important;max-height:135px;overflow-y:auto;background:var(--panel,#101723)}
 .fh264-children{padding-left:8px}
 .fh264-comment{padding-left:9px}
}
@media(prefers-reduced-motion:reduce){.fh264-comment *{scroll-behavior:auto!important}}
/* Deep threads should shrink instead of forcing horizontal scrolling on phones. */
.fh264-thread,.fh264-comment,.fh264-children,.fh264-reply-form{box-sizing:border-box;max-width:100%;min-width:0}
.fh264-reply-form textarea{box-sizing:border-box;min-width:0!important;width:100%;max-width:100%}
