@charset "utf-8";

/* ── 래퍼 ── */
#bo_timeline { padding-top: 8px; }

/* ── 카테고리 ── */
#bo_cate { margin: 0 0 16px; }
#bo_cate h2 { position: absolute; font-size: 0; overflow: hidden; }
#bo_cate ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
#bo_cate li { display: inline-block; }
#bo_cate a { display: block; padding: 5px 16px; border-radius: 20px; border: 1px solid #e0d6f5; color: #7c5cbf; font-size: 0.8125rem; }
#bo_cate a:hover, #bo_cate .bo_cate_on { background: var(--accent, #ff5a3d); color: #fff; border-color: var(--accent, #ff5a3d); }

/* ── 상단 버튼 ── */
#bo_btn_top { display: flex; align-items: center; justify-content: space-between; margin: 0 0 20px; }
#bo_list_total { font-size: 0.8125rem; color: #999; }
.btn_bo_user { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.btn_bo_user > li { position: relative; }
.btn_bo_user .btn { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; color: #555; cursor: pointer; }
.btn_bo_user .btn:hover { border-color: var(--accent, #ff5a3d); color: var(--accent, #ff5a3d); }
.btn_bo_user .btn svg { width: 16px; height: 16px; }

/* 더보기 드롭다운 */
.btn_more_opt { position: relative; }
.more_opt { display: none; position: absolute; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.08); min-width: 110px; padding: 6px 0; list-style: none; z-index: 100; }
.more_opt li button, .more_opt li a { display: flex; align-items: center; gap: 6px; width: 100%; padding: 7px 14px; background: none; border: none; cursor: pointer; font-size: 0.8125rem; color: #444; white-space: nowrap; text-decoration: none; }
.more_opt li button:hover, .more_opt li a:hover { background: none; color: var(--accent, #ff5a3d); }
.more_opt svg { width: 14px; height: 14px; }

/* ════════════════════════════════════════════
   타임라인 목록
════════════════════════════════════════════ */
.tl-list {
    list-style: none;
    margin: 8px 0 24px;
    padding: 0;
    position: relative;
}

/* 중앙 세로선 */
.tl-list::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent 0, #d1d5db 32px, #d1d5db calc(100% - 16px), transparent 100%);
    pointer-events: none;
}

/* 빈 상태 */
.tl-empty {
    padding: 60px 0;
    text-align: center;
    color: #aaa;
    font-size: 0.875rem;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

/* ── 연월 구분자 ── */
.tl-sep {
    display: flex;
    justify-content: center;
    position: relative;
    margin: 28px 0 20px;
    z-index: 1;
}
.tl-yearmon-badge {
    display: inline-block;
    background: #3a3a3a;
    color: #fff;
    padding: 5px 20px;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    position: relative;
    z-index: 1;
}

/* ── 타임라인 아이템 ── */
.tl-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 28px;
    gap: 0;
}

/* 카드 컬럼 */
.tl-col-card {
    flex: 1;
    min-width: 0;
}
.tl-col-left  { padding-right: 12px; }
.tl-col-right { padding-left: 12px; }

/* 중앙 컬럼 (프로필 노드) */
.tl-col-center {
    flex: 0 0 80px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10px;
    position: relative;
    z-index: 1;
}

/* 날짜 컬럼 */
.tl-col-date {
    flex: 1;
    min-width: 0;
    padding-top: 28px;
}
.tl-col-date-left  { padding-right: 12px; text-align: right; }
.tl-col-date-right { padding-left: 12px; text-align: left; }

/* ── 노드 (프로필 이미지) ── */
.tl-node {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--accent, #ff5a3d);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #d1d5db;
    overflow: hidden;
    flex-shrink: 0;
}
.tl-node img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.tl-node-initial {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.tl-node-notice {
    box-shadow: 0 0 0 2px #7c5cbf;
    background: #7c5cbf;
}

/* ── 날짜 정보 ── */
.tl-date-info {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem;
    color: #888;
    font-family: 'Roboto', sans-serif;
}
.tl-date-info .fa { font-size: 0.75rem; color: #bbb; }

/* ── 카드 ── */
.tl-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s, transform .15s;
}
.tl-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.09);
    transform: translateY(-2px);
}

/* 썸네일 */
.tl-thumb-link {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eee;
    text-decoration: none;
    margin-bottom: 20px;
}
.tl-thumb-link img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.tl-card:hover .tl-thumb-link img { transform: scale(1.04); }

/* 썸네일 아래 컨택트 섀도우 */
.tl-body {
    position: relative;
    padding: 14px 16px;
}
.tl-body::before {
    content: '';
    position: absolute;
    top: -20px; left: 0; right: 0;
    height: 20px;
    background: url('../../../img/shadow2.png') no-repeat center / 100% 100%;
    pointer-events: none;
}
/* 이미지 없는 카드: 컨택트 섀도우 제거 */
.tl-card-noimg .tl-body::before { display: none; }

/* 제목 */
.tl-title {
    margin: 0 0 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.45;
    word-break: break-all;
}
.tl-title a { color: #1a1a1a; text-decoration: none; }
.tl-title a:hover { color: var(--accent, #ff5a3d); }
.tl-badge-notice {
    display: inline-block; padding: 1px 6px;
    background: var(--accent, #ff5a3d); color: #fff;
    font-size: 0.7rem; font-weight: 700; border-radius: 3px;
    margin-right: 4px; vertical-align: middle;
}

/* 발췌 */
.tl-excerpt {
    margin: 0 0 10px;
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.65;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 하단 */
.tl-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.75rem;
    color: #999;
    padding-top: 10px;
    border-top: 1px dashed #ebebeb;
}
.tl-byline { display: flex; align-items: center; gap: 5px; }
.tl-author { color: #555; font-weight: 600; }
.tl-bysep  { color: #d1d5db; }
.tl-ca     { color: #7c5cbf; }
.tl-stats  { display: flex; gap: 8px; }
.tl-stats span { display: flex; align-items: center; gap: 3px; }

/* ── 검색 모달 ── */
.bo_sch_wrap { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.35); backdrop-filter: blur(2px); }
.bo_sch { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: #fff; border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,.15); width: 440px; max-width: calc(100vw - 32px); padding: 0; overflow: hidden; }
.bo_sch_hd { display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; }
.bo_sch_hd h3 { margin: 0; font-size: 1rem; font-weight: 600; flex: 1; }
.bo_sch_hd .bo_sch_ic svg { width: 18px; height: 18px; color: var(--accent, #ff5a3d); }
.bo_sch_cls { background: none; border: none; cursor: pointer; padding: 4px; color: #aaa; }
.bo_sch_cls svg { width: 20px; height: 20px; }
.bo_sch form { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.bo_sch legend { display: none; }
.bo_sch select { width: 100%; height: 42px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 0 12px; font-size: 0.875rem; }
.sch_bar { display: flex; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.sch_input { flex: 1; height: 42px; border: none; padding: 0 14px; font-size: 0.875rem; outline: none; }
.sch_btn { width: 44px; height: 42px; border: none; background: none; color: #888; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sch_btn svg { width: 16px; height: 16px; }
.bo_sch_bg { display: none; }

/* ── 하단 버튼 ── */
.bo_fx { display: flex; justify-content: flex-end; margin-top: 8px; }

/* ── 페이지네이션 ── */
.pg_wrap { margin: 20px 0; }

/* ════════════════════════════════════════════
   모바일 반응형 (767px 이하)
   → 왼쪽 라인 + 단일 컬럼
════════════════════════════════════════════ */
@media (max-width: 767px) {
    .tl-list::before {
        left: 34px;
        transform: none;
    }

    .tl-sep { justify-content: flex-start; padding-left: 68px; margin: 20px 0 12px; }

    .tl-item {
        flex-direction: row !important;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    /* 중앙 → 왼쪽 고정 */
    .tl-col-center {
        flex: 0 0 68px !important;
        padding-top: 6px;
    }

    /* 날짜 컬럼 숨김 */
    .tl-col-date { display: none; }

    /* 카드 컬럼: 항상 오른쪽 */
    .tl-col-card {
        flex: 1;
        padding-left: 8px !important;
        padding-right: 0 !important;
        order: 2 !important;
    }
    .tl-col-center { order: 1 !important; }

    .tl-card { border-radius: 8px; }
    .tl-thumb-link { aspect-ratio: 16/9; }
    .tl-title { font-size: 0.875rem; }
    .tl-excerpt { font-size: 0.8125rem; -webkit-line-clamp: 2; }

    /* 모바일에서 날짜를 footer에 표시 */
    .tl-footer { flex-direction: column; align-items: flex-start; gap: 4px; }
    .tl-footer-row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
}

/* ════════════════════════════════════════════
   뷰 페이지
════════════════════════════════════════════ */
#bo_v { margin-top: 24px; margin-bottom: 24px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,.06); overflow: hidden; }
#bo_v > header { padding: 24px 28px 18px; border-bottom: 1px solid #f3f4f6; }
#bo_v_title { margin: 0; }
#bo_v_title .bo_v_cate { display: inline-block; padding: 2px 10px; background: #f0ece8; color: var(--accent, #ff5a3d); font-size: 0.75rem; font-weight: 700; border-radius: 20px; margin-bottom: 8px; vertical-align: middle; }
#bo_v_title .bo_v_tit { display: block; font-size: 1.2rem; font-weight: 700; color: #111; line-height: 1.5; margin: 4px 0 0; word-break: break-all; }
#bo_v_info { display: flex; align-items: center; justify-content: space-between; padding: 12px 28px; background: #f9fafb; border-bottom: 1px solid #f3f4f6; font-size: 0.8125rem; color: #666; }
#bo_v_info h2 { position: absolute; font-size: 0; overflow: hidden; }
#bo_v_info .profile_info { display: flex; align-items: center; gap: 10px; margin: 0; float: none; }
#bo_v_info .profile_info .pf_img { float: none; margin: 0; }
#bo_v_info .profile_info .pf_img img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
#bo_v_info .profile_info .profile_info_ct { float: none; padding: 0; line-height: 1.6; }
#bo_v_info .profile_info .profile_info_ct strong { display: inline; margin-right: 8px; font-weight: 600; color: #222; }
#bo_v_info .profile_info .profile_info_ct a { color: inherit; text-decoration: none; }
#bo_v_info .profile_info .profile_info_ct a:hover { color: var(--accent, #ff5a3d); }
#bo_v_info .if_date { color: #aaa; margin: 0; }
#bo_v_info strong { display: inline; font-weight: normal; }
#bo_v_top { float: none; }
#bo_v_top:after { display: none; }
.bo_v_com { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; float: none; }
.bo_v_com > li { float: none; position: relative; margin: 0; background: none; width: auto; }
.bo_v_com .btn { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 20px; border-radius: 6px; border: 1px solid #d1d5db; background: #fff; color: #555; font-size: 0.8125rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, border-color .15s; text-decoration: none; white-space: nowrap; }
.bo_v_com .btn:hover { background: #f3f4f6; color: #333; }
.bo_v_com a.btn[title="목록"], .bo_v_com a.btn[title="답변"] { border-color: #7c5cbf; color: #7c5cbf; }
.bo_v_com a.btn[title="목록"]:hover, .bo_v_com a.btn[title="답변"]:hover { background: #7c5cbf; color: #fff; border-color: #7c5cbf; }
.bo_v_com a.btn[title="글쓰기"], .bo_v_com a.btn[title="스크랩"] { border-color: #ff5a3d; color: #ff5a3d; }
.bo_v_com a.btn[title="글쓰기"]:hover, .bo_v_com a.btn[title="스크랩"]:hover { background: #ff5a3d; color: #fff; border-color: #ff5a3d; }
.bo_v_com .btn_more_opt { border-color: #ff5a3d; color: #ff5a3d; }
.bo_v_com .btn_more_opt:hover { background: #ff5a3d; color: #fff; border-color: #ff5a3d; }
.bo_v_com .more_opt { top: 40px; right: 0; min-width: 90px; }
#bo_v_atc { padding: 24px 28px; }
#bo_v_atc_title { position: absolute; font-size: 0; overflow: hidden; }
#bo_v_share { padding: 0 0 16px; }
#bo_v_con { font-size: 0.9375rem; line-height: 1.85; color: #333; word-break: break-word; overflow: hidden; min-height: 160px; }
#bo_v_con img { max-width: 100%; height: auto; border-radius: 8px; }
#bo_v_con a { color: var(--accent, #ff5a3d); text-decoration: underline; }
#bo_v_act { margin-top: 28px; text-align: center; }
#bo_v_act .bo_v_good, #bo_v_act .bo_v_nogood { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #e5e7eb; border-radius: 30px; width: auto; padding: 8px 20px; line-height: 1; color: #555; font-size: 0.875rem; transition: border-color .15s, color .15s; }
#bo_v_act .bo_v_good:hover { border-color: var(--accent, #ff5a3d); color: var(--accent, #ff5a3d); }
#bo_v_act .bo_v_nogood:hover { border-color: #6b7280; color: #6b7280; }
.bo_v_nb { position: relative; margin: 20px 0; clear: both; text-align: left; list-style: none; padding: 0; }
.bo_v_nb:after { display: block; visibility: hidden; clear: both; content: ""; }
.bo_v_nb li { border-top: 1px solid #f1f1f1; padding: 13px; display: block; }
.bo_v_nb li:last-child { border-bottom: 1px solid #f1f1f1; }
.bo_v_nb li:hover { background: #f6f6f6; }
.bo_v_nb li i { font-size: 13px; color: #b3b3b3; }
.bo_v_nb .nb_tit { display: inline-block; padding-right: 20px; color: #b3b3b3; width: auto; flex-shrink: unset; }
.bo_v_nb a { color: #333; text-decoration: none; flex: unset; overflow: visible; white-space: normal; }
.bo_v_nb a:hover { color: var(--accent, #ff5a3d); }
.bo_v_nb .nb_date { float: right; color: #b3b3b3; font-size: 0.8125rem; flex-shrink: unset; }

/* ════════════════════════════════════════════
   댓글 목록 #bo_vc
════════════════════════════════════════════ */
#bo_vc { margin: 0; padding: 0; }
#bo_vc h2, #bo_vc h1 { position: absolute; font-size: 0; overflow: hidden; }
.cmt_btn { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; border-top: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6; background: none; font-size: 0.9375rem; font-weight: 700; color: #111; padding: 16px 28px; margin: 0; cursor: default; box-sizing: border-box; }
.cmt_btn b { font-size: 1rem; color: #111; }
.cmt_btn span.total { color: var(--accent, #ff5a3d); font-size: 0.875rem; font-weight: 700; }
.cmt_btn span.total:after { display: none; }
.cmt_btn span.cmt_more { display: none; }
#bo_vc article { display: flex; gap: 12px; margin: 16px 28px; padding-bottom: 16px; border-bottom: 1px solid #f3f4f6; position: relative; }
#bo_vc article:after { display: none; }
#bo_vc article .pf_img { flex-shrink: 0; float: none; margin: 0; width: 38px; height: 38px; border-radius: 50%; background: #e5e7eb; overflow: hidden; display: flex; align-items: center; justify-content: center; }
#bo_vc article .pf_img img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: block; }
#bo_vc article .pf_img img[src=""], #bo_vc article .pf_img img:not([src]) { display: none; }
#bo_vc article .cm_wrap { float: none; width: auto; flex: 1; min-width: 0; }
#bo_vc header { position: relative; width: 100%; }
#bo_vc header:after { display: none; }
#bo_vc header .profile_img { display: none; }
#bo_vc .member, #bo_vc .sv_member { font-weight: 700; color: #222; font-size: 0.875rem; }
#bo_vc .guest, #bo_vc .sv_guest { font-weight: 700; color: #555; font-size: 0.875rem; }
.bo_vc_hdinfo { font-size: 0.75rem; color: #aaa; margin-left: 6px; }
.bo_vl_opt { position: absolute; top: 0; right: 0; }
.bo_vc_act { display: none; position: absolute; top: 28px; right: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.1); list-style: none; margin: 0; padding: 4px 0; min-width: 80px; z-index: 999; }
.bo_vc_act:before, .bo_vc_act:after { display: none; }
.bo_vc_act li { border-bottom: 1px solid #f3f4f6; padding: 0; float: none; width: auto; margin: 0; }
.bo_vc_act li:last-child { border-bottom: none; }
.bo_vc_act li a { display: block; padding: 8px 14px; font-size: 0.8125rem; color: #555; }
.bo_vc_act li a:hover { color: var(--accent, #ff5a3d); background: #fafafa; }
#bo_vc .cmt_contents { margin-top: 6px; font-size: 0.875rem; line-height: 1.7; color: #333; padding: 0 0 4px; word-break: break-word; }
#bo_vc_empty { padding: 60px 28px !important; text-align: center; color: #aaa; font-size: 0.875rem; margin: 0; }
#bo_vc #bo_vc_winfo { float: none; }
#bo_vc header .icon_reply { position: absolute; top: 4px; left: -18px; font-size: 0.75rem; color: #ccc; }

/* ════════════════════════════════════════════
   댓글 입력 폼 .bo_vc_w
════════════════════════════════════════════ */
.bo_vc_w { display: block; padding: 16px 20px; background: #f8f9fb; border: 1px solid #edf0f3; border-radius: 12px; box-sizing: border-box; }
.bo_vc_w:empty { display: none; }
.bo_vc_w h2 { position: absolute; font-size: 0; overflow: hidden; }
.bo_vc_w textarea { width: 100%; height: 88px; padding: 12px 14px; border: 1px solid #e2e5ea; border-radius: 8px; font-size: 0.875rem; line-height: 1.6; color: #2e3540; background: #fff; resize: vertical; box-sizing: border-box; box-shadow: none; transition: border-color .15s; }
.bo_vc_w textarea:focus { outline: none; border-color: var(--accent, #ff5a3d); }
.bo_vc_w .bo_vc_w_wr { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; flex-wrap: wrap; gap: 8px; }
.bo_vc_w .bo_vc_w_info { margin: 0; float: none; }
.bo_vc_w .bo_vc_w_info:after { display: none; }
.bo_vc_w .frm_input { height: 34px; padding: 0 10px; border: 1px solid #e2e5ea; border-radius: 6px; font-size: 0.8125rem; background: #fff; float: none; margin-right: 6px; }
.bo_vc_w .btn_confirm { display: flex; align-items: center; gap: 8px; margin: 0; clear: none; float: none; }
.bo_vc_w .secret_cm { float: none; }
.bo_vc_w .secret_cm label { font-size: 0.8125rem !important; color: #666; }
.bo_vc_w .btn_submit { height: 34px; padding: 0 18px; border: none; border-radius: 8px; background: var(--accent, #ff5a3d); color: #fff; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: opacity .15s; white-space: nowrap; }
.bo_vc_w .btn_submit:hover { opacity: .88; }
#bo_vc_w.bo_vc_w { margin: 0 28px 28px; }
#bo_vc article .bo_vc_w { margin-top: 12px; background: #f0f4f8; border-color: #e0e7ef; }

/* ════════════════════════════════════════════
   글쓰기 폼 #bo_w
════════════════════════════════════════════ */
#bo_w { border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,.06); overflow: hidden; margin-top: 20px; background: #fff; }
#bo_w .bo_w_header { display: flex; align-items: center; gap: 10px; padding: 18px 24px; border-bottom: 1px solid #f0f0f0; }
#bo_w .bo_w_header h2 { margin: 0; font-size: 1.0625rem; font-weight: 700; }
#bo_w .bo_w_header svg { width: 22px; height: 22px; color: var(--accent, #ff5a3d); }
#bo_w .write_div { padding: 16px 24px; border-bottom: 1px solid #f0f0f0; }
#bo_w .bo_w_label { display: block; font-size: 0.8125rem; font-weight: 600; color: #555; margin-bottom: 6px; }
#bo_w .frm_input { width: 100%; height: 44px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 0 14px; font-size: 0.875rem; box-sizing: border-box; }
#bo_w .frm_input:focus { border-color: var(--accent, #ff5a3d); outline: none; box-shadow: 0 0 0 3px rgba(255,90,61,.08); }
#bo_w .bo_w_tit #autosave_wrapper { position: relative; display: flex; align-items: center; gap: 8px; }
#bo_w .bo_w_tit #autosave_wrapper #wr_subject { flex: 1; }
#bo_w .bo_w_tit #btn_autosave { flex-shrink: 0; height: 44px; padding: 0 14px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; font-size: 0.8rem; color: #777; cursor: pointer; white-space: nowrap; }
#bo_w .bo_w_tit #btn_autosave:hover { border-color: var(--accent, #ff5a3d); color: var(--accent, #ff5a3d); }
#autosave_pop { position: absolute; top: 48px; right: 0; left: auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.1); z-index: 100; padding: 8px 0; min-width: 220px; }
#bo_w .bo_w_content_div textarea.wr_content,
#bo_w .bo_w_content_div .wr_content textarea { border: 0; outline: none; resize: vertical; width: 100%; box-sizing: border-box; font-size: 0.875rem; padding: 4px 0; }
#bo_w .bo_v_option { padding: 12px 24px 16px; }
#bo_w .bo_v_option .chk_box input[type="checkbox"].selec_chk { display: none; }
#bo_w .bo_v_option .chk_box input[type="checkbox"]:checked + label span { background: var(--accent, #ff5a3d); border-color: var(--accent, #ff5a3d); }
#bo_w .btn_submit { height: 44px; padding: 0 28px; background: var(--accent, #ff5a3d); color: #fff; border: none; border-radius: 10px; font-size: 0.9375rem; font-weight: 600; cursor: pointer; }
#bo_w .btn_submit:hover { background: #e54a2e; }
#bo_w .btn_cancel { height: 44px; padding: 0 24px; background: #fff; color: #555; border: 1px solid #d1d5db; border-radius: 10px; font-size: 0.9375rem; cursor: pointer; }
#bo_w .btn_cancel:hover { border-color: #aaa; }

/* ── 글쓰기 박스 (talkbox 폼 이식) ── */
.tb-write-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.tb-wb-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
}
.tb-wb-avatar img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.tb-wb-no-profile {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e5e7eb;
}
.tb-wb-fake {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    color: #bbb;
    font-size: 0.875rem;
    cursor: pointer;
    background: #f9fafb;
    display: flex;
    align-items: center;
    transition: background .15s;
}
.tb-wb-fake:hover { background: #f3f4f6; }
#tb_write_form { flex: 1; min-width: 0; }
.tb-wb-body { width: 100%; }
.tb-wb-textarea {
    width: 100%;
    min-height: 60px;
    padding: 9px 13px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.875rem;
    font-family: inherit;
    resize: none;
    box-sizing: border-box;
    transition: border-color .2s;
    outline: none;
    background: #f9fafb;
    color: #333;
}
.tb-wb-textarea:focus {
    border-color: var(--accent, #ff5a3d);
    background: #fff;
}
.tb-wb-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.tb-wb-cat {
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.8125rem;
    outline: none;
    cursor: pointer;
    background: #fff;
    font-family: inherit;
}
.tb-wb-full {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #666;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    transition: background .15s;
}
.tb-wb-full:hover { background: #f3f4f6; color: #333; }
.tb-wb-full svg { width: 13px; height: 13px; }
.tb-wb-submit {
    margin-left: auto;
    height: 32px;
    padding: 0 16px;
    background: var(--accent, #ff5a3d);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity .2s;
}
.tb-wb-submit:hover { opacity: .85; }
.tb-wb-submit svg { width: 13px; height: 13px; }

/* 파일 첨부 */
.tb-wb-files {
    display: flex;
    gap: 8px;
    margin: 8px 0 2px;
}
.tb-wb-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 12px;
    border: 1px dashed #d0d0d0;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #888;
    cursor: pointer;
    transition: border-color .15s, color .15s;
    max-width: 160px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.tb-wb-file-btn:hover { border-color: var(--accent, #ff5a3d); color: var(--accent, #ff5a3d); }
.tb-wb-file-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.tb-wb-file-input { display: none; }
.tb-wb-file-btn.has-file { border-color: #7c5cbf; color: #7c5cbf; border-style: solid; }

@media (max-width: 600px) {
    .tb-wb-avatar { width: 38px; height: 38px; }
    .tb-wb-avatar img { width: 38px !important; height: 38px !important; }
    .tb-wb-full { display: none; }
}
