/* ==========================================================
   매직투데이 - 게시판 / 사랑방 / 출석부 새 디자인 (2026-10 2차)
   공지사항, 자주하는 질문, 질문과 답, 사용후기, 자유게시판 등
   기존 게시판 스킨(skin/board/magic) 구조는 그대로 두고 모양만 바꿈
   ========================================================== */
/* ---------- 색 (시안 9 기준) : 라이트 / 다크 ---------- */
:root {
    --ml-bg: #f4f6f8; --ml-top: #ffffff; --ml-card: #ffffff; --ml-input: #f4f6f8; --ml-hover: #f9fafb;
    --ml-ink: #191f28; --ml-text: #333d4b; --ml-sub: #4e5968; --ml-muted: #8b95a1;
    --ml-line: #e5e8eb; --ml-line2: #f0f2f4; --ml-border: #d5dbe1; --ml-soft-line: #bcd7fd;
    --ml-primary: #3182f6; --ml-primary-h: #1b6fe8; --ml-primary-soft: #e8f3ff; --ml-on-primary: #ffffff;
    --ml-red: #f04452; --ml-blue: #3182f6; --ml-ok: #12b886; --ml-danger-soft: #fff1f1;
    --ml-radius: 16px;
    --ml-shadow: 0 24px 60px -28px rgba(20,40,80,.35), 0 2px 6px rgba(20,40,80,.06);
    --ml-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root[data-theme="auto"] {
        --ml-bg: #17191d; --ml-top: #101215; --ml-card: #1e2126; --ml-input: #17191d; --ml-hover: #23272d;
        --ml-ink: #eef0f3; --ml-text: #d5dae0; --ml-sub: #b0b8c1; --ml-muted: #7e8794;
        --ml-line: #2c3037; --ml-line2: #262a30; --ml-border: #3a3f47; --ml-soft-line: #2b4a75;
        --ml-primary: #4b96ff; --ml-primary-h: #6aa8ff; --ml-primary-soft: #1b2a40; --ml-on-primary: #ffffff;
        --ml-red: #ff6b76; --ml-blue: #6aa8ff; --ml-ok: #38d9a9; --ml-danger-soft: #3a1f23;
        --ml-shadow: 0 24px 60px -28px rgba(0,0,0,.7);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --ml-bg: #17191d; --ml-top: #101215; --ml-card: #1e2126; --ml-input: #17191d; --ml-hover: #23272d;
    --ml-ink: #eef0f3; --ml-text: #d5dae0; --ml-sub: #b0b8c1; --ml-muted: #7e8794;
    --ml-line: #2c3037; --ml-line2: #262a30; --ml-border: #3a3f47; --ml-soft-line: #2b4a75;
    --ml-primary: #4b96ff; --ml-primary-h: #6aa8ff; --ml-primary-soft: #1b2a40; --ml-on-primary: #ffffff;
    --ml-red: #ff6b76; --ml-blue: #6aa8ff; --ml-ok: #38d9a9; --ml-danger-soft: #3a1f23;
    --ml-shadow: 0 24px 60px -28px rgba(0,0,0,.7);
    color-scheme: dark;
}

#bo_list, #bo_v, #bo_w, #bo_vc, .bo_vc_w, .pg_wrap, .ml-community, .ml-att,
#bo_list *, #bo_v *, #bo_w *, #bo_vc *, .ml-community *, .ml-att * { font-family: var(--ml-font) !important; letter-spacing: -.01em; }
#bo_list .fa, #bo_v .fa, #bo_w .fa, #bo_vc .fa { font-family: FontAwesome !important; }
.mb-ic { flex: none; vertical-align: middle; }

/* ---------- 버튼 (둥근 모양 + 단순 아이콘) ---------- */
#bo_list .btn, #bo_v .btn, #bo_w .btn, #bo_list a.btn, #bo_v a.btn,
#bo_w .btn_submit, #bo_w .btn_cancel, #bo_vc_w .btn_submit, .bo_vc_w .btn_submit, #bo_w .btn_frmline {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
    height: 40px !important; line-height: 1 !important; padding: 0 14px !important; border-radius: 12px !important;
    border: 1px solid var(--ml-line) !important; background: var(--ml-card) !important; color: var(--ml-sub) !important;
    font-size: 14px !important; font-weight: 500 !important; text-decoration: none !important; cursor: pointer; box-shadow: none !important;
    transition: background .15s, border-color .15s, color .15s; box-sizing: border-box; vertical-align: middle; float: none;
}
#bo_list .btn:hover, #bo_v .btn:hover, #bo_w .btn:hover, #bo_w .btn_cancel:hover, #bo_w .btn_frmline:hover {
    background: var(--ml-primary-soft) !important; border-color: var(--ml-soft-line) !important; color: var(--ml-primary) !important;
}
#bo_list a.btn_b02, #bo_v a.btn_b02, #bo_w .btn_submit, #bo_vc_w .btn_submit, .bo_vc_w .btn_submit {
    background: var(--ml-primary) !important; border-color: var(--ml-primary) !important; color: #fff !important; font-weight: 600 !important;
    box-shadow: 0 8px 18px -10px rgba(49,130,246,.9) !important;
}
#bo_list a.btn_b02:hover, #bo_v a.btn_b02:hover, #bo_w .btn_submit:hover, #bo_vc_w .btn_submit:hover { background: var(--ml-primary-h) !important; color: #fff !important; }
#bo_list button.btn[value="선택삭제"]:hover, #bo_v a.btn[onclick*="del("]:hover { background: var(--ml-danger-soft) !important; border-color: var(--ml-red) !important; color: var(--ml-red) !important; }
#bo_list .btn .mb-ic, #bo_v .btn .mb-ic, #bo_w .btn .mb-ic { width: 17px; height: 17px; }
.btn_bo_user, .bo_v_left, .bo_v_com { display: flex !important; flex-wrap: wrap; gap: 6px; float: none !important; margin: 0 !important; padding: 0 !important; list-style: none; }
.btn_bo_user li, .bo_v_left li, .bo_v_com li { float: none !important; margin: 0 !important; }

/* ---------- 목록 ---------- */
#bo_list { width: 100% !important; }
#bo_list #bo_btn_top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
#bo_list #bo_btn_top:after { display: none; }
#bo_list #bo_list_total { float: none; background: var(--ml-bg); color: var(--ml-muted); font-size: 13px; line-height: 32px; padding: 0 12px; border-radius: 999px; }
#bo_list #bo_list_total span { color: var(--ml-ink); font-weight: 600; margin-right: 4px; }
#bo_list #bo_btn_top .btn_bo_user { margin-left: auto !important; }

#bo_list #bo_cate { background: none; border: 0; padding: 0; margin: 0 0 14px; }
#bo_list #bo_cate ul { display: flex; flex-wrap: wrap; gap: 6px; }
#bo_list #bo_cate li { padding: 0; }
#bo_list #bo_cate a { line-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ml-line); background: var(--ml-card); color: var(--ml-sub); font-size: 14px; }
#bo_list #bo_cate a:hover { background: var(--ml-primary-soft); border-color: var(--ml-soft-line); color: var(--ml-primary); }
#bo_list #bo_cate #bo_cate_on { background: var(--ml-ink); border-color: var(--ml-ink); color: #fff; font-weight: 600; box-shadow: none; }

#bo_list .tbl_wrap { margin: 0; border: 0; }
#bo_list .tbl_head01 table { width: 100%; border: 0 !important; border-collapse: collapse; }
#bo_list .tbl_head01 caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#bo_list .tbl_head01 thead th {
    background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--ml-line) !important;
    color: var(--ml-muted) !important; font-size: 13px !important; font-weight: 500 !important; height: 40px; padding: 0 8px !important; text-align: center;
}
#bo_list .tbl_head01 thead th a { color: var(--ml-muted) !important; text-decoration: none; display: inline-flex; align-items: center; gap: 3px; }
#bo_list .tbl_head01 thead th a:hover { color: var(--ml-primary) !important; }
#bo_list .tbl_head01 thead th .mb-ic { width: 13px; height: 13px; opacity: .6; }
#bo_list .tbl_head01 td {
    height: auto !important; border: 0 !important; border-bottom: 1px solid var(--ml-line2) !important; background: transparent !important;
    padding: 14px 8px !important; font-size: 14px; color: var(--ml-muted); line-height: 1.5;
}
#bo_list tbody tr { border-left: 0 !important; transition: background .12s; }
#bo_list tbody tr:hover { border-left: 0 !important; background: var(--ml-hover); }
#bo_list tbody tr:hover .bo_tit a { color: var(--ml-primary); }
#bo_list .td_subject { text-align: left; }
#bo_list .bo_tit { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-weight: 400 !important; color: var(--ml-ink); }
#bo_list .bo_tit a { font-size: 15px; font-weight: 500; color: var(--ml-ink); text-decoration: none; }
#bo_list .td_num, #bo_list .td_num2, #bo_list .td_datetime { font-variant-numeric: tabular-nums; font-style: normal !important; white-space: nowrap; }
#bo_list .td_name { text-align: center; color: var(--ml-sub); white-space: nowrap; }
#bo_list .td_name .sv_member, #bo_list .td_name a { color: var(--ml-sub); font-weight: 400; }
#bo_list .td_chk { width: 36px; }
#bo_list .cnt_cmt { background: var(--ml-primary-soft) !important; color: var(--ml-primary) !important; font-size: 12px !important; font-weight: 600; height: 20px !important; line-height: 20px !important; padding: 0 7px !important; border-radius: 999px !important; box-shadow: none !important; }
#bo_list .bo_notice td { background: var(--ml-hover) !important; border-bottom-color: var(--ml-line2) !important; }
#bo_list .bo_notice td a { font-weight: 600 !important; }
#bo_list .bo_notice .notice_icon { display: inline-flex; align-items: center; justify-content: center; width: auto; padding: 0 8px; height: 22px; line-height: 22px; border-radius: 999px; background: var(--ml-primary); color: #fff; font-size: 12px; font-weight: 600; }
#bo_list .bo_current { color: var(--ml-primary); font-weight: 600; }
#bo_list .bo_cate_link { height: auto; font-size: 12px; font-weight: 600; color: var(--ml-primary); background: var(--ml-primary-soft); padding: 2px 8px; border-radius: 6px; margin-bottom: 4px; }
#bo_list .bo_tit .new_icon, #bo_list .bo_tit .fa-heart, #bo_list .bo_tit .fa-lock, #bo_list .bo_tit .fa-download, #bo_list .bo_tit .fa-link,
#bo_list .bo_tit .mb-badge { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 20px; height: 20px; padding: 0 5px; border: 0; border-radius: 6px; background: var(--ml-bg); color: var(--ml-muted); font-size: 11px; line-height: 1; box-sizing: border-box; }
#bo_list .bo_tit .new_icon { background: #fff0e6; color: #e8590c; font-weight: 700; }
#bo_list .bo_tit img { vertical-align: middle; }
#bo_list .empty_table { padding: 60px 0 !important; text-align: center; color: var(--ml-muted) !important; }

#bo_list .bo_fx { float: none; display: flex; justify-content: flex-end; margin: 14px 0 0; }
#bo_list .bo_fx:after { display: none; }
#bo_list > form + #bo_sch, #bo_list #bo_sch { float: none; display: inline-flex; margin: 14px 0 0; border: 1px solid var(--ml-line); border-radius: 12px; background: var(--ml-card); overflow: hidden; }
#bo_list #bo_sch form { display: flex; align-items: center; }
#bo_list #bo_sch select { height: 42px !important; margin: 0 !important; border: 0 !important; border-right: 1px solid var(--ml-line) !important; border-radius: 0 !important; background: var(--ml-hover); padding: 0 10px !important; font-size: 14px !important; float: none; }
#bo_list #bo_sch .sch_input { height: 42px !important; border: 0 !important; border-radius: 0 !important; padding: 0 12px !important; font-size: 15px !important; width: 220px; float: none; box-shadow: none !important; }
#bo_list #bo_sch .sch_btn { height: 42px; width: 46px; display: inline-flex; align-items: center; justify-content: center; color: var(--ml-sub); float: none; cursor: pointer; }
#bo_list #bo_sch .sch_btn:hover { color: var(--ml-primary); }
#bo_list #bo_sch:focus-within { border-color: var(--ml-primary); box-shadow: 0 0 0 3px rgba(49,130,246,.15); }

/* 페이지 번호 */
.pg_wrap { clear: both; display: block; margin: 22px 0 4px !important; padding: 0 !important; text-align: center; float: none !important; }
.pg_wrap .pg { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.pg_wrap .pg_page, .pg_wrap .pg_current, .pg_wrap .pg_start, .pg_wrap .pg_end, .pg_wrap .pg_prev, .pg_wrap .pg_next {
    display: inline-flex !important; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px !important; margin: 0 !important;
    border-radius: 10px !important; border: 0 !important; background: transparent !important; color: var(--ml-sub) !important; font-size: 14px !important; font-weight: 500 !important;
    text-indent: 0 !important; overflow: visible !important; text-decoration: none !important; box-sizing: border-box; line-height: 1 !important;
}
.pg_wrap .pg_page:hover { background: var(--ml-bg) !important; color: var(--ml-ink) !important; }
.pg_wrap .pg_current { background: var(--ml-primary) !important; color: #fff !important; font-weight: 600 !important; }

/* ---------- 글 읽기 ---------- */
#bo_v { border: 0 !important; padding: 0 !important; margin: 0 !important; width: 100% !important; }
#bo_v_title { margin: 0 0 10px; }
#bo_v_title .bo_v_cate { display: inline-block; font-size: 12px; font-weight: 600; color: var(--ml-primary); background: var(--ml-primary-soft); padding: 3px 9px; border-radius: 6px; margin-bottom: 8px; }
#bo_v_title .bo_v_tit { display: block; font-size: 22px !important; font-weight: 700 !important; line-height: 1.4; color: var(--ml-ink); letter-spacing: -.025em; }
#bo_v_info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 0 0 16px !important; margin: 0 0 20px !important; border-bottom: 1px solid var(--ml-line) !important; border-top: 0 !important; background: none !important; color: var(--ml-muted); font-size: 14px; }
#bo_v_info h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#bo_v_info strong { font-weight: 400 !important; color: var(--ml-muted); display: inline-flex; align-items: center; gap: 4px; margin: 0 !important; }
#bo_v_info strong:first-of-type { color: var(--ml-ink); font-weight: 600 !important; }
#bo_v_info strong a { color: inherit; display: inline-flex; align-items: center; gap: 4px; }
#bo_v_info .mb-ic { width: 15px; height: 15px; }
#bo_v_info .if_date { margin-left: auto !important; }
#bo_v_atc { min-height: 120px; }
#bo_v_atc_title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#bo_v_con { font-size: 16px !important; line-height: 1.85 !important; color: var(--ml-text); word-break: keep-all; overflow-wrap: anywhere; }
#bo_v_con, #bo_v_con * { font-size: inherit; }
#bo_v_con b, #bo_v_con strong { font-weight: 600; }
#bo_v_con img { max-width: 100%; height: auto; border-radius: 12px; }
#bo_v_act { margin: 24px 0 8px; text-align: center; }
#bo_v_act a, #bo_v_act span.bo_v_good, #bo_v_act span.bo_v_nogood { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ml-line); background: var(--ml-card) !important; color: var(--ml-sub); text-indent: 0; width: auto; }
#bo_v_share { margin: 16px 0 0; }
#bo_v_file, #bo_v_link { margin: 18px 0 0; padding: 0 !important; border: 0 !important; }
#bo_v_file h2, #bo_v_link h2 { font-size: 14px; font-weight: 600; color: var(--ml-sub); margin: 0 0 8px; }
#bo_v_file ul, #bo_v_link ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
#bo_v_file li, #bo_v_link li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 14px !important; border: 1px solid var(--ml-line) !important; border-radius: 12px; background: var(--ml-hover) !important; font-size: 14px; box-shadow: none !important; }
#bo_v_file li a, #bo_v_link li a { color: var(--ml-ink); font-weight: 500; text-decoration: none; }
#bo_v_file .bo_v_file_cnt, #bo_v_link .bo_v_link_cnt { color: var(--ml-muted); font-size: 13px; margin-left: auto; }

#bo_v_top { display: flex !important; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 28px 0 0 !important; padding: 18px 0 0 !important; border-top: 1px solid var(--ml-line); }
#bo_v_top:after { display: none; }
#bo_v_top h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bo_v_nb { margin: 18px 0 0 !important; padding: 0 !important; list-style: none; border: 1px solid var(--ml-line); border-radius: 14px; overflow: hidden; }
.bo_v_nb li { display: flex; align-items: center; gap: 12px; padding: 13px 16px !important; border: 0 !important; border-bottom: 1px solid var(--ml-line) !important; background: var(--ml-card) !important; font-size: 14px; float: none !important; }
.bo_v_nb li:last-child { border-bottom: 0 !important; }
.bo_v_nb li:hover { background: var(--ml-hover) !important; }
.bo_v_nb .nb_tit { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--ml-muted); font-size: 13px; width: 64px; float: none !important; }
.bo_v_nb li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ml-ink); text-decoration: none; float: none !important; }
.bo_v_nb .nb_date { flex: none; color: var(--ml-muted); font-size: 13px; float: none !important; }

/* ---------- 댓글 ---------- */
#bo_vc { margin: 28px 0 0 !important; padding: 0 !important; border: 0 !important; }
.cmt_btn { display: inline-flex; align-items: center; gap: 6px; width: auto !important; margin: 24px 0 10px; padding: 0 !important; border: 0 !important; background: none !important; color: var(--ml-ink); font-size: 16px !important; font-weight: 600 !important; text-align: left; cursor: pointer; }
.cmt_btn:after, .cmt_btn span.total { display: none !important; }
#bo_vc h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#bo_vc article { position: relative; margin: 0 !important; padding: 16px 0 !important; border: 0 !important; border-bottom: 1px solid var(--ml-line2) !important; background: none !important; }
#bo_vc article .comment_info, #bo_vc article header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; background: none !important; padding: 0 !important; border: 0 !important; }
#bo_vc article header .sv_member, #bo_vc article header .member, #bo_vc article header > a { color: var(--ml-ink); font-weight: 600; font-size: 14px; }
#bo_vc .bo_vc_hdinfo { color: var(--ml-muted); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
#bo_vc .bo_vc_hdinfo .mb-ic { width: 14px; height: 14px; }
#bo_vc .cmt_contents { font-size: 15px; line-height: 1.75; color: var(--ml-text); padding: 0 !important; border: 0 !important; background: none !important; }
#bo_vc .cmt_contents p { margin: 0; }
#bo_vc .bo_vc_act { position: static !important; display: flex; gap: 4px; margin: 8px 0 0 !important; padding: 0 !important; list-style: none; }
#bo_vc .bo_vc_act li { float: none !important; margin: 0 !important; }
#bo_vc .bo_vc_act a { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--ml-line) !important; background: var(--ml-card) !important; color: var(--ml-sub) !important; font-size: 13px; text-decoration: none; }
#bo_vc .bo_vc_act a:hover { color: var(--ml-primary) !important; border-color: var(--ml-soft-line) !important; }
#bo_vc #bo_vc_empty { padding: 30px 0; text-align: center; color: var(--ml-muted); }
.bo_vc_w { margin: 16px 0 0; }
.bo_vc_w h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bo_vc_w textarea { width: 100% !important; min-height: 100px; border: 1px solid var(--ml-border) !important; border-radius: 14px !important; padding: 14px !important; font-size: 15px !important; line-height: 1.7 !important; box-sizing: border-box; background: var(--ml-card); resize: vertical; }
.bo_vc_w textarea:focus { outline: none; border-color: var(--ml-primary) !important; box-shadow: 0 0 0 3px rgba(49,130,246,.15); }
.bo_vc_w .bo_vc_w_wr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.bo_vc_w .btn_confirm { display: flex; align-items: center; gap: 8px; margin-left: auto; float: none !important; }
.bo_vc_w .btn_confirm label[for="wr_secret"] { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--ml-line); color: var(--ml-muted); cursor: pointer; background: var(--ml-card); }
.bo_vc_w .frm_input { height: 40px !important; border: 1px solid var(--ml-border) !important; border-radius: 10px !important; padding: 0 10px !important; }

/* ---------- 글쓰기 ---------- */
#bo_w { width: 100% !important; }
#bo_w .write_div { margin: 0 0 12px !important; float: none; }
#bo_w .bo_w_info, #bo_w .bo_w_select { display: flex; flex-wrap: wrap; gap: 8px; }
#bo_w .frm_input, #bo_w select, #bo_w .bo_w_tit .frm_input, #bo_w input[type="text"], #bo_w input[type="password"] {
    height: 46px !important; border: 1px solid var(--ml-border) !important; border-radius: 12px !important; padding: 0 14px !important; font-size: 15px !important; background: var(--ml-card); box-shadow: none !important; box-sizing: border-box;
}
#bo_w .full_input { width: 100% !important; }
#bo_w .bo_w_tit { position: relative; }
#bo_w .bo_w_tit #wr_subject { font-size: 17px !important; font-weight: 500; padding-right: 160px !important; }
#bo_w .bo_w_tit #btn_autosave { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 34px !important; font-size: 13px !important; padding: 0 10px !important; border-radius: 9px !important; }
#bo_w textarea { border: 1px solid var(--ml-border) !important; border-radius: 14px !important; padding: 14px !important; font-size: 15px !important; line-height: 1.8 !important; box-sizing: border-box; width: 100% !important; }
#bo_w .frm_input:focus, #bo_w textarea:focus, #bo_w select:focus { outline: none; border-color: var(--ml-primary) !important; box-shadow: 0 0 0 3px rgba(49,130,246,.15) !important; }
#bo_w .bo_w_link, #bo_w .bo_w_flie { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#bo_w .bo_w_link label, #bo_w .bo_w_flie .lb_icon { position: static !important; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--ml-bg); color: var(--ml-muted); border: 0 !important; line-height: 1 !important; }
#bo_w .bo_w_flie .file_wr { display: flex; align-items: center; gap: 8px; flex: 1; border: 1px solid var(--ml-border) !important; border-radius: 12px !important; padding: 0 0 0 0 !important; height: auto !important; background: var(--ml-card); }
#bo_w .frm_file { padding: 10px !important; font-size: 14px; }
#bo_w .btn_confirm { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px !important; text-align: right; }
#bo_w .btn_confirm .btn { height: 46px !important; padding: 0 22px !important; font-size: 15px !important; }
#bo_w #char_count_desc { color: var(--ml-muted); font-size: 13px; }
#bo_w .bo_w_select label, #bo_w .write_div > label:not(.sound_only) { font-size: 14px; color: var(--ml-sub); }

/* ---------- 사랑방 (최근 글 4칸) ---------- */
.ml-community { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ml-community > .ml-cbox { min-width: 0; }
.ml-community [class^="mw-latest-list-"] { border: 1px solid var(--ml-line) !important; border-radius: 18px; background: var(--ml-card); padding: 18px 20px 10px; height: 100%; box-sizing: border-box; transition: box-shadow .15s, border-color .15s; }
.ml-community [class^="mw-latest-list-"]:hover { border-color: var(--ml-soft-line) !important; box-shadow: var(--ml-shadow); }
.ml-community [class^="mw-latest-list-"] > div { border: 0 !important; }
.ml-community [class^="mw-latest-list-"] .subject { display: flex !important; align-items: center; justify-content: space-between; height: auto !important; margin: 0 0 6px !important; background: none !important; padding: 0 0 12px; border-bottom: 1px solid var(--ml-line); }
.ml-community [class^="mw-latest-list-"] .subject .bo_table,
.ml-community [class^="mw-latest-list-"] .subject .list { float: none !important; margin: 0 !important; }
.ml-community [class^="mw-latest-list-"] .subject .bo_table a { display: inline-flex; align-items: center; gap: 8px; font-size: 17px !important; font-weight: 700 !important; color: var(--ml-ink) !important; letter-spacing: -.02em !important; }
.ml-community [class^="mw-latest-list-"] .subject .bo_table a .mb-ic { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--ml-primary-soft); color: var(--ml-primary); box-sizing: border-box; }
.ml-community [class^="mw-latest-list-"] .subject .list a { display: inline-flex; align-items: center; gap: 2px; font-size: 13px !important; color: var(--ml-muted) !important; letter-spacing: 0 !important; text-decoration: none !important; padding: 4px 8px; border-radius: 8px; }
.ml-community [class^="mw-latest-list-"] .subject .list a:hover { background: var(--ml-bg); color: var(--ml-primary) !important; }
.ml-community [class^="mw-latest-list-"] .subject .list img { display: none; }
.ml-community [class^="mw-latest-list-"] table { width: 100% !important; table-layout: fixed; }
.ml-community [class^="mw-latest-list-"] td { padding: 0 !important; }
.ml-community [class^="mw-latest-list-"] ul { margin: 0 !important; padding: 0 !important; }
.ml-community [class^="mw-latest-list-"] ul li { height: auto !important; padding: 0 !important; background: none !important; border-bottom: 1px solid var(--ml-line2); font-size: 0; line-height: 0; }
.ml-community [class^="mw-latest-list-"] ul li:last-child { border-bottom: 0; }
.ml-community [class^="mw-latest-list-"] ul li a { display: block; padding: 11px 2px; font-size: 15px; line-height: 1.45; color: var(--ml-ink) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none !important; }
.ml-community [class^="mw-latest-list-"] ul li a:hover { color: var(--ml-primary) !important; text-decoration: none !important; }
.ml-community [class^="mw-latest-list-"] ul li strong, .ml-community [class^="mw-latest-list-"] ul li b { font-weight: inherit !important; }
.ml-community [class^="mw-latest-list-"] ul li img { vertical-align: -2px; opacity: .6; }

/* ---------- 출석부 ---------- */
.ml-att { display: grid; gap: 16px; }
.ml-att-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 24px 26px; border-radius: 20px;
    background: radial-gradient(420px 200px at 100% 0, rgba(255,255,255,.55), rgba(255,255,255,0) 70%), linear-gradient(120deg, #eef5ff 0%, #dbe9fd 100%); border: 1px solid var(--ml-soft-line); }
.ml-att-hero h3 { margin: 0 0 4px; font-size: 20px; font-weight: 700; color: var(--ml-ink); letter-spacing: -.02em; }
.ml-att-hero p { margin: 0; color: var(--ml-sub); font-size: 14px; }
.ml-att-date { font-size: 13px; font-weight: 600; color: var(--ml-primary); margin-bottom: 6px; display: inline-flex; align-items: center; gap: 5px; }
.ml-att-big { flex: none; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 26px; background: var(--ml-card); color: var(--ml-primary); box-shadow: 0 16px 34px -18px rgba(49,130,246,.65); }
.ml-att-big b { display: block; font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.ml-att-big small { display: block; font-size: 12px; color: var(--ml-muted); margin-top: 4px; text-align: center; }
.ml-att-form { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 16px; background: var(--ml-card); border: 1px solid var(--ml-line); box-shadow: var(--ml-shadow); }
.ml-att-form label { flex: none; padding: 0 4px 0 10px; color: var(--ml-muted); font-size: 14px; }
.ml-att-form input[type="text"] { flex: 1; min-width: 0; width: auto !important; height: 46px !important; border: 0 !important; border-radius: 10px !important; background: var(--ml-bg) !important; padding: 0 14px !important; font-size: 15px !important; box-shadow: none !important; }
.ml-att-form input[type="text"]:focus { outline: none; background: var(--ml-card) !important; box-shadow: 0 0 0 2px var(--ml-primary) !important; }
.ml-att-form button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--ml-primary); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 18px -10px rgba(49,130,246,.9); font-family: var(--ml-font); }
.ml-att-form button:hover { background: var(--ml-primary-h); }
.ml-att-form button.is-off { background: #c5ccd5; box-shadow: none; }
.ml-att-hint { margin: -8px 0 0 6px; color: var(--ml-muted); font-size: 13px; }
.ml-att-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ml-att-info li { padding: 14px 16px; border-radius: 14px; background: var(--ml-hover); border: 1px solid var(--ml-line); }
.ml-att-info small { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ml-muted); }
.ml-att-info small .mb-ic { width: 15px; height: 15px; color: var(--ml-primary); }
.ml-att-info b { display: block; margin-top: 4px; font-size: 16px; font-weight: 600; color: var(--ml-ink); font-variant-numeric: tabular-nums; }
.ml-att-info em { font-style: normal; font-size: 13px; color: var(--ml-muted); }
.ml-att-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ml-att-bar h4 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ml-ink); }
.ml-att-bar select { height: 38px !important; border-radius: 10px !important; font-size: 14px !important; width: auto !important; margin: 0 !important; }
.ml-att-bar .ml-att-day { color: var(--ml-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.ml-att-bar .ml-att-adm { margin-left: auto; font-size: 13px; color: var(--ml-muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--ml-line); }
.ml-att-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--ml-line); border-radius: 16px; overflow: hidden; background: var(--ml-card); }
.ml-att-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--ml-line2); }
.ml-att-list li:last-child { border-bottom: 0; }
.ml-att-list li:hover { background: var(--ml-hover); }
.ml-att-rank { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ml-bg); color: var(--ml-sub); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ml-att-list li.is-first .ml-att-rank { background: linear-gradient(135deg, #ffd66b, #f4a524); color: #fff; box-shadow: 0 8px 16px -8px rgba(244,165,36,.9); }
.ml-att-list li.is-regular .ml-att-rank { background: #ffe8ec; color: #e0446a; }
.ml-att-who { min-width: 0; }
.ml-att-who .n { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; font-weight: 600; color: var(--ml-ink); }
.ml-att-who .n a, .ml-att-who .n span { font-weight: 600; color: var(--ml-ink); }
.ml-att-who .n time { font-size: 13px; font-weight: 400; color: var(--ml-muted); font-variant-numeric: tabular-nums; }
.ml-att-who .m { margin-top: 2px; font-size: 14px; color: var(--ml-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-att-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 600; background: #fff4db; color: #c27c0e; }
.ml-att-tag.r { background: #ffe8ec; color: #e0446a; }
.ml-att-side { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ml-att-side b { display: block; font-size: 15px; font-weight: 600; color: var(--ml-primary); }
.ml-att-side small { display: block; font-size: 13px; color: var(--ml-muted); }
.ml-att-side a { display: inline-flex; margin-top: 4px; color: var(--ml-muted); }
.ml-att-side a:hover { color: var(--ml-red); }
.ml-att-empty { padding: 50px 16px !important; display: block !important; text-align: center; color: var(--ml-muted); }
.ml-att .pages, .ml-att + .pages { text-align: center; }

/* ---------- 스마트폰 ---------- */
@media (max-width: 860px) {
    #bo_list .tbl_head01 thead { display: none; }
    #bo_list .tbl_head01 table, #bo_list .tbl_head01 tbody { display: block; }
    #bo_list .tbl_head01 tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 13px 4px; border-bottom: 1px solid var(--ml-line2); }
    #bo_list .tbl_head01 td { display: block; padding: 0 !important; border: 0 !important; height: auto !important; width: auto !important; text-align: left !important; }
    #bo_list .tbl_head01 td.td_chk { flex: none; width: 28px !important; }
    #bo_list .tbl_head01 td.td_num2 { display: none; }
    #bo_list .tbl_head01 td.td_subject { flex: 1 1 calc(100% - 40px); min-width: 0; padding-left: 0 !important; }
    #bo_list .tbl_head01 td.td_name, #bo_list .tbl_head01 td.td_num, #bo_list .tbl_head01 td.td_datetime { font-size: 13px; color: var(--ml-muted); }
    #bo_list .tbl_head01 td.td_chk ~ td.td_name { margin-left: 38px; }
    #bo_list .tbl_head01 td.td_num::before { content: "조회 "; }
    #bo_list .tbl_head01 td.empty_table { flex: 1 1 100%; text-align: center !important; }
    #bo_list .bo_tit a { font-size: 15px; }
    #bo_list #bo_sch { display: flex; width: 100%; }
    #bo_list #bo_sch form { width: 100%; }
    #bo_list #bo_sch .sch_input { flex: 1; width: auto; min-width: 0; }
    #bo_list .bo_fx { justify-content: stretch; }
    #bo_list .bo_fx .btn_bo_user { width: 100%; }
    #bo_list .bo_fx .btn_bo_user li { flex: 1 1 auto; }
    #bo_list .bo_fx .btn_bo_user .btn { width: 100%; padding: 0 8px !important; }
    #bo_v_title .bo_v_tit { font-size: 19px !important; }
    #bo_v_info .if_date { margin-left: 0 !important; }
    #bo_v_top { flex-direction: column; }
    #bo_w .bo_w_tit #wr_subject { padding-right: 14px !important; }
    #bo_w .bo_w_tit #btn_autosave { position: static; transform: none; margin-top: 6px; }
    #bo_w .btn_confirm .btn { flex: 1; }

    .ml-community { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .ml-community [class^="mw-latest-list-"] { padding: 16px 16px 6px; }

    .ml-att-hero { padding: 18px; grid-template-columns: minmax(0, 1fr) auto; }
    .ml-att-big { width: 72px; height: 72px; border-radius: 20px; }
    .ml-att-big b { font-size: 22px; }
    .ml-att-form { flex-wrap: wrap; }
    .ml-att-form label { display: none; }
    .ml-att-form input[type="text"] { flex: 1 1 100%; }
    .ml-att-form button { flex: 1 1 100%; justify-content: center; }
    .ml-att-info { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .ml-att-info li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 14px; }
    .ml-att-info b { margin: 0; text-align: right; font-size: 15px; }
    .ml-att-list li { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
    .ml-att-rank { width: 40px; height: 40px; border-radius: 12px; font-size: 13px; }
}

/* 왼쪽 메뉴(도움말) 아이콘 */
#magic-today .side-menu ul li a.mb-side-ic { display: flex; align-items: center; gap: 10px; padding: 9px 12px !important; }
#magic-today .side-menu ul li a.mb-side-ic::before { display: none; }
#magic-today .side-menu ul li a.mb-side-ic .mb-ic { color: var(--ml-muted); }
#magic-today .side-menu ul li a.mb-side-ic:hover .mb-ic { color: var(--ml-primary); }
#magic-today .side-menu ul li a.mb-on { background: var(--ml-primary-soft); color: var(--ml-primary) !important; font-weight: 600; }
#magic-today .side-menu ul li a.mb-on .mb-ic { color: var(--ml-primary); }
@media (max-width: 860px) {
    #magic-today .side-menu ul li a.mb-side-ic { padding: 6px 12px !important; gap: 6px; }
    #magic-today .side-menu ul li a.mb-side-ic .mb-ic { width: 15px; height: 15px; }
}

/* 본문: 예전 편집기의 작은 글자(10pt 등)를 읽기 좋은 크기로 */
#bo_v_con [style*="font-size:8pt"],
#bo_v_con [style*="font-size: 8pt"],
#bo_v_con [style*="font-size:9pt"],
#bo_v_con [style*="font-size: 9pt"],
#bo_v_con [style*="font-size:10pt"],
#bo_v_con [style*="font-size: 10pt"],
#bo_v_con [style*="font-size:11pt"],
#bo_v_con [style*="font-size: 11pt"],
#bo_v_con [style*="font-size:11px"],
#bo_v_con [style*="font-size: 11px"],
#bo_v_con [style*="font-size:12px"],
#bo_v_con [style*="font-size: 12px"],
#bo_v_con [style*="font-size:13px"],
#bo_v_con [style*="font-size: 13px"],
#bo_v_con [style*="font-size:14px"],
#bo_v_con [style*="font-size: 14px"],
#bo_v_con [style*="font-size:x-small"],
#bo_v_con [style*="font-size: x-small"],
#bo_v_con [style*="font-size:small"],
#bo_v_con [style*="font-size: small"] { font-size: 16px !important; }
#bo_v_con font[size="1"], #bo_v_con font[size="2"] { font-size: 16px !important; }
#bo_v_info .if_date, #bo_list .td_datetime { font-style: normal !important; }
#magic-today .main-contents .main-description:has(+ .ml-bbs-title) { display: none !important; }
#bo_v_top .bo_v_nb { flex: 1 1 100%; width: 100%; }
.bo_v_nb .nb_tit { width: auto; min-width: 56px; white-space: nowrap; }
#bo_vc .bo_vc_hdinfo, #bo_vc time { font-style: normal !important; }
#bo_vc article:first-of-type { padding-top: 6px !important; }
#bo_w .bo_w_link { flex-wrap: nowrap; }
#bo_w .bo_w_link .frm_input { flex: 1 1 0; min-width: 0; width: auto !important; }
#bo_w .bo_w_select label, #bo_w .bo_w_select input { vertical-align: middle; }
@media (max-width: 860px) { .ml-att-hero h3 { font-size: 17px; } .ml-att-hero p { font-size: 13px; } }

/* ==========================================================
   2026-10 3차: 시안 9 모양 맞춤 + 다크 모드
   ========================================================== */
#bo_list .btn, #bo_v .btn, #bo_w .btn, #bo_list a.btn, #bo_v a.btn, #bo_w .btn_cancel, #bo_w .btn_frmline {
    border: 0 !important; background: var(--ml-bg) !important; color: var(--ml-ink) !important; border-radius: 10px !important; font-weight: 500 !important;
}
#bo_list .btn:hover, #bo_v .btn:hover, #bo_w .btn:hover, #bo_w .btn_cancel:hover, #bo_w .btn_frmline:hover { background: var(--ml-line2) !important; color: var(--ml-ink) !important; border: 0 !important; }
#bo_list a.btn_b02, #bo_v a.btn_b02, #bo_w .btn_submit, #bo_vc_w .btn_submit, .bo_vc_w .btn_submit { box-shadow: none !important; color: var(--ml-on-primary) !important; background: var(--ml-primary) !important; }
#bo_list a.btn_b02:hover, #bo_v a.btn_b02:hover, #bo_w .btn_submit:hover { background: var(--ml-primary-h) !important; color: var(--ml-on-primary) !important; }
#bo_list button.btn[value="선택삭제"]:hover, #bo_v a.btn[onclick*="del("]:hover { background: var(--ml-danger-soft) !important; color: var(--ml-red) !important; }
#bo_list #bo_list_total { background: var(--ml-bg); }
#bo_list #bo_cate a { border: 0; background: var(--ml-bg); }
#bo_list #bo_cate #bo_cate_on { background: var(--ml-primary); color: var(--ml-on-primary); }
#bo_list .tbl_head01 td { color: var(--ml-muted); border-bottom-color: var(--ml-line) !important; }
#bo_list .tbl_head01 thead th { text-align: left; padding: 8px 10px !important; }
#bo_list .tbl_head01 thead th:first-child, #bo_list .td_chk, #bo_list .td_num2, #bo_list .td_num, #bo_list .td_datetime { text-align: center; }
#bo_list .bo_tit a { color: var(--ml-ink); }
#bo_list .bo_notice td { background: var(--ml-hover) !important; }
#bo_list #bo_sch { border: 1px solid var(--ml-line); background: var(--ml-input); }
#bo_list #bo_sch select { background: transparent !important; border-right: 1px solid var(--ml-line) !important; }
#bo_list #bo_sch .sch_input { background: transparent !important; color: var(--ml-ink) !important; }
#bo_list #bo_sch:focus-within { background: var(--ml-card); box-shadow: none; }
#bo_v_con { color: var(--ml-text); }
#bo_v_con [style*="color:#000"], #bo_v_con [style*="color: #000"], #bo_v_con [style*="color: rgb(0, 0, 0)"], #bo_v_con font[color="#000000"] { color: inherit !important; }
#bo_v_con [style*="background-color: rgb(255, 255, 255)"], #bo_v_con [style*="background-color:#fff"] { background-color: transparent !important; }
#bo_v_file li, #bo_v_link li, .bo_v_nb li { background: var(--ml-bg) !important; border: 0 !important; }
.bo_v_nb { border: 0; display: grid; gap: 6px; }
.bo_v_nb li { border-radius: 12px; }
#bo_vc .bo_vc_act a { border: 0 !important; background: var(--ml-bg) !important; }
.bo_vc_w textarea, #bo_w textarea, #bo_w .frm_input, #bo_w select, .bo_vc_w .frm_input { background: var(--ml-input) !important; border: 1px solid var(--ml-line) !important; color: var(--ml-ink) !important; }
.bo_vc_w textarea:focus, #bo_w textarea:focus, #bo_w .frm_input:focus { background: var(--ml-card) !important; border-color: var(--ml-primary) !important; box-shadow: none !important; }
.bo_vc_w .btn_confirm label[for="wr_secret"] { border: 0; background: var(--ml-bg); }
#bo_w .bo_w_flie .file_wr { background: var(--ml-input); border: 1px solid var(--ml-line) !important; }
#bo_w .bo_w_link label, #bo_w .bo_w_flie .lb_icon { background: var(--ml-bg); }

/* 사랑방: 최근 글 5개만, 아래에 '전체 보기' */
.ml-community [class^="mw-latest-list-"] { border: 1px solid var(--ml-line) !important; border-radius: 16px; background: var(--ml-card); box-shadow: none !important; padding: 18px 20px 14px; display: flex; flex-direction: column; }
.ml-community [class^="mw-latest-list-"]:hover { border-color: var(--ml-line) !important; box-shadow: none; }
.ml-community [class^="mw-latest-list-"] > div { display: flex; flex-direction: column; flex: 1; }
.ml-community [class^="mw-latest-list-"] .subject { border-bottom: 0; padding: 0 0 6px; }
.ml-community [class^="mw-latest-list-"] .subject .list { display: none !important; }
.ml-community [class^="mw-latest-list-"] .subject .bo_table a .mb-ic { background: var(--ml-primary-soft); color: var(--ml-primary); }
.ml-community [class^="mw-latest-list-"] table { flex: 1; }
.ml-community [class^="mw-latest-list-"] ul li { border-bottom-color: var(--ml-line); }
.ml-community [class^="mw-latest-list-"] ul li a { color: var(--ml-ink) !important; padding: 12px 2px; }
.ml-community [class^="mw-latest-list-"] ul li:last-child { border-bottom: 1px solid var(--ml-line); }
.ml-cmore { display: flex; align-items: center; justify-content: center; gap: 4px; height: 42px; margin-top: 12px; border-radius: 10px; background: var(--ml-bg); color: var(--ml-sub) !important; font-size: 14px; font-weight: 500; text-decoration: none !important; }
.ml-cmore:hover { background: var(--ml-line2); color: var(--ml-ink) !important; }
.ml-cmore .mb-ic { width: 15px; height: 15px; }

/* 출석부 */
.ml-att-hero { background: var(--ml-primary-soft); border: 0; }
.ml-att-big { background: var(--ml-card); box-shadow: none; }
.ml-att-form { border: 0; background: var(--ml-bg); box-shadow: none; padding: 6px; }
.ml-att-form input[type="text"] { background: var(--ml-card) !important; }
.ml-att-form button { box-shadow: none; color: var(--ml-on-primary); }
.ml-att-form button.is-off { background: var(--ml-border); }
.ml-att-info li { background: var(--ml-bg); border: 0; }
.ml-att-list { border: 0; background: transparent; border-radius: 0; }
.ml-att-list li { border-bottom: 1px solid var(--ml-line); padding: 13px 4px; }
.ml-att-list li:hover { background: transparent; }
.ml-att-rank { background: var(--ml-bg); color: var(--ml-sub); }
.ml-att-list li.is-first .ml-att-rank { box-shadow: none; }
.ml-att-list li.is-regular .ml-att-rank, .ml-att-tag.r { background: color-mix(in srgb, var(--ml-red) 14%, transparent); color: var(--ml-red); }
.ml-att-tag { background: color-mix(in srgb, #f4a524 18%, transparent); color: #d48806; }
.ml-att-bar .ml-att-adm { border: 0; background: var(--ml-bg); color: var(--ml-sub); }

/* 왼쪽 도움말 메뉴: 스마트폰에서는 2칸 바둑판으로 가지런히 */
@media (max-width: 860px) {
    #magic-today .side-menu ul:not([id]) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    #magic-today .side-menu ul:not([id]) li a.mb-side-ic { justify-content: flex-start; gap: 8px; padding: 0 12px !important; height: 44px; }
    #magic-today .side-menu ul li a.mb-on { background: var(--ml-primary-soft) !important; color: var(--ml-primary) !important; }
    #magic-today .side-menu .book-title:has(.ml-ibtn-title) + ul:not([id]) { border-top: 0; padding-top: 2px !important; }
    .ml-community [class^="mw-latest-list-"] { padding: 16px 16px 12px; }
}
#magic-today .side-menu ul li a.mb-side-ic { border-radius: 10px; }
#magic-today .side-menu ul li a.mb-on { background: var(--ml-card); color: var(--ml-primary) !important; font-weight: 700; }
#magic-today .side-menu ul li a.mb-side-ic .mb-ic { color: currentColor; }

/* 다크 모드: 게시판 안쪽 옛 색 */
:root[data-theme="dark"] #bo_v_con, :root[data-theme="dark"] #bo_v_con * { background-color: transparent !important; }
:root[data-theme="dark"] #bo_v_con [style*="color: rgb(0, 0, 0)"], :root[data-theme="dark"] #bo_v_con [style*="color:#000"], :root[data-theme="dark"] #bo_v_con [style*="color: #000"], :root[data-theme="dark"] #bo_v_con [style*="color:#333"], :root[data-theme="dark"] #bo_v_con [style*="color: rgb(51, 51, 51)"] { color: var(--ml-text) !important; }
:root[data-theme="dark"] #bo_list .bo_tit .new_icon { background: color-mix(in srgb, #e8590c 22%, transparent); color: #ff9a5c; }
:root[data-theme="dark"] .ml-att-list li.is-first .ml-att-rank { background: linear-gradient(135deg, #e0b453, #c98a1c); }
:root[data-theme="dark"] .sv_wrap .sv { background: var(--ml-card) !important; border-color: var(--ml-line) !important; }
:root[data-theme="dark"] .sv_wrap .sv a { color: var(--ml-ink) !important; border-color: var(--ml-line) !important; }

/* ==========================================================
   스마트폰 전용 게시판 스킨(mobile/skin/board/basic) 정리
   ========================================================== */
/* 위 버튼들 (관리자·옵션·글쓰기): 화면 위에 떠 있지 않고 제목 옆 줄에 */
#magic-today .btn_top, #magic-today .btn_bo_user.btn_top {
    position: static !important; display: flex !important; justify-content: flex-end; align-items: center; gap: 6px; margin: -44px 0 12px auto !important; padding: 0 !important;
    width: auto; background: none !important; list-style: none; z-index: auto; float: none !important;
}
#magic-today .btn_top > li { position: relative; float: none !important; margin: 0 !important; }
#magic-today .btn_top > li > .btn, #magic-today .btn_top > li > a, #magic-today .btn_top > li > button {
    display: inline-flex !important; align-items: center; justify-content: center; width: 40px !important; height: 40px !important; padding: 0 !important; margin: 0 !important;
    border: 0 !important; border-radius: 12px !important; background: var(--ml-bg) !important; color: var(--ml-sub) !important; font-size: 16px; line-height: 1 !important; box-shadow: none !important; position: static !important;
}
#magic-today .btn_top > li > a.write_btn, #magic-today .btn_top > li > .fix_btn { background: var(--ml-primary) !important; color: var(--ml-on-primary) !important; }
#magic-today .btn_top .mb-ic { width: 18px; height: 18px; }
#magic-today .btn_top .fa-spin { animation: none !important; }
#magic-today .more_opt, #magic-today #bo_v_share {
    position: absolute !important; right: 0; top: 46px; z-index: 30; min-width: 150px; margin: 0; padding: 6px !important; list-style: none;
    background: var(--ml-card) !important; border: 1px solid var(--ml-line) !important; border-radius: 14px; box-shadow: var(--ml-shadow);
}
#magic-today .more_opt li { float: none !important; width: auto !important; border: 0 !important; margin: 0 !important; }
#magic-today .more_opt li a, #magic-today .more_opt li button {
    display: flex !important; align-items: center; gap: 8px; width: 100%; height: 42px; padding: 0 12px !important; border: 0 !important; border-radius: 10px;
    background: transparent !important; color: var(--ml-ink) !important; font-size: 15px !important; text-align: left; text-decoration: none !important; cursor: pointer;
}
#magic-today .more_opt li a:hover, #magic-today .more_opt li button:hover { background: var(--ml-bg) !important; }
#magic-today .more_opt li button[value="선택삭제"], #magic-today .more_opt li a[onclick*="del("] { color: var(--ml-red) !important; }
#magic-today .more_opt:before, #magic-today .more_opt:after { display: none !important; }

/* 동그란(네모) 선택칸: 실제 체크박스는 숨기고 하나의 둥근 칸만 */
#magic-today .chk_box { position: relative; }
#magic-today .chk_box input[type="checkbox"] { position: absolute !important; left: 0; top: 0; width: 1px !important; height: 1px !important; opacity: 0 !important; margin: 0 !important; }
#magic-today .chk_box label { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 0 !important; cursor: pointer; font-size: 14px; color: var(--ml-sub); line-height: 1; }
#magic-today .chk_box label span { flex: none; display: inline-block !important; position: relative !important; width: 20px !important; height: 20px !important; margin: 0 !important;
    border: 1.5px solid var(--ml-border) !important; border-radius: 6px !important; background: var(--ml-card) !important; box-sizing: border-box; top: auto !important; left: auto !important; }
#magic-today .chk_box input:checked + label span { background: var(--ml-primary) !important; border-color: var(--ml-primary) !important; }
#magic-today .chk_box input:checked + label span:after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); background: none !important; }
#magic-today .chk_box input:focus-visible + label span { box-shadow: 0 0 0 3px rgba(49,130,246,.25); }

/* 목록 */
#magic-today .list_01 { margin: 0; padding: 0; border: 0; }
#magic-today .list_01 .all_chk { display: flex; align-items: center; padding: 4px 2px 10px !important; margin: 0 !important; border-bottom: 1px solid var(--ml-line); position: static !important; }
#magic-today .list_01 > ul { margin: 0 !important; padding: 0 !important; list-style: none; border: 0 !important; }
#magic-today .list_01 > ul > li {
    display: grid !important; grid-template-columns: minmax(0, 1fr); column-gap: 12px; row-gap: 5px; align-items: center;
    position: relative; float: none !important; margin: 0 !important; padding: 15px 2px !important; border: 0 !important; border-bottom: 1px solid var(--ml-line) !important; background: transparent !important; min-height: 0 !important;
}
#magic-today .list_01 > ul > li:has(> .bo_chk) { grid-template-columns: 20px minmax(0, 1fr); }
#magic-today .list_01 > ul > li > .bo_chk { grid-row: 1 / span 2; grid-column: 1; align-self: center; position: static !important; margin: 0 !important; width: 20px; }
#magic-today .list_01 > ul > li > .bo_cnt, #magic-today .list_01 > ul > li > .bo_info { grid-column: -2; min-width: 0; margin: 0 !important; padding: 0 !important; float: none !important; position: static !important; }
#magic-today .list_01 .bo_subject { display: block; font-size: 16px !important; font-weight: 500 !important; line-height: 1.5; color: var(--ml-ink) !important; text-decoration: none !important; word-break: keep-all; overflow-wrap: anywhere; }
#magic-today .list_01 .bo_subject:hover { color: var(--ml-primary) !important; }
#magic-today .list_01 .bo_cnt .cnt_cmt, #magic-today .list_01 .bo_cnt .new_icon, #magic-today .list_01 .bo_cnt .bo_cate_link { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-left: 4px; border-radius: 999px; background: var(--ml-primary-soft); color: var(--ml-primary); font-size: 12px; font-weight: 600; vertical-align: 2px; }
#magic-today .list_01 .bo_info { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px !important; color: var(--ml-muted) !important; }
#magic-today .list_01 .bo_info .sv_member, #magic-today .list_01 .bo_info .sv_guest, #magic-today .list_01 .bo_info a { font-weight: 400 !important; color: var(--ml-sub) !important; font-size: 13px !important; }
#magic-today .list_01 .bo_info > span { display: inline-flex; align-items: center; gap: 3px; margin: 0 !important; }
#magic-today .list_01 .bo_info .mb-ic { width: 13px; height: 13px; }
#magic-today .list_01 li.bo_notice { background: var(--ml-hover) !important; border-radius: 0; }
#magic-today .list_01 .empty_list, #magic-today .list_01 li.empty_list { display: block !important; padding: 50px 0 !important; text-align: center; color: var(--ml-muted); }
#magic-today #bo_list_total { display: inline-block; margin: 14px 0 0; font-size: 13px; color: var(--ml-muted); background: var(--ml-bg); border-radius: 999px; padding: 4px 12px; float: none; }
#magic-today #bo_list_total span { color: var(--ml-ink); font-weight: 600; }
#magic-today fieldset#bo_sch { display: flex; width: 100%; margin: 12px 0 0 !important; padding: 0 !important; border: 1px solid var(--ml-line) !important; border-radius: 12px; background: var(--ml-input) !important; overflow: hidden; box-sizing: border-box; float: none; position: static; }
#magic-today fieldset#bo_sch legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#magic-today fieldset#bo_sch form { display: flex; align-items: center; width: 100%; margin: 0; padding: 0; }
#magic-today fieldset#bo_sch select { flex: none; width: auto !important; height: 44px !important; margin: 0 !important; border: 0 !important; border-right: 1px solid var(--ml-line) !important; border-radius: 0 !important; background: transparent !important; font-size: 14px !important; float: none; }
#magic-today fieldset#bo_sch .sch_input { flex: 1; min-width: 0; width: auto !important; height: 44px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; padding: 0 12px !important; font-size: 15px !important; float: none; }
#magic-today fieldset#bo_sch .sch_btn { flex: none; width: 46px; height: 44px; border: 0; background: transparent; color: var(--ml-sub); display: inline-flex; align-items: center; justify-content: center; position: static; float: none; }

/* 글 읽기 (스마트폰 스킨) */
#magic-today article#bo_v { width: 100% !important; }
#magic-today #bo_v_info { font-size: 13px; color: var(--ml-muted); gap: 4px 10px; }
#magic-today #bo_v_info .sv_member { color: var(--ml-ink); font-weight: 600; }
#magic-today #bo_v_info .ip { color: var(--ml-muted); }
#magic-today .bo_vc_tit { font-size: 16px; font-weight: 600; margin: 24px 0 8px; color: var(--ml-ink); }
#magic-today .bo_vc_tit span { color: var(--ml-primary); }
#magic-today .bo_vc_secret label { font-size: 14px; }

/* 메뉴 탭: 옆으로 더 있다는 표시 (스마트폰) */
.ml-tabs-more { display: none; }
@media (max-width: 860px) {
    #magic-today .main-menu.ml-nav { position: relative; }
    .ml-tabs-more {
        display: flex; align-items: center; justify-content: flex-end; position: absolute; right: -12px; top: 0; width: 64px; height: var(--ml-tabs-h, 42px); padding-right: 10px; box-sizing: border-box;
        background: linear-gradient(90deg, rgba(244,246,248,0) 0%, var(--ml-bg) 55%); border: 0; color: var(--ml-sub); cursor: pointer; z-index: 2; transition: opacity .2s;
    }
    .ml-tabs-more span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ml-card); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
    .ml-tabs-more .mb-ic { width: 16px; height: 16px; }
    .ml-tabs-more.is-left { left: -12px; right: auto; justify-content: flex-start; padding: 0 0 0 10px; background: linear-gradient(270deg, rgba(244,246,248,0) 0%, var(--ml-bg) 55%); }
    .ml-tabs-more.is-hidden { opacity: 0; pointer-events: none; }
    :root[data-theme="dark"] .ml-tabs-more { background: linear-gradient(90deg, rgba(23,25,29,0) 0%, var(--ml-bg) 55%); }
    :root[data-theme="dark"] .ml-tabs-more.is-left { background: linear-gradient(270deg, rgba(23,25,29,0) 0%, var(--ml-bg) 55%); }
    #magic-today .main-description:has(+ .ml-bbs-title) + .ml-bbs-title { margin-top: 4px; }
}
/* 스마트폰 스킨 글 읽기: 안쪽 들여쓰기 없애고 정보줄 굵기 정리 */
#magic-today #bo_v header, #magic-today #bo_v_atc, #magic-today #bo_vc, #magic-today #bo_vc_w { padding-left: 0 !important; padding-right: 0 !important; }
#magic-today #bo_v_atc { padding-top: 4px !important; }
#magic-today #bo_v_con { margin: 0 !important; }
#magic-today #bo_v_info strong { font-weight: 400 !important; color: var(--ml-muted) !important; }
#magic-today #bo_v_info .sv_member { font-weight: 600 !important; color: var(--ml-ink) !important; }
#magic-today #bo_v_info .mb-ic { width: 14px; height: 14px; }
#magic-today .more_opt li { padding: 0 !important; height: auto !important; line-height: 1 !important; }
/* 새 글 모아보기 검색칸 (스마트폰) */
@media (max-width: 860px) {
    fieldset#new_sch { min-width: 0 !important; max-width: 100%; box-sizing: border-box; }
    fieldset#new_sch form { display: flex; flex-wrap: wrap; gap: 6px; }
    fieldset#new_sch select, fieldset#new_sch input[type="text"] { min-width: 0; max-width: 100%; box-sizing: border-box; }
    fieldset#new_sch input[type="text"] { flex: 1 1 120px; width: auto !important; }
}

/* 2026-10-06 (e) 글쓰기 화면 정리 (mt-board.js writeForm) */
#bo_w .cke_sc { display: none !important; }
#bo_w .mt-wlabel { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--ml-sub); }
#bo_w .mt-wlabel small { font-weight: 500; color: var(--ml-muted); margin-left: 6px; font-size: 12px; }
#bo_w .mt-wsec { margin: 0 0 20px !important; }
#bo_w .mt-wlast { margin-bottom: 20px !important; }
#bo_w .mt-wopts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px !important; }
#bo_w .mt-wopts li { list-style: none; margin: 0; padding: 0; float: none; }
#bo_w .mt-wopts input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
#bo_w .mt-wopts label { display: inline-flex !important; align-items: center; gap: 6px; height: 36px; padding: 0 14px !important; border-radius: 999px; border: 1px solid var(--ml-line); background: var(--ml-input); color: var(--ml-sub) !important; font-size: 14px !important; font-weight: 600; cursor: pointer; user-select: none; }
#bo_w .mt-wopts label span { display: none !important; }
#bo_w .mt-wopts label::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--ml-border); box-sizing: border-box; background: var(--ml-card); }
#bo_w .mt-wopts input:checked + label { border-color: var(--ml-primary); color: var(--ml-primary) !important; background: var(--ml-primary-soft); }
#bo_w .mt-wopts input:checked + label::before { background: var(--ml-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--ml-primary); }
#bo_w .mt-wopts input:focus-visible + label { box-shadow: 0 0 0 3px var(--ml-primary-soft); }
#bo_w .wr_content.smarteditor2 { border: 1px solid var(--ml-line); border-radius: 14px; overflow: hidden; background: #fff; }
#bo_w .wr_content.smarteditor2 iframe { display: block; }
#bo_w .bo_w_link label, #bo_w .bo_w_flie .lb_icon { display: none !important; }
#bo_w .bo_w_link, #bo_w .bo_w_flie { margin-bottom: 8px !important; }
#bo_w .bo_w_flie .file_wr { margin: 0 !important; padding: 6px !important; border-radius: 12px !important; border-color: var(--ml-line) !important; }
#bo_w .frm_file { padding: 0 !important; font-size: 14px; color: var(--ml-muted); width: 100%; }
#bo_w .frm_file::file-selector-button { height: 36px; padding: 0 14px; margin-right: 12px; border: 0; border-radius: 9px; background: var(--ml-primary-soft); color: var(--ml-primary); font-weight: 600; font-family: var(--ml-font); font-size: 14px; cursor: pointer; }
#bo_w .frm_file:hover::file-selector-button { background: var(--ml-primary); color: var(--ml-on-primary, #fff); }
#bo_w .file_del { display: block; margin-top: 6px; font-size: 13px; color: var(--ml-muted); }
#bo_w .btn_confirm { border-top: 1px solid var(--ml-line); padding-top: 18px; }

/* ==========================================================
   2026-10-19 다크 모드 마무리: 글 보기 / 댓글 / 글쓰기
   옛 스킨(skin/board/magic/style.css)의 흰 배경을 모든 게시판에서 정리
   ========================================================== */
#bo_v { background: transparent !important; }
#bo_w .wr_content, #bo_w .wr_content.smarteditor2 iframe { background: transparent !important; }
#bo_w .wr_content.smarteditor2 { border: 1px solid var(--ml-border); border-radius: 14px; overflow: hidden; }
.bo_v_nb .nb_tit { color: var(--ml-muted) !important; }
#bo_vc .cmt_contents, #bo_vc article { color: var(--ml-text); }
#autosave_pop { background: var(--ml-card) !important; border: 1px solid var(--ml-line) !important; border-radius: 12px; color: var(--ml-text); box-shadow: var(--ml-shadow); }
#autosave_pop:after { border-bottom-color: var(--ml-card) !important; }
#autosave_pop li { background: var(--ml-hover) !important; border-bottom: 1px solid var(--ml-line) !important; }
#autosave_pop a, #autosave_pop strong { color: var(--ml-ink) !important; }
.autosave_close { color: var(--ml-muted) !important; }
.autosave_close:hover { background: var(--ml-hover) !important; color: var(--ml-primary) !important; }
#bo_w .cke_sc_def { background: var(--ml-card) !important; color: var(--ml-text) !important; border: 1px solid var(--ml-line) !important; border-radius: 12px; }
/* 다크 모드에서 글 안의 어두운 글자색(검정·남색 등)은 mt-board.js 가 표시해 밝게 보여 줌 */
:root[data-theme="dark"] [data-mt-lift] { color: var(--ml-text) !important; }
:root[data-theme="dark"] [data-mt-lift="blue"] { color: var(--ml-blue) !important; }
:root[data-theme="dark"] [data-mt-lift="red"] { color: var(--ml-red) !important; }
:root[data-theme="dark"] [data-mt-lift="green"] { color: var(--ml-ok) !important; }
