/* WARCHIEF RAVEN R01.HF10 - approved connected thread concept.
   All rules are scoped to the focused conversation and its own right rail. */
.rt-v2{--rt-cyan:#12cafa;--rt-line:#245570;--rt-muted:#84a8bf;background:#020d16;min-width:0}
.rt-v2 .rt-breadcrumb{min-height:56px;padding:11px 22px;gap:10px;border-bottom:0;background:transparent}
.rt-v2 .rt-back{width:auto!important;height:auto!important;min-height:34px;border-radius:8px!important;display:inline-flex!important;align-items:center;gap:8px;padding:6px 8px!important;color:#5ad9ff;font-weight:750;font-size:12px}
.rt-v2 .rt-back:hover{background:#0c2a3d;color:#e3f9ff}
.rt-current-page,.rt-breadcrumb>span{font-size:11px;color:#6e9aae}.rt-v2 .rt-copy-link{margin-left:auto;font-size:11px}
.rt-v2 .rt-original{padding:0 22px 12px}
.rt-v2 .rt-original>.post{border:1px solid #1d6586;border-radius:14px;margin:0;padding:16px 17px 14px;background:linear-gradient(120deg,#0a3046 0%,#071b2b 23%,#051727 72%,#071d2c 100%);box-shadow:0 14px 38px #0006,inset 0 1px 0 #24aaff13;position:relative;overflow:hidden}
.rt-v2 .rt-original>.post:before{content:'';position:absolute;left:0;top:16px;bottom:16px;width:4px;background:linear-gradient(#017cbd,#20cfff,#05517b);box-shadow:0 0 17px #11d4ff60;border-radius:0 5px 5px 0;pointer-events:none}
.rt-v2 .rt-original .post-context{color:#67c7ee;font-size:12px}.rt-v2 .rt-original .post-name{color:#f5fbff}.rt-v2 .rt-original .post-copy{font-size:15px;line-height:1.68;color:#e0ebf7}.rt-v2 .rt-original .post-head{font-size:13px}.rt-v2 .rt-original .post-actions{padding-top:13px;margin-top:9px;border-top:1px solid #1a465c}.rt-v2 .rt-original .post-actions .engagement{color:#93b9d0}
.rt-v2 .rt-conversation{padding:9px 22px 48px;min-width:0}
.rt-v2 .rt-conversation-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;border-bottom:1px solid #1d4058;padding:7px 0 14px;margin:0 0 15px}
.rt-v2 .rt-heading-title h2{font-size:17px;margin:0;color:#f2f8ff;display:flex;gap:9px;align-items:center}
.rt-v2 .rt-heading-title p{margin:5px 0 0;color:#78a0b5;font-size:11px}
.rt-v2 .rt-count{font-size:12px;line-height:1;border:1px solid #0ab8e8;border-radius:18px;color:#60dbff;padding:5px 9px;background:#00263a}
.rt-control-group{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.rt-v2 .rt-sort{display:flex;align-items:center;gap:8px;font-size:11px;color:#96b6ca}
.rt-v2 .rt-sort select{appearance:auto;background:#092237;border:1px solid #2c6682;color:#d9f1fd;border-radius:10px;padding:9px 10px;font-size:12px;max-width:145px;outline:none;color-scheme:dark}
.rt-v2 .rt-sort select:focus-visible,.rt-v2 .rt-collapse-all:focus-visible,.rt-v2 .rt-continue:focus-visible,.rt-v2 .rt-reply-tools button:focus-visible{outline:2px solid #19cbfb;outline-offset:3px}
.rt-v2 .rt-collapse-all{display:flex;align-items:center;gap:5px;color:#b7d7e7;font-size:12px;padding:9px 11px;border:1px solid #27546e;border-radius:11px;background:#071d2d}
.rt-v2 .rt-collapse-all:hover{color:#36d4ff;border-color:#1eb5e5;background:#0d2b40}
.rt-v2 .rt-ancestor-path{margin:0 0 15px;border-radius:11px;gap:4px;overflow-wrap:anywhere}.rt-v2 .rt-ancestor-path button{max-width:136px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rt-v2 .rt-reply-tree{display:flex;flex-direction:column;gap:12px;min-width:0}
.rt-v2 .rt-tree-node{position:relative;min-width:0}.rt-v2 .rt-reply{margin-left:0;border:1px solid #204b65;border-radius:12px;gap:12px;align-items:flex-start;padding:13px 13px 12px;background:linear-gradient(112deg,#092538,#061a29 72%,#071d2c);box-shadow:inset 0 1px 0 #ffffff08,0 5px 13px #0003;overflow:visible;scroll-margin-top:110px;transition:border-color .14s,background-color .14s,box-shadow .14s}
.rt-v2 .rt-reply:before{display:none}.rt-v2 .rt-reply:hover{border-color:#197da7;background:#09293e}.rt-v2 .rt-reply.rt-target{border:1px solid #11cdf7;background:linear-gradient(105deg,#0b3650,#082034);box-shadow:0 0 0 1px #12caff32,0 0 22px #06c9f222}.rt-v2 .rt-reply.rt-target:before{display:block;left:0;top:9px;bottom:9px;inset:9px auto 9px 0;width:3px;background:#1bccfc;box-shadow:0 0 12px #0cf}
.rt-v2 .rt-node-avatar{flex:none;position:relative}.rt-v2 .rt-node-avatar .avatar{width:42px;height:42px;border:1px solid #2994bb;border-radius:50%;box-shadow:0 0 0 3px #051524;background:#081b2b;object-fit:cover}
.rt-v2 .rt-reply-body{min-width:0;flex:1}.rt-v2 .rt-reply-meta{gap:5px 8px;align-items:center;line-height:1.45}.rt-v2 .rt-reply-meta strong{font-size:13px;color:#f3faff;font-weight:790}.rt-v2 .rt-reply-meta>span{font-size:11px;color:#8fb0c3}.rt-v2 .rt-selected-label{font-size:10px;color:#62dbff;background:#072f45}
.rt-v2 .rt-parent-ref{color:#53bee7;font-size:11px;margin:5px 0 8px;padding:2px 0}.rt-v2 .rt-parent-ref:hover{color:#c7efff}
.rt-v2 .rt-reply-text{font-size:13.5px;line-height:1.56;color:#dceaf5;white-space:pre-wrap;overflow-wrap:anywhere}
.rt-v2 .rt-reply-tools{margin-top:9px;gap:7px 11px;align-items:center;color:#8db9cf;font-size:11px}
.rt-v2 .rt-reply-tools button{display:inline-flex;align-items:center;gap:6px;border-radius:7px;padding:6px 8px;color:#82c8eb;font-size:11px}
.rt-v2 .rt-reply-tools button:hover{background:#0d3a52;color:#e8faff}
.rt-v2 .rt-reply-tools button.rt-children-toggle{margin-left:auto;border:1px solid #2b6984;border-radius:50px;padding:6px 9px;color:#50d5ff;white-space:nowrap}
.rt-v2 .rt-reply-tools button.rt-children-toggle:hover{background:#124765}
.rt-v2 .rt-childgroup{position:relative;margin-left:27px;padding:7px 0 3px 21px;border-left:2px solid #0f8db6;display:flex;flex-direction:column;gap:8px;min-width:0}
.rt-v2 .rt-childgroup:before{content:'';position:absolute;left:-3px;top:0;bottom:0;width:4px;background:linear-gradient(180deg,#10d0ff30,#13ccff08);pointer-events:none}
.rt-v2 .rt-childgroup>.rt-tree-node:before{content:'';position:absolute;top:30px;left:-21px;height:19px;width:19px;border-left:2px solid #0f9dc5;border-bottom:2px solid #1ac5ed;border-radius:0 0 0 9px;transform:translateY(-16px);pointer-events:none}
.rt-v2 .rt-childgroup>.rt-tree-node:after{content:'';position:absolute;top:27px;left:-25px;width:8px;height:8px;border-radius:50%;background:#20d8ff;box-shadow:0 0 9px #0acafa88;pointer-events:none}
.rt-v2 .rt-childgroup.rt-childgroup-capped{margin-left:0;padding-left:0;border:0;gap:8px}.rt-v2 .rt-childgroup.rt-childgroup-capped:before,.rt-v2 .rt-childgroup.rt-childgroup-capped>.rt-tree-node:before,.rt-v2 .rt-childgroup.rt-childgroup-capped>.rt-tree-node:after{display:none}
.rt-v2 .rt-depth-capped >.rt-node-card{border-left:2px solid #168fba;background:linear-gradient(110deg,#08283a,#071c2c 68%)}
.rt-v2 .rt-depth-capped .rt-parent-ref{color:#79dcff}
.rt-v2 .rt-continue{display:flex;align-items:center;justify-content:center;gap:9px;min-height:39px;padding:8px 15px;background:#061929;border:1px dashed #1f83a9;border-radius:11px;color:#3dcff7;font-size:12px;width:min(100%,460px);margin:9px auto 8px}
.rt-v2 .rt-continue:hover{background:#0c3147;color:#d7f8ff;border-color:#0cd0fa}
.rt-v2 .rt-tree-node>[hidden]{display:none!important}
.rt-v2 .rt-reply-form{margin-top:10px}.rt-v2 .rt-reply-form input{min-height:42px;background:#041726;border-radius:11px;font-size:13px}.rt-v2 .rt-reply-form .primary-button{font-weight:800;font-size:12px}
.rt-v2 .rt-root-compose{display:flex;align-items:center;gap:12px;margin:19px 0 0;padding:12px;background:linear-gradient(115deg,#051928,#08253a);border:1px solid #176b92;border-radius:14px;box-shadow:0 7px 24px #0008}
.rt-v2 .rt-root-compose>.avatar{width:42px;height:42px;object-fit:cover;flex:none;border:1px solid #317c9d}
.rt-v2 .rt-root-compose>div{flex:1;min-width:0}.rt-v2 .rt-root-compose>div>span{font-size:11px;color:#83b0c7}
.rt-v2 .rt-root-compose .rt-reply-form{margin-top:5px}.rt-v2 .rt-root-compose .primary-button{box-shadow:0 0 14px #08bcf32c}
.rt-context-rail{display:flex;flex-direction:column;gap:0}.rt-context-rail .rt-rail-card{padding:13px 15px 14px;margin-bottom:13px;border-color:#19445b;background:linear-gradient(130deg,#081b2c,#04111c 82%)}
.rt-context-rail .rail-title{padding:0 0 12px;margin-bottom:10px;font-size:14px;font-weight:800;border-bottom:1px solid #1b4055;color:#eff8ff}
.rt-rail-brand{display:flex;align-items:center;gap:10px;min-width:0}.rt-rail-brand .project-icon{height:46px;width:46px;flex:none}.rt-rail-brand>div{min-width:0;flex:1}.rt-rail-brand strong{font-size:13px;color:#f0f7ff;display:block}.rt-rail-brand small{font-size:11px;color:#8dafc6;display:block;margin-top:4px}.rt-rail-brand .follow-btn{font-size:11px;padding:7px 10px}
.rt-rail-hint{color:#90b2c5;font-size:12px;line-height:1.55;margin:11px 0}.rt-rail-detail{display:flex;align-items:center;gap:9px;padding:7px 1px;color:#9bbccf;font-size:12px}.rt-rail-detail svg{color:#4cbbe8;flex:none}
.rt-context-rail .rt-rail-link{width:100%;display:flex;align-items:center;gap:9px;color:#8cd3f5;font-size:12px;text-align:left;padding:10px 2px;border-top:1px solid #1a394c;min-width:0}.rt-context-rail .rt-rail-link svg{flex:none}.rt-context-rail .rt-rail-link svg:last-child{margin-left:auto}.rt-context-rail .rt-rail-link:hover{color:#effbff}
.rt-context-rail .rt-rail-trending .rail-title{display:flex;align-items:center;gap:8px}.rt-context-rail .rt-rail-trending .rail-title svg{color:#e7a133}
.rt-context-rail .rt-rail-trending .trending-topic{padding:9px 0}.rt-context-rail .rail-footer{padding:4px 5px 20px}
@media(max-width:1050px){.rt-v2 .rt-conversation{padding-left:14px;padding-right:14px}.rt-v2 .rt-original{padding:0 14px 10px}.rt-v2 .rt-breadcrumb{padding:10px 14px}.rt-v2 .rt-childgroup{margin-left:21px;padding-left:17px}.rt-v2 .rt-childgroup>.rt-tree-node:before{left:-17px;width:16px}.rt-v2 .rt-childgroup>.rt-tree-node:after{left:-22px}}
@media(max-width:590px){.rt-v2 .rt-breadcrumb{min-height:48px;gap:5px;padding:6px 10px}.rt-v2 .rt-copy-link{font-size:0;padding:8px}.rt-v2 .rt-copy-link svg{width:16px}.rt-current-page{display:none}.rt-v2 .rt-original{padding:0 9px 9px}.rt-v2 .rt-original>.post{padding:13px 10px;border-radius:12px}.rt-v2 .rt-original .post-copy{font-size:13px}.rt-v2 .rt-conversation{padding:7px 9px 89px}.rt-v2 .rt-conversation-head{gap:8px;align-items:flex-start}.rt-v2 .rt-heading-title{width:100%}.rt-v2 .rt-heading-title h2{font-size:16px}.rt-v2 .rt-heading-title p{font-size:10px}.rt-control-group{gap:7px;width:100%;justify-content:space-between}.rt-v2 .rt-sort{font-size:10px}.rt-v2 .rt-sort select{padding:8px;font-size:11px}.rt-v2 .rt-collapse-all{font-size:11px;padding:8px}.rt-v2 .rt-reply-tree{gap:10px}.rt-v2 .rt-reply{padding:10px 8px 10px 9px;gap:8px;border-radius:11px}.rt-v2 .rt-node-avatar .avatar{height:31px;width:31px}.rt-v2 .rt-reply-meta strong{font-size:12px}.rt-v2 .rt-reply-meta>span{font-size:10px}.rt-v2 .rt-reply-text{font-size:12px;line-height:1.58}.rt-v2 .rt-parent-ref{font-size:10px;margin:4px 0 6px}.rt-v2 .rt-reply-tools{gap:2px 5px}.rt-v2 .rt-reply-tools button{font-size:10px;padding:5px 3px}.rt-v2 .rt-reply-tools button.rt-children-toggle{padding:5px 7px;margin-left:0}.rt-v2 .rt-childgroup{margin-left:11px;padding-left:11px;border-left-width:1px;gap:6px}.rt-v2 .rt-childgroup>.rt-tree-node:before{left:-12px;top:20px;width:12px;height:12px;transform:translateY(-7px);border-width:1px}.rt-v2 .rt-childgroup>.rt-tree-node:after{left:-15px;top:17px;width:6px;height:6px}.rt-v2 .rt-tree-node[data-depth="2"]>.rt-childgroup{margin-left:0;padding-left:0;border:0}.rt-v2 .rt-tree-node[data-depth="2"]>.rt-childgroup:before,.rt-v2 .rt-tree-node[data-depth="2"]>.rt-childgroup>.rt-tree-node:before,.rt-v2 .rt-tree-node[data-depth="2"]>.rt-childgroup>.rt-tree-node:after{display:none}.rt-v2 .rt-tree-node[data-depth="2"]>.rt-childgroup .rt-reply{border-left:2px solid #1ba6d6}.rt-v2 .rt-ancestor-path{padding:7px;font-size:10px}.rt-v2 .rt-ancestor-path button{max-width:93px;font-size:10px;padding:4px}.rt-v2 .rt-root-compose{gap:8px;padding:9px;border-radius:12px}.rt-v2 .rt-root-compose>.avatar{width:32px;height:32px}.rt-v2 .rt-root-compose .rt-reply-form input{min-height:38px}.rt-v2 .rt-root-compose .rt-reply-form .primary-button{min-width:72px;padding:7px 9px}}
@media(max-width:385px){.rt-v2 .rt-original .post-actions{gap:0}.rt-v2 .rt-reply-tools button.rt-children-toggle{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){.rt-v2 .rt-reply{transition:none}}
/* A conversation keeps the original-post reply composer accessible while scrolling.
   Positions follow existing Raven grid breakpoints; no JS layout observers needed. */
.rt-v2 .rt-conversation{padding-bottom:142px}
.rt-v2 .rt-root-compose{position:fixed;z-index:14;left:calc(max(0px,(100vw - 1900px)/2) + 287px);right:calc(max(0px,(100vw - 1900px)/2) + 392px);bottom:12px;margin:0;min-height:69px;background:linear-gradient(115deg,#051a29ed,#082b40f0);backdrop-filter:blur(13px);box-shadow:0 10px 40px #000c,0 0 25px #04ccff14}
@media(max-width:1290px){.rt-v2 .rt-root-compose{left:248px;right:332px}}
@media(max-width:1050px){.rt-v2 .rt-root-compose{left:100px;right:319px}}
@media(max-width:850px){.rt-v2 .rt-root-compose{left:90px;right:16px}}
@media(max-width:590px){.rt-v2 .rt-conversation{padding-bottom:162px}.rt-v2 .rt-root-compose{left:8px;right:8px;bottom:68px;min-height:67px;padding:8px 10px;border-radius:13px}.rt-v2 .rt-root-compose .rt-reply-form{flex-wrap:nowrap}.rt-v2 .rt-root-compose .rt-reply-form input{flex-basis:auto;min-width:0}.rt-v2 .rt-root-compose .rt-reply-form .primary-button{min-width:66px}}
