/* Nightboard Thread V8 — restrained forum geometry + cinematic discussion header. */
body.page-thread{--v8-cyan:#38c8ea;--v8-cyan2:#0d8fbd;--v8-cream:#efe2c9;--v8-muted:#8fa0b5;--v8-line:rgba(112,161,194,.20);--v8-line2:rgba(65,199,229,.34);--v8-panel:#081523;--v8-panel2:#0b1b2d;--v8-bg:#06111d}
body.page-thread main.shell.page{width:min(1280px,calc(100% - 30px))!important;max-width:1280px!important}
body.page-thread .thread-content{max-width:1160px!important;margin-inline:auto!important}

/* One compact navigation/search strip. */
body.page-thread .thread-nav-strip{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:5px auto 10px;max-width:1240px;padding:8px 10px 8px 14px;border-radius:7px!important;border:1px solid var(--v8-line)!important;background:linear-gradient(180deg,rgba(12,27,44,.88),rgba(7,19,32,.82))!important;box-shadow:none!important}
body.page-thread .thread-nav-strip .thread-crumb{display:flex;align-items:center;gap:8px;margin:0!important;padding:0!important;border:0!important;background:none!important;color:#74869a;font:600 11px var(--sans)}
body.page-thread .thread-nav-strip .thread-crumb a{color:#94a4b5;text-decoration:none}
body.page-thread .thread-nav-strip .thread-crumb a:last-child{color:var(--v8-cyan)}
body.page-thread .thread-nav-tools{display:flex;align-items:center;gap:8px;margin-left:auto}
body.page-thread .thread-inline-search{height:36px;min-width:260px;display:flex;align-items:center;border:1px solid var(--v8-line)!important;border-radius:6px!important;background:rgba(2,10,18,.58)!important;overflow:hidden}
body.page-thread .thread-inline-search>span{padding-left:11px;color:#71869a}
body.page-thread .thread-inline-search input{height:100%;flex:1;min-width:0;border:0!important;outline:0;background:transparent!important;padding:0 8px;color:#d7e0e8;font:500 11px var(--sans)}
body.page-thread .thread-inline-search button{width:36px;height:100%;border:0!important;border-left:1px solid var(--v8-line)!important;background:rgba(43,121,151,.08)!important;color:#8ea7b7;font-size:15px;cursor:pointer}
body.page-thread .thread-nav-save .btn{width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;border-radius:6px!important;background:rgba(2,10,18,.55)!important;border-color:var(--v8-line)!important;font-size:0!important}
body.page-thread .thread-nav-save .btn:before{content:"☆";font-size:16px;color:#b7c4cf}

/* Discussion hero: visually strong but still forum sized. */
body.page-thread .thread-hero-v8{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:24px!important;min-height:220px!important;margin:0 auto 10px!important;max-width:1240px!important;padding:26px 24px 20px!important;overflow:hidden!important;border:1px solid var(--v8-line)!important;border-radius:8px!important;background:linear-gradient(110deg,#09182a 0%,#071522 64%,#071421 100%)!important;box-shadow:0 12px 34px rgba(0,0,0,.16)!important}
body.page-thread .thread-hero-art-v8{position:absolute;inset:0;pointer-events:none;overflow:hidden;opacity:.95}
body.page-thread .thread-hero-art-v8:before{content:"";position:absolute;right:-3%;bottom:-29px;width:48%;height:115px;background:linear-gradient(155deg,transparent 18%,rgba(13,36,55,.72) 19% 31%,transparent 32%),linear-gradient(205deg,transparent 21%,rgba(8,31,47,.92) 22% 42%,transparent 43%);filter:drop-shadow(0 -12px 18px rgba(8,53,73,.13))}
body.page-thread .thread-hero-art-v8:after{content:"";position:absolute;right:0;top:0;width:48%;height:100%;background:radial-gradient(circle at 73% 34%,rgba(63,191,220,.10),transparent 18%),linear-gradient(90deg,transparent,rgba(5,17,29,.04) 35%,rgba(6,16,28,.16));}
body.page-thread .hero-moon{position:absolute;right:6.5%;top:32px;width:72px;height:72px;border-radius:50%;background:radial-gradient(circle at 38% 35%,#b9e7ee 0 4%,#7cb1c0 7%,#326278 33%,#143749 66%,#0b2737 100%);box-shadow:0 0 0 1px rgba(72,202,227,.18),0 0 32px rgba(56,200,234,.15)}
body.page-thread .hero-moon:before,body.page-thread .hero-moon:after{content:"";position:absolute;inset:-20px;border-radius:50%;border:1px solid rgba(56,200,234,.07)}
body.page-thread .hero-moon:after{inset:-38px}
body.page-thread .hero-stars{position:absolute;right:3%;top:14px;width:42%;height:95px;background-image:radial-gradient(circle,#5eb9ce 0 1px,transparent 1.2px),radial-gradient(circle,#aecad3 0 1px,transparent 1.1px);background-position:15px 12px,65px 38px;background-size:95px 62px,140px 76px;opacity:.27}
body.page-thread .thread-title-block{position:relative;z-index:2;max-width:830px;min-width:0}
body.page-thread .thread-context-row{margin:0 0 13px!important}
body.page-thread .thread-state-chip{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border:1px solid rgba(56,200,234,.45);border-radius:5px;background:rgba(14,115,149,.13);color:#57d9f0;font:800 9px var(--mono);letter-spacing:.045em}
body.page-thread .thread-hero-v8 h1{max-width:800px!important;margin:0!important;color:var(--v8-cream)!important;font:600 clamp(34px,3.7vw,50px)/1.03 var(--serif)!important;letter-spacing:-.032em!important;text-wrap:balance!important;text-shadow:0 1px 0 rgba(0,0,0,.28)}
body.page-thread .thread-title-meta{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;margin-top:18px!important;color:#9aa8b8!important;font:500 11px var(--sans)!important}
body.page-thread .thread-starter{display:inline-flex;align-items:center;gap:7px;color:var(--v8-cyan)!important;text-decoration:none!important}
body.page-thread .thread-starter .mini-avatar{width:28px;height:28px;border-radius:50%;overflow:hidden;display:inline-flex;box-shadow:0 0 0 1px rgba(73,207,233,.26)}
body.page-thread .thread-starter .mini-avatar img{width:100%;height:100%;object-fit:cover}
body.page-thread .thread-view-count,body.page-thread .thread-start-date{color:#9daaba}
body.page-thread .thread-meta-dot{color:#52677a}
body.page-thread .thread-hero-actions{position:relative;z-index:3;display:flex!important;align-items:center!important;gap:8px!important;align-self:end!important;justify-self:end!important;margin:0!important}
body.page-thread .thread-hero-actions form{margin:0}
body.page-thread .thread-hero-btn,body.page-thread .thread-hero-bookmark .btn{height:40px!important;min-height:40px!important;padding:0 15px!important;border-radius:5px!important;border:1px solid rgba(119,157,187,.30)!important;background:rgba(3,12,21,.61)!important;color:#d8e0e7!important;font:700 10px var(--sans)!important;text-transform:uppercase!important;letter-spacing:.045em!important;box-shadow:none!important}
body.page-thread .thread-hero-btn.primary{background:linear-gradient(180deg,#0f87ba,#086d9a)!important;border-color:#199bc8!important;color:#e7f9ff!important}
body.page-thread .thread-hero-btn:hover,body.page-thread .thread-hero-bookmark .btn:hover{border-color:rgba(56,200,234,.55)!important;color:#65d7ed!important}
body.page-thread .thread-more{width:48px!important;padding:0!important}

/* One command bar instead of stacked thread-details/live-update cards. */
body.page-thread .thread-command-bar{max-width:1240px!important;margin:0 auto 12px!important;min-height:48px!important;padding:0 13px!important;display:flex;align-items:center;justify-content:space-between;gap:16px;border-radius:6px!important;border:1px solid var(--v8-line)!important;background:rgba(8,20,33,.66)!important;box-shadow:none!important}
body.page-thread .thread-command-bar .thread-details-panel{position:relative!important;margin:0!important;border:0!important;background:none!important;box-shadow:none!important;max-width:none!important}
body.page-thread .thread-command-bar .thread-details-panel>summary{min-height:46px!important;padding:0 4px!important;display:flex;align-items:center;gap:7px;color:#56cae4!important;font:700 10px var(--sans)!important;text-transform:uppercase!important;letter-spacing:.035em!important;cursor:pointer}
body.page-thread .thread-command-bar .thread-details-content{position:absolute;z-index:30;left:0;top:45px;width:min(640px,82vw);display:grid!important;grid-template-columns:repeat(3,1fr);gap:0!important;padding:10px!important;border:1px solid var(--v8-line);border-radius:7px;background:#091828;box-shadow:0 18px 40px rgba(0,0,0,.32)}
body.page-thread .thread-command-actions{display:flex;align-items:center;gap:13px;margin-left:auto;min-width:0;color:#a8b5c0;font:700 9px var(--sans);text-transform:uppercase;letter-spacing:.035em}
body.page-thread .thread-command-actions>a{color:#5bcde7;text-decoration:none}
body.page-thread .thread-watch-label{padding-left:12px;border-left:1px solid var(--v8-line)}
body.page-thread .live-thread-switch.compact{display:flex!important;align-items:center!important;gap:6px!important;margin:0!important}
body.page-thread .live-thread-switch.compact input{width:16px;height:16px;margin:0;accent-color:#29bce1}
body.page-thread .live-thread-switch.compact b{font-size:9px!important;color:#55c9e5!important}
body.page-thread .live-thread-state.compact{display:flex!important;align-items:center!important;gap:6px!important}
body.page-thread .live-thread-state.compact>span{font-size:8px!important;color:#65788b!important}
body.page-thread .live-thread-state.compact .btn{min-height:30px!important;padding:0 9px!important;font-size:9px!important}

/* Real-forum post proportions. */
body.page-thread #thread-posts{gap:13px!important}
body.page-thread .discussion-post{grid-template-columns:235px minmax(0,1fr)!important;border-radius:6px!important;border-color:var(--v8-line)!important;box-shadow:0 7px 20px rgba(0,0,0,.11)!important;background:#071522!important}
body.page-thread .post-author{background:linear-gradient(180deg,#08192a,#071521)!important}
body.page-thread .post-author-hero{height:72px!important;margin-bottom:45px!important}
body.page-thread .post-author-avatar.avatar{width:92px!important;height:92px!important;min-width:92px!important;bottom:-42px!important}
body.page-thread .post-author-card{padding-left:12px!important;padding-right:12px!important}
body.page-thread .post-author-identity h3{font-size:22px!important}
body.page-thread .post-author-role{font-size:12.5px!important}
body.page-thread .post-author-tagline{font-size:10.5px!important;max-width:185px!important;margin-top:2px!important}
body.page-thread .post-author-flourish{margin:7px 0!important}
body.page-thread .post-author-primary-badge{min-height:29px!important;margin-top:6px!important;font-size:9px!important}
body.page-thread .post-author-groups{gap:5px!important;margin-top:6px!important}
body.page-thread .post-author-groups span{min-height:22px!important;padding:0 7px!important;font-size:8px!important}
body.page-thread .post-author-presence{padding:6px 4px!important;margin-top:6px!important}
body.page-thread .post-author-presence b{font-size:10px!important}
body.page-thread .post-author-presence small{font-size:8.5px!important}
body.page-thread .post-author-stats div{min-height:50px!important}
body.page-thread .post-author-stats dd{font-size:14px!important}
body.page-thread .post-author-stats dt{font-size:7.5px!important}
body.page-thread .post-author-fact{min-height:27px!important;font-size:9px!important}
body.page-thread .author-profile-button{min-height:31px!important;font-size:9px!important}
body.page-thread .post-author-action-row>a,body.page-thread .post-author-action-row form button{min-height:29px!important;font-size:9px!important}
body.page-thread .post-author-more summary{font-size:9px!important;padding:8px 0!important}
body.page-thread .post-header{min-height:44px!important;padding:0 12px 0 18px!important;border-bottom-color:var(--v8-line)!important}
body.page-thread .post-header time{font-size:10.5px!important}
body.page-thread .post-reading-area{padding:20px 27px 17px!important}
body.page-thread .post-content{max-width:720px!important;font-size:16px!important;line-height:1.6!important;color:#dfd9cf!important}
body.page-thread .post-content p{margin-bottom:1.03em!important}
body.page-thread .post-actions{min-height:48px!important;padding:0 16px!important;border-top-color:var(--v8-line)!important}
body.page-thread .post-primary-actions>a{min-width:62px!important;padding:8px 10px!important;font-size:11px!important}

@media(max-width:1050px){
 body.page-thread main.shell.page{width:min(1180px,calc(100% - 20px))!important}
 body.page-thread .thread-hero-v8{grid-template-columns:1fr!important;min-height:auto!important;gap:16px!important}
 body.page-thread .thread-hero-actions{justify-self:start!important}
 body.page-thread .thread-hero-art-v8{opacity:.62}
 body.page-thread .discussion-post{grid-template-columns:220px minmax(0,1fr)!important}
 body.page-thread .post-reading-area{padding-left:22px!important;padding-right:22px!important}
 body.page-thread .post-content{max-width:690px!important;font-size:15.8px!important}
}
@media(max-width:790px){
 body.page-thread .thread-nav-strip{align-items:stretch;flex-direction:column;padding:9px!important}
 body.page-thread .thread-nav-tools{width:100%}
 body.page-thread .thread-inline-search{width:100%;min-width:0}
 body.page-thread .thread-hero-v8{padding:18px 14px 15px!important;border-radius:7px!important}
 body.page-thread .thread-hero-v8 h1{font-size:clamp(29px,9vw,38px)!important}
 body.page-thread .thread-hero-art-v8{opacity:.35}
 body.page-thread .thread-hero-actions{width:100%;overflow-x:auto;padding-bottom:2px}
 body.page-thread .thread-command-bar{align-items:flex-start;flex-direction:column;padding:0 11px 8px!important}
 body.page-thread .thread-command-actions{width:100%;overflow:auto;padding-bottom:2px}
 body.page-thread .discussion-post{grid-template-columns:1fr!important}
}
