/* BITEDATA shared comments v1.0: PC fixed layout, all board-specific markup stays untouched. */
/* BITE DATA V4.5 | editorial comment rows. No nested staircase or duplicate text rules.
   View markup now uses btd-cm-* instead of legacy .cm_wrap/.cmt_contents,
   avoiding inherited decoration/underlines that survived previous patches. */

#bo_vc.btd-comment-unified {width:100%;padding:0;margin:0;text-align:left;box-sizing:border-box}
#bo_vc.btd-comment-unified article.btd-cm-item {
    display:flex !important;align-items:flex-start !important;gap:13px;
    position:relative !important;min-height:78px;width:100% !important;
    margin:0 !important;padding:17px 47px 17px 12px !important;
    border:0 !important;border-bottom:1px solid #e1e4e6 !important;
    background:transparent !important;box-shadow:none !important;
    box-sizing:border-box;text-align:left !important;
}
#bo_vc.btd-comment-unified article.btd-cm-item:last-of-type {border-bottom:0 !important}
#bo_vc.btd-comment-unified article.btd-cm-item::before,
#bo_vc.btd-comment-unified article.btd-cm-item::after {content:none !important;display:none !important}
/* Every answer is offset only once; @nickname identifies its direct recipient. */
#bo_vc.btd-comment-unified article.btd-cm-reply {padding-left:40px !important}
#bo_vc.btd-comment-unified .btd-cm-avatar {
    display:block !important;visibility:visible !important;flex:0 0 40px;
    width:40px;height:40px;border-radius:50%;overflow:hidden;
    background:#e2e6e9;margin:0 !important;padding:0 !important;line-height:0;
}
#bo_vc.btd-comment-unified .btd-cm-avatar img {display:block !important;width:40px !important;height:40px !important;max-width:40px !important;max-height:40px !important;object-fit:cover;border-radius:50%}
#bo_vc.btd-comment-unified .btd-cm-body {display:block;flex:1 1 auto;min-width:0;width:auto !important;margin:0 !important;padding:0 !important;background:none !important;border:0 !important;box-shadow:none !important;text-align:left !important}
#bo_vc.btd-comment-unified header.btd-cm-header {display:flex !important;gap:8px;align-items:center;width:100% !important;max-width:100% !important;margin:0 !important;padding:0 !important;border:0 !important;line-height:1.35 !important;font-size:12px;text-align:left !important}
#bo_vc.btd-comment-unified header.btd-cm-header .profile_img {display:none !important}
#bo_vc.btd-comment-unified .btd-cm-name {font-weight:700;font-size:12px;min-width:0}
#bo_vc.btd-comment-unified .btd-cm-ip {font-size:11px;color:#89939a}
#bo_vc.btd-comment-unified .btd-cm-time {margin-left:auto;font-size:11px;font-weight:400;color:#89939a;white-space:nowrap}
#bo_vc.btd-comment-unified .btd-cm-content {
    position:static !important;display:block !important;width:100% !important;
    min-height:0 !important;height:auto !important;margin:8px 0 0 !important;
    padding:0 !important;border:0 !important;border-bottom:0 !important;
    background:none !important;box-shadow:none !important;outline:0 !important;
    color:#29323a !important;font-size:13px !important;line-height:1.65 !important;
    white-space:normal;overflow-wrap:anywhere;text-align:left !important;
}
/* Nested content must not bring back the old 3px horizontal bar. */
#bo_vc.btd-comment-unified .btd-cm-content > *,
#bo_vc.btd-comment-unified .btd-cm-content > * > * {box-shadow:none !important;border-bottom:0 !important;background-image:none !important}
#bo_vc.btd-comment-unified .btd-cm-content::before,
#bo_vc.btd-comment-unified .btd-cm-content::after {content:none !important;display:none !important}
#bo_vc.btd-comment-unified .btd-cm-mention {
    display:inline;font-size:12px;font-weight:700;color:#387b27 !important;
    padding:0;margin-right:5px;text-decoration:none !important;background:none !important;
}
#bo_vc.btd-comment-unified .btd-cm-mention {cursor:text !important;pointer-events:none !important;text-decoration:none !important}
#bo_vc.btd-comment-unified article.btd-cm-item .bo_vl_opt {top:17px !important;right:11px !important}
#bo_vc.btd-comment-unified article.btd-cm-item .bo_vl_opt > button {width:24px;color:#8b949b !important}
#bo_vc.btd-comment-unified .bo_vc_act {top:28px;right:0}
#fviewcomment .btd-cm-reply-target {
    display:flex;gap:10px;align-items:center;margin:8px 0 3px;padding:8px 12px;
    border-radius:6px;background:#f1f3f5;color:#66717b;font-size:12px;
}
#fviewcomment .btd-cm-reply-target[hidden] {display:none !important}
#fviewcomment .btd-cm-reply-target strong {color:#387b27}
#fviewcomment .btd-cm-reply-target button {margin-left:auto;background:none;border:0;color:inherit;cursor:pointer}
body.dark-mode #bo_vc.btd-comment-unified article.btd-cm-item {border-bottom-color:#35393d !important}
body.dark-mode #bo_vc.btd-comment-unified .btd-cm-avatar {background:#343a3e}
body.dark-mode #bo_vc.btd-comment-unified .btd-cm-content {color:#e4e8ea !important}
body.dark-mode #bo_vc.btd-comment-unified .btd-cm-time,body.dark-mode #bo_vc.btd-comment-unified .btd-cm-ip{color:#9fa8ae}
body.dark-mode #bo_vc.btd-comment-unified .btd-cm-mention{color:#8bc900 !important}
body.dark-mode #fviewcomment .btd-cm-reply-target{background:#25292c;color:#adb7bf}
body.dark-mode #fviewcomment .btd-cm-reply-target strong{color:#8bc900}

/* Shared checkbox: one actual input; no decorative duplicate. No responsive breakpoints. */
#fviewcomment .btd-cm-secret-control {
    display:inline-flex !important;align-items:center !important;gap:7px !important;
    margin:0 12px 0 0 !important;padding:0 !important;position:relative !important;
    vertical-align:middle !important;white-space:nowrap !important;
}
#fviewcomment .btd-cm-secret-control input#wr_secret {
    -webkit-appearance:none !important;appearance:none !important;
    display:block !important;visibility:visible !important;opacity:1 !important;
    position:relative !important;inset:auto !important;float:none !important;
    flex:0 0 16px !important;width:16px !important;min-width:16px !important;
    height:16px !important;min-height:16px !important;max-height:16px !important;
    margin:0 !important;padding:0 !important;transform:none !important;
    vertical-align:middle !important;cursor:pointer !important;
    box-sizing:border-box !important;border:1px solid #a5afb7 !important;
    border-radius:4px !important;background:#fff !important;background-image:none !important;
    box-shadow:none !important;outline:none !important;overflow:visible !important;
}
#fviewcomment .btd-cm-secret-control input#wr_secret:checked {
    border-color:#387b27 !important;background:#387b27 !important;
}
#fviewcomment .btd-cm-secret-control input#wr_secret:checked::after {
    content:'' !important;display:block !important;position:absolute !important;
    width:4px !important;height:8px !important;top:1px !important;left:4px !important;
    border:solid #fff !important;border-width:0 2px 2px 0 !important;
    transform:rotate(45deg) !important;background:none !important;box-shadow:none !important;
}
#fviewcomment .btd-cm-secret-control input#wr_secret:focus-visible {
    outline:2px solid #387b27 !important;outline-offset:2px !important;
}
#fviewcomment .btd-cm-secret-control label {
    display:inline-block !important;position:static !important;float:none !important;
    margin:0 !important;padding:0 !important;background:none !important;
    border:0 !important;border-radius:0 !important;box-shadow:none !important;
    color:#56616b !important;font-size:12px !important;line-height:18px !important;
    cursor:pointer !important;white-space:nowrap !important;
}
#fviewcomment .btd-cm-secret-control label::before,
#fviewcomment .btd-cm-secret-control label::after {
    content:none !important;display:none !important;background:none !important;
}
body.dark-mode #fviewcomment .btd-cm-secret-control input#wr_secret {
    border-color:#687179 !important;background:#25292c !important;
}
body.dark-mode #fviewcomment .btd-cm-secret-control input#wr_secret:checked {
    border-color:#8bc900 !important;background:#8bc900 !important;
}
body.dark-mode #fviewcomment .btd-cm-secret-control input#wr_secret:checked::after {
    border-color:#1a2112 !important;
}
body.dark-mode #fviewcomment .btd-cm-secret-control input#wr_secret:focus-visible {
    outline-color:#8bc900 !important;
}
body.dark-mode #fviewcomment .btd-cm-secret-control label {
    color:#b7c0c7 !important;
}

/* Empty reply/edit form anchors must not inherit legacy .bo_vc_w backgrounds. */
#bo_vc.btd-comment-unified .btd-cm-form-slot:empty {display:none !important;border:0 !important;background:none !important;box-shadow:none !important;}
#bo_vc.btd-comment-unified .btd-cm-form-slot:not(:empty) {display:block;border:0 !important;background:transparent !important;box-shadow:none !important;}
#bo_vc.btd-comment-unified .bo_vl_opt {position:absolute !important;right:11px !important;top:17px !important;}
#bo_vc.btd-comment-unified .bo_vc_act {z-index:80;}
#bo_vc.btd-comment-unified .btd-cm-content .btd-cm-mention {white-space:nowrap;}
/* Preserve the existing writer form from each board except the agreed checkbox visual. */

/* V1.2 | Fix actual moving reply/edit form. The same #fviewcomment moves between
   #bo_vc_w, #reply_N, #edit_N; CSS must target the FORM, not its old parent. */
.rb_bbs_wrap form#fviewcomment {
    display:block !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    background:transparent !important;
    color:#29323a !important;
    border:0 !important;
    box-shadow:none !important;
    box-sizing:border-box !important;
}
.rb_bbs_wrap form#fviewcomment textarea#wr_content {
    display:block !important;
    width:100% !important;
    min-width:100% !important;
    max-width:100% !important;
    min-height:150px !important;
    height:150px;
    box-sizing:border-box !important;
    margin:12px 0 0 !important;
    padding:18px 16px !important;
    border:1px solid #dce1e5 !important;
    border-radius:10px 10px 0 0 !important;
    background:#f7f8f9 !important;
    color:#263039 !important;
    caret-color:#263039 !important;
    font-size:14px !important;
    line-height:1.6 !important;
    resize:vertical !important;
    box-shadow:none !important;
    outline:0 !important;
}
.rb_bbs_wrap form#fviewcomment textarea#wr_content:focus {
    background:#fff !important;
    border-color:#9aa8b3 !important;
    box-shadow:none !important;
}
.rb_bbs_wrap form#fviewcomment textarea#wr_content::placeholder {
    color:#87929a !important;
    opacity:1 !important;
}
.rb_bbs_wrap form#fviewcomment .bo_vc_w_wr {
    background:#fff !important;
    border:1px solid #dce1e5 !important;
    border-top:0 !important;
    border-radius:0 0 10px 10px !important;
    color:#56616b !important;
    padding:12px 15px !important;
    box-shadow:none !important;
    box-sizing:border-box !important;
}
.rb_bbs_wrap form#fviewcomment .bo_vc_w_wr .cm_wrpa_write_left,
.rb_bbs_wrap form#fviewcomment .bo_vc_w_wr .cm_wrpa_write_left span {
    color:#66727a !important;
}
.rb_bbs_wrap form#fviewcomment #char_cnt {color:#7a858d !important;}
.rb_bbs_wrap form#fviewcomment button#btn_submit {
    background:#8bc900 !important;
    color:#fff !important;
    border:1px solid #8bc900 !important;
    border-radius:6px !important;
    height:40px !important;
    padding:0 22px !important;
    box-shadow:none !important;
    cursor:pointer !important;
}
body.dark-mode .rb_bbs_wrap form#fviewcomment {color:#e4e8ea !important;}
body.dark-mode .rb_bbs_wrap form#fviewcomment textarea#wr_content,
body.dark-mode .rb_bbs_wrap form#fviewcomment textarea#wr_content:focus {
    background:#202225 !important;
    color:#e8ecee !important;
    caret-color:#e8ecee !important;
    border-color:#383e43 !important;
    box-shadow:none !important;
}
body.dark-mode .rb_bbs_wrap form#fviewcomment textarea#wr_content::placeholder {
    color:#89949e !important;
}
body.dark-mode .rb_bbs_wrap form#fviewcomment .bo_vc_w_wr {
    background:#1e2022 !important;
    border-color:#383e43 !important;
    color:#b7c0c7 !important;
}
body.dark-mode .rb_bbs_wrap form#fviewcomment .bo_vc_w_wr .cm_wrpa_write_left,
body.dark-mode .rb_bbs_wrap form#fviewcomment .bo_vc_w_wr .cm_wrpa_write_left span {
    color:#b1b9bf !important;
}
body.dark-mode .rb_bbs_wrap form#fviewcomment #char_cnt {color:#9ba5ac !important;}
/* Signature has the actual large avatar already; do not display duplicate inline
   default profile icon that get_sideview adds inside the nickname HTML. */
.rb_bbs_wrap .writer_prof .prof_nick .profile_img {display:none !important;}
/* Hide prior/next post navigation in shared-UI boards only. Keep list buttons. */
.rb_bbs_wrap .bo_v_nb {display:none !important;}
