/* Keep short values intact and let long titles/URLs use the available width. */
@media(max-width:899px) {
    #bo_list.cb-text-board .td_num2 {
        width:40px;min-width:40px;padding-left:4px;padding-right:8px;
        white-space:nowrap;word-break:normal;overflow-wrap:normal;font-variant-numeric:tabular-nums;
    }
    #bo_list.cb-text-board .bo_tit_ul3>span {white-space:nowrap;word-break:normal;overflow-wrap:normal;}

    /* Only the standard label/title/date markup; custom member/artist links keep their layouts. */
    .s_cont_wrap .bo_v_nb>li:has(>.nb_tit) {
        display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;
        align-items:center;padding:16px 12px;min-width:0;
    }
    .s_cont_wrap .bo_v_nb>li>.nb_tit {grid-column:1;grid-row:1;padding:0;white-space:nowrap;line-height:1.5;}
    .s_cont_wrap .bo_v_nb>li>.nb_date {
        grid-column:2;grid-row:1;float:none;position:static;bottom:auto;
        white-space:nowrap;line-height:1.5;font-size:12px;text-align:right;
    }
    .s_cont_wrap .bo_v_nb>li:has(>.nb_tit)>a {
        grid-column:1/-1;grid-row:2;display:block;float:none;width:auto;min-width:0;max-width:100%;
        height:auto;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;line-height:1.6;
    }

    .s_cont_wrap #bo_v_file li,.s_cont_wrap #bo_v_link li {display:flow-root;min-width:0;box-sizing:border-box;}
    .s_cont_wrap #bo_v_file li>i,.s_cont_wrap #bo_v_link li>i {display:none;}
    .s_cont_wrap #bo_v_file li>br,.s_cont_wrap #bo_v_link li>br {display:none;}
    .s_cont_wrap #bo_v_file a,.s_cont_wrap #bo_v_link a {
        display:block;float:none;clear:both;width:auto;min-width:0;max-width:100%;
        white-space:normal;word-break:normal;overflow-wrap:anywhere;line-height:1.6;
    }
    .s_cont_wrap #bo_v_file a strong,.s_cont_wrap #bo_v_link a strong {white-space:normal;word-break:normal;overflow-wrap:anywhere;}
    .s_cont_wrap #bo_v_file .bo_v_file_cnt,.s_cont_wrap #bo_v_link .bo_v_link_cnt {
        display:block;clear:both;margin-top:8px;font-size:12px;line-height:1.7;
        white-space:normal;word-break:keep-all;overflow-wrap:anywhere;
    }
    .s_cont_wrap #bo_v_file .bo_v_file_cnt:has(>.cb-file-meta-part) {display:flex;flex-wrap:wrap;gap:2px 12px;}
    .s_cont_wrap #bo_v_file .cb-file-meta-part {display:inline-block;white-space:nowrap;word-break:normal;overflow-wrap:normal;}
    .s_cont_wrap #bo_v_file .cb-file-meta-separator {display:none;}

    /* Separate author, counters and date; keep each short value together. */
    .s_cont_wrap #bo_v_info:has(>.profile_info>.profile_info_ct) {
        display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;
        align-items:start;padding:16px 0;
    }
    .s_cont_wrap #bo_v_info:after,.s_cont_wrap #bo_v_top:after {display:none;}
    .s_cont_wrap #bo_v_info .profile_info {float:none;display:block;min-width:0;margin:0;}
    .s_cont_wrap #bo_v_info .profile_info:has(>.pf_img) {
        display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:start;
    }
    .s_cont_wrap #bo_v_info .profile_info .pf_img {float:none;margin:0;}
    .s_cont_wrap #bo_v_info .profile_info .pf_img img {display:block;width:36px;height:36px;}
    .s_cont_wrap #bo_v_info .profile_info .profile_info_ct {
        float:none;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;
        min-width:0;padding:0;line-height:1.5;
    }
    .s_cont_wrap #bo_v_info .profile_info_ct>br {display:none;}
    .s_cont_wrap #bo_v_info .profile_info_ct>strong {
        display:block;flex:0 0 auto;margin:0;font-size:13px;line-height:1.5;
        white-space:nowrap;word-break:normal;overflow-wrap:normal;
    }
    .s_cont_wrap #bo_v_info .profile_info_ct>strong:first-of-type {
        flex-basis:100%;min-width:0;font-size:14px;
        white-space:normal;overflow-wrap:anywhere;
    }
    .s_cont_wrap #bo_v_info .profile_info_ct>.if_date {flex-basis:100%;font-size:12px;}
    .s_cont_wrap #bo_v_info #bo_v_top {float:none;margin:0;padding:0;min-width:0;}
    .s_cont_wrap #bo_v_info #bo_v_top:not(:has(a,button)) {display:none;}
    .s_cont_wrap #bo_v_info #bo_v_top .bo_v_com {
        display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px;float:none;
        width:max-content;max-width:84px;margin:0;
    }
    .s_cont_wrap #bo_v_info #bo_v_top .bo_v_com>li {float:none;margin:0;}
    .s_cont_wrap #bo_v_info #bo_v_top .bo_v_com>li>.btn {
        display:flex;align-items:center;justify-content:center;
        box-sizing:border-box;width:40px;height:40px;padding:0;line-height:1;
    }

    /* Search dialogs must fit small screens, including their input/button row. */
    .s_cont_wrap .bo_sch {
        box-sizing:border-box;left:50%;top:50%;width:calc(100% - 32px);max-width:360px;
        max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);
        margin:0;transform:translate(-50%,-50%);overflow-y:auto;
    }
    .s_cont_wrap .bo_sch form {min-width:0;}
    .s_cont_wrap .bo_sch select {box-sizing:border-box;width:100%;max-width:100%;min-width:0;}
    .s_cont_wrap .bo_sch .sch_bar {display:flex;box-sizing:border-box;align-items:center;min-width:0;}
    .s_cont_wrap .bo_sch .sch_input {box-sizing:border-box;float:none;flex:1 1 0;width:0;min-width:0;height:44px;}
    .s_cont_wrap .bo_sch .sch_btn {float:none;flex:0 0 44px;width:44px;height:44px;}
}
