/* Osclass data adapters within the original Bole thread layout. */
#comments,#reply{scroll-margin-top:95px}.comiis_viewthread .plhin{width:100%}.comiis_viewthread .plhin>.plc{width:100%}
.na-thread-content{overflow-wrap:anywhere;line-height:1.9}.na-thread-media{margin-top:20px}.na-thread-media a{display:block;margin:15px 0}.na-thread-media img,.na-thread-media video{display:block;max-width:100%;height:auto;margin:auto;border-radius:var(--comiis-radius-s)}
.na-thread-media video{width:100%}.na-thread-tags{display:flex;gap:12px;margin:18px 0;flex-wrap:wrap}.na-thread-actions{display:flex;gap:20px;flex-wrap:wrap;padding:20px 0 5px;border-top:1px solid var(--comiis-borderb);font-size:13px}
.comiis_viewthread .authi .km_avt img{object-fit:cover}.na-thread-replies .comiis_vpost{border-bottom:1px solid var(--comiis-borderb)}.na-thread-replies .comiis_vpost:last-child{border-bottom:0}.na-thread-reply{padding:10px 0 20px;overflow-wrap:anywhere}.na-floor{color:var(--comiis-fc);font-size:12px}
#reply .tedt{width:100%;box-sizing:border-box}#reply textarea.pt{display:block;box-sizing:border-box;width:100%;min-height:120px;resize:vertical;border:0;outline:0;box-shadow:none;background:transparent;color:var(--comiis-fa);padding:12px;font:inherit}#reply .na-thread-login{padding:35px 10px;height:auto;box-sizing:border-box}#reply .pnpost{text-align:right}#reply .flashmessage{padding:12px;margin-bottom:15px;background:var(--comiis-bgc);border-radius:var(--comiis-radius-s)}
#na-thread-lightbox{border:0;padding:0;background:transparent;max-width:94vw;max-height:94vh;overflow:visible}#na-thread-lightbox::backdrop{background:rgba(0,0,0,.85)}#na-thread-lightbox img{display:block;max-width:90vw;max-height:88vh;object-fit:contain}#na-thread-lightbox button{position:absolute;right:0;top:0;width:40px;height:40px;border:0;border-radius:50%;background:#fff;color:#333;font-size:28px;cursor:pointer}
@media(max-width:666px){.na-thread-actions{gap:12px}.na-thread-media{margin-top:15px}.na-thread-reply{padding-bottom:10px}}

.comiis_viewthread .pcb{margin-right:0}.comiis_viewthread .comiis_vone .pct{margin-left:0}.comiis_viewthread .na-floor{float:right;position:relative;z-index:1;line-height:30px}.comiis_viewthread .comiis_vpost .pi{height:auto;min-height:36px;padding:16px 0 12px}.comiis_viewthread .comiis_vone .pi{min-height:24px}.comiis_viewthread .comiis_vpost .authi{display:flex;align-items:center}.comiis_viewthread .comiis_vone .authi .avt{width:22px;height:22px;flex-shrink:0}.comiis_viewthread .na-thread-content{width:100%}
@media(max-width:666px){#wp .comiis_viewthread .comiis_vpost .authi{display:block;min-height:38px}#wp .comiis_viewthread .comiis_vone .authi .avt{width:38px;height:38px}.comiis_viewthread .comiis_vpost .pct{margin-left:0}}

/* Unified media gallery above the post copy. */
#postlist .comiis_vone .plc{padding-top:20px}.na-thread-description{font-weight:400;margin:20px 0;line-height:1.9}
.na-gallery{margin:0 auto 20px;min-width:0;--gallery-line:var(--comiis-border,#e2e2e2);--gallery-text:var(--comiis-font,#333)}
.na-gallery-stage{position:relative;overflow:hidden;border-radius:18px;background:var(--comiis-bgc)}
.na-gallery-viewport{overflow-x:auto;scrollbar-width:none}
.na-gallery-viewport::-webkit-scrollbar,.na-gallery-thumbs::-webkit-scrollbar{display:none}
.na-gallery-track{display:flex;touch-action:pan-y pinch-zoom}
.na-gallery-slide{flex:0 0 100%;min-width:0;transform:translate3d(0,0,0)}
.na-gallery-slide a{display:block}
.na-gallery-slide img,.na-gallery-slide video{display:block;width:100%;height:460px;max-height:65vh;object-fit:contain;margin:0 auto;border-radius:18px}
.na-gallery.is-embla .na-gallery-viewport,.na-gallery.is-embla .na-gallery-thumbs{overflow:hidden}
.na-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}
.na-gallery-buttons{display:flex;gap:6px}
.na-gallery-buttons button{appearance:none;display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;margin:0;background:transparent;border:0;border-radius:50%;box-shadow:inset 0 0 0 2px var(--gallery-line);color:var(--gallery-text);cursor:pointer;touch-action:manipulation}
.na-gallery-buttons button:disabled{color:var(--comiis-fc,#aaa);opacity:.4;cursor:default}
.na-gallery-buttons svg{display:block;width:35%;height:35%;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.na-gallery-toolbar{margin-top:8px}
.na-gallery-thumbs{overflow-x:auto;min-width:0;scrollbar-width:none}
.na-gallery-thumbs-track{display:flex;gap:8px;touch-action:pan-y pinch-zoom}
.na-gallery-thumbs button{appearance:none;position:relative;box-sizing:border-box;flex:0 0 calc(15% - 8px);min-width:0;height:60px;padding:0;margin:0;background:transparent;border:0;border-radius:18px;overflow:hidden;cursor:pointer;box-shadow:inset 0 0 0 2px var(--gallery-line);opacity:.45;transition:opacity .2s}
.na-gallery-thumbs button[aria-pressed=true]{opacity:1}
.na-gallery-thumbs img{display:block;width:100%;height:100%;object-fit:cover}
.na-video-indicator{position:absolute;inset:0;display:grid;place-items:center;color:#fff;background:rgba(0,0,0,.2);font-size:18px}
.na-gallery-count{font-size:14px;color:var(--comiis-fc);white-space:nowrap;font-variant-numeric:tabular-nums}
.na-gallery button:focus-visible{outline:2px solid var(--comiis-color);outline-offset:-2px}
html[data-nb-theme=dark] .na-gallery{--gallery-line:#41454b;--gallery-text:#f1f1f1}
@media(max-width:666px){.na-gallery-slide img,.na-gallery-slide video{height:300px;max-height:60vh}.na-gallery-thumbs button{flex-basis:calc(22% - 8px)}}
@media(max-width:666px){#postlist .comiis_vone .plc{padding-top:15px}}

/* Match the news detail comment card. */
#comments,#reply{scroll-margin-top:96px}#comments .km_avt a{width:36px;height:36px;display:block;border-radius:var(--comiis-radius-a);overflow:hidden}
#comments .km_avt img{width:36px;height:36px;object-fit:cover;display:block}
#comments .km_user{height:auto;min-height:20px;display:flex;flex-wrap:wrap;gap:0 10px}
#comments .km_user:after{content:none}#comments .km_user .km_name,#comments .km_user span{float:none;margin-right:0}
#comments .km_mes{overflow-wrap:anywhere;line-height:1.8}
#comments .na-comment-notices:empty{display:none}
#comments .flashmessage{padding:10px 14px;margin:0 0 15px;border:1px solid var(--comiis-borderb);border-radius:var(--comiis-radius-m);background:var(--comiis-bgc);color:var(--comiis-fa);font-size:13px;line-height:1.6}
#comments .flashmessage-error{color:var(--comiis-ahot)}
#comments #message{display:block;padding:12px 15px;resize:vertical;font-family:inherit;font-size:14px;line-height:1.8;color:var(--comiis-fa)}
#comments #message,#comments #message:focus{border:0;outline:0;box-shadow:none}
#comments .comiis_tedt_pns{display:flex;justify-content:flex-end}
@media(max-width:666px){#comments .km_user span{font-size:11px}#comments #message{min-height:100px}}
#comments .comiis_tedt_pns{background:var(--comiis-bgf);margin-top:10px;height:34px;line-height:34px}#comments .comiis_tedt_pns .pn{margin-left:10px;margin-right:0}

/* Use the same copy-link button and footer alignment as news articles. */
.na-thread-actions.comiis_view_footbtn{display:block;padding:15px 0 0;height:auto;min-height:30px;font-size:12px}.na-thread-actions.comiis_view_footbtn>span:first-child,.na-thread-actions.comiis_view_footbtn>a[href="#comments"]{display:inline-block;margin-right:15px;line-height:30px;color:var(--comiis-fc)}.na-thread-actions #na-copy-status{margin-left:12px}

/* Original Bole floating thread actions, visible when the left gutter fits. */
@media(min-width:1380px){#comiis_vp_btn.na-thread-rail{display:block!important;top:180px}}
@media(max-width:1379px){#comiis_vp_btn.na-thread-rail{display:none!important}}

/* Balanced post footer with the same glyphs as the floating action rail. */
.na-thread-actions.comiis_view_footbtn{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:15px 0 20px;min-height:30px}
.na-thread-actions.comiis_view_footbtn>.na-thread-stat{display:inline-flex;align-items:center;gap:6px;margin:0;line-height:30px;color:var(--comiis-fc)}
.na-thread-actions .na-thread-stat i{font-style:normal;font-size:18px;line-height:1}
.na-thread-actions .fico-zhan:before{font-family:dzicon;content:"\f110";margin:0}
.na-thread-actions .fico-pinglun:before{font-family:dzicon;content:"\e7b9";margin:0}
.na-thread-actions.comiis_view_footbtn>.oshr{float:none;margin-left:auto}
.na-thread-actions #na-copy-status:empty{display:none}
.na-thread-actions #na-copy-status:not(:empty){flex-basis:100%;margin:0}

/* Keep inherited footer line-height and icon pseudo-elements from shifting counts. */
#postlist .na-thread-actions>.na-thread-stat{display:inline-flex;align-items:center;gap:5px;margin:0;padding:0;height:30px;line-height:20px;font-size:13px}
#postlist .na-thread-stat i{display:block;flex:0 0 18px;width:18px;height:20px;margin:0;padding:0;line-height:20px}
#postlist .na-thread-stat i:before{display:block;width:18px;height:20px;margin:0;padding:0;line-height:20px;font-size:18px;text-align:center;vertical-align:baseline}
/* Community reply composer, shared with the app's plain-text/image comment model. */
#reply.na-reply-composer{display:flex;align-items:flex-start;gap:20px;padding-top:8px}
.na-reply-avatar{width:60px;height:60px;border-radius:50%;object-fit:cover;flex-shrink:0}
.na-reply-main{flex:1;min-width:0}
.na-reply-editor{border:1px solid var(--comiis-borderb,#e5e7eb);border-radius:6px;overflow:hidden;background:var(--comiis-bgf,#fff)}
.na-reply-toolbar{display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid var(--comiis-borderb,#e5e7eb);background:var(--comiis-bgc,#f5f7fc)}
.na-reply-toolbar button,.na-reply-emojis button{border:0;background:transparent;color:var(--comiis-fb,#929dae);min-width:32px;height:32px;font-size:22px;cursor:pointer}
.na-reply-toolbar button[data-reply-expand]{margin-left:auto;font-size:13px;white-space:nowrap}
#reply.na-reply-composer textarea{display:block;box-sizing:border-box;width:100%;min-height:150px;margin:0;padding:14px;border:0;border-radius:0;background:transparent;color:var(--comiis-fa,#333);font:inherit;line-height:1.7;resize:vertical;box-shadow:none}
#reply.na-reply-composer.is-expanded textarea{min-height:320px}
.na-reply-emojis{padding:8px;display:flex;flex-wrap:wrap;gap:4px}
.na-reply-preview{padding:12px;display:flex;align-items:center;gap:12px}
.na-reply-preview img{width:100px;height:100px;object-fit:contain;border-radius:4px}
.na-reply-preview button{padding:6px 10px;border:0;background:var(--comiis-bgc);color:var(--comiis-fb);cursor:pointer}
#reply [hidden]{display:none!important}
.na-reply-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-top:14px;font-size:12px;color:var(--comiis-fc)}
.na-reply-footer .pn{float:none;padding:0 18px;height:36px;line-height:36px}
.na-reply-error{color:#e66a63;margin:8px 0 0;line-height:1.5}
.na-comment-image{display:block;width:fit-content;max-width:100%;margin-top:10px}
.na-comment-image img{display:block;max-width:min(100%,280px);max-height:280px;object-fit:contain;border-radius:6px}
@media(max-width:666px){#reply.na-reply-composer{gap:10px}.na-reply-avatar{width:36px;height:36px}.na-reply-toolbar{gap:2px;padding:6px}.na-reply-toolbar button{min-width:28px}.na-reply-toolbar button[data-reply-expand]{font-size:12px}#reply.na-reply-composer textarea{font-size:16px;padding:10px}.na-reply-footer{gap:8px}}

/* Match the reference's separate reply panel and compact, consistent icon toolbar. */
.na-reply-panel .bm_h h3{font-weight:600}
#reply.na-reply-composer{padding-top:0}
.na-reply-toolbar{gap:8px;padding:4px 10px;background:var(--comiis-bgc,#f8f8f8)}
.na-reply-toolbar button{display:inline-flex;align-items:center;justify-content:center;padding:4px;min-width:28px;height:28px;font-weight:400}
.na-reply-toolbar button svg{display:block;width:20px;height:20px;flex-shrink:0}
.na-reply-toolbar button[data-reply-expand]{padding:4px 6px;font-weight:400}
#reply.na-reply-composer textarea{height:120px;min-height:120px;font-size:15px;font-weight:400}
#reply.na-reply-composer textarea::placeholder{font-weight:400}
#reply.na-reply-composer.is-expanded textarea{height:300px;min-height:300px}
.na-reply-error:empty{display:none}
@media(max-width:666px){.na-reply-toolbar{gap:4px;padding:4px 6px}#reply.na-reply-composer textarea{font-size:16px}.na-reply-toolbar button svg{width:18px;height:18px}}
/* Override the legacy fixed page width across the whole thread, not just wide desktops. */
html:has(#ct.comiis_viewthread),body:has(#ct.comiis_viewthread){min-width:0!important;width:100%;}
body:has(#ct.comiis_viewthread) .wp{max-width:100%;box-sizing:border-box}
@media(min-width:667px){
 body #wp.wp:has(>#ct.comiis_viewthread){width:calc(100% - 24px);max-width:1200px;min-width:0;margin-left:auto;margin-right:auto}
 body #ct.comiis_viewthread{display:grid;grid-template-columns:minmax(0,1fr) clamp(240px,27.5vw,330px);gap:15px;align-items:start;width:100%;min-width:0}
 body #ct.comiis_viewthread:after{display:none}
 body #ct.comiis_viewthread>.mn{float:none;width:100%;min-width:0;margin:0}
 body #ct.comiis_viewthread>.sd{float:none;display:block!important;width:100%;min-width:0;margin:0;position:sticky;top:95px}
}
body:has(#ct.comiis_viewthread) #nac-shared-header #toptb{min-width:0;width:100%}
body:has(#ct.comiis_viewthread) #nac-shared-header #toptb>.wp{width:100%;max-width:1200px}

/* Bole author corner ribbon and Flutter-compatible user badges. */
@font-face{font-family:NACircleBadge;src:url('../fonts/user-badge.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
#comiis_lzinfo_timg{position:relative;overflow:hidden}
#comiis_lzinfo_timg>.km_lz{position:absolute;right:0;top:0;width:46px;height:46px;pointer-events:none}
#comiis_lzinfo_timg .na-author-badge-row{display:flex;align-items:center;min-height:20px;margin-top:2px;padding:0}
.na-author-badge{position:relative;display:inline-flex;align-items:center;gap:2px;height:18px;box-sizing:border-box;padding:0 4px;border-radius:4px;background:var(--badge-gradient);box-shadow:0 1px 3px color-mix(in srgb,var(--badge-shadow) 22%,transparent);color:#fff;font-family:NACircleBadge,sans-serif;font-size:14px;font-weight:400;line-height:1;white-space:nowrap}
.na-author-badge svg{width:11px;height:11px;flex-shrink:0}
.na-author-badge--elite{border:1px solid #ddd7ff85;text-shadow:0 0 2px #17152daa}
.na-author-badge--elite:before{content:"✦";font-family:sans-serif;font-size:10px;color:#ddd7ff}
