@charset "utf-8";

/* =====================================================
   레퍼런스: E:\last_backup\betmoa\quasar
   $primary:  #333333
   $accent:   #12d5d3
   $negative: #134e4a
   .outline-accent-bottom: border-bottom 2px solid #12d5d3
   .outline-primary: border 2px solid #444444, border-radius 10px
   hoverColor: #c10114
   ===================================================== */

.bm-board-shell {
    --bm-accent:   #12d5d3;
    --bm-primary:  #333333;
    --bm-negative: #134e4a;
    --bm-hover:    #c10114;
    --bm-ink:      #e0e0e0;
    --bm-muted:    #a0a0a0;
    --bm-line:     #333333;
    --bm-bg:       #222222;
    color: var(--bm-ink);
    background: var(--bm-bg);
}

/* theme default.css의 #bm-content h2 장식효과가 board hidden h2에 섞이는 문제 차단 */
#bm-content #bo_v h2,
#bm-content #bo_list h2,
#bm-content #bo_cate h2,
#bm-content #bo_v_info h2,
#bm-content #bo_v_top h2,
#bm-content #bo_v_bot h2,
#bm-content #bo_v_file h2,
#bm-content #bo_v_link h2,
#bm-content #bo_vc h2,
#bm-content #bo_vc_w h2 {
    background: none !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
}

.bm-board-shell a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.bm-board-list,
.bm-board-view {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* 기본 스킨의 #bo_v 흰 배경을 modern view에서 강제 차단 */
#bo_v.bm-board-view {
    background: #222222 !important;
}

#bo_v.bm-board-view #bo_v_top ul {
    background: transparent !important;
}

#bo_v.bm-board-view #bo_v_atc {
    background: #222222;
}

/* =====================================================
   community_free 레퍼런스형 상단 (배너 + 공지)
   ===================================================== */
.bm-board-ref-top {
    margin: 0 0 8px;
    border: 1px solid #333333;
    background: #2b2b2b;
}

.bm-board-ref-hero {
    display: block;
    min-height: 0;
    background: #2b2b2b;
}

.bm-board-ref-hero-art {
    width: 100%;
}

.bm-board-ref-hero-art picture {
    display: block;
    width: 100%;
}

.bm-board-ref-hero-art img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.bm-board-ref-notice-wrap {
    margin-top: 5px;
    padding: 8px 12px 10px;
    border: 1px solid #333333 !important;
    background: #222222 !important;
}

.bm-board-ref-notice-title {
    margin: 0 0 6px;
    color: #12d5d3;
    font-size: 18px;
    font-weight: 700;
    background: #303030;
    padding: 4px 8px;
}

.bm-board-ref-notice-title i {
    margin-right: 5px;
}

.bm-board-ref-notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bm-board-ref-notice-list li {
    display: block;
    padding: 6px 0;
}

.bm-board-ref-notice-list li + li {
    border-top: 1px solid #303030;
}

.bm-board-ref-notice-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.bm-board-ref-notice-main {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.bm-board-ref-notice-subject {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #d9d9d9;
    font-size: 15px;
    font-weight: 700;
}

.bm-board-ref-notice-comment {
    flex-shrink: 0;
    color: #e53935;
    font-size: 15px;
    font-weight: 700;
}

.bm-board-ref-notice-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
    color: #8f8f8f;
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}

.bm-board-ref-notice-link:hover .bm-board-ref-notice-subject {
    color: #12d5d3;
}

/* =====================================================
   게시판 헤더
   레퍼런스: bg-accent(#12d5d3) 외곽 + bg-primary(#333333) 내부
             + border-bottom: 2px solid #12d5d3 (outline-accent-bottom)
   ===================================================== */
.bm-board-hero {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0 0 0;
    padding: 0;
    background: var(--bm-accent);
    border: 0;
    overflow: hidden;
}

.bm-board-hero > div:first-child {
    flex: 1;
    margin-left: 4px;
    padding: 6px 8px;
    background: var(--bm-primary);
    border-bottom: 2px solid var(--bm-accent);
}

.bm-board-kicker {
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

.bm-board-title {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.bm-board-description {
    display: none;
}

.bm-board-hero-stat {
    padding: 6px 12px;
    background: var(--bm-primary);
    border-left: 1px solid var(--bm-accent);
    border-bottom: 2px solid var(--bm-accent);
    text-align: center;
}

.bm-board-hero-stat strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.bm-board-hero-stat span {
    display: block;
    font-size: 11px;
    color: var(--bm-muted);
}

/* =====================================================
   카테고리
   ===================================================== */
.bm-board-cate {
    margin: 0 0 8px !important;
}

.bm-board-cate li {
    padding: 2px !important;
}

.bm-board-cate a,
.bm-board-cate #bo_cate_on {
    border-radius: 4px !important;
    border-color: var(--bm-line) !important;
    background: var(--bm-primary);
    color: var(--bm-muted);
    font-weight: 700;
}

.bm-board-cate a:hover,
.bm-board-cate a:focus,
.bm-board-cate #bo_cate_on {
    background: var(--bm-negative) !important;
    border-color: var(--bm-accent) !important;
    color: #ffffff !important;
}

/* =====================================================
   툴바 (전체 N / M페이지 + 검색/쓰기 버튼)
   레퍼런스: justify-between, bg-negative 버튼
   ===================================================== */
.bm-board-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 4px 0 4px !important;
    padding: 0;
}

.bm-board-toolbar #bo_list_total {
    padding: 4px 0;
    color: var(--bm-muted);
    font-size: 14px;
}

.bm-board-toolbar #bo_list_total span {
    color: #ffffff;
    font-weight: 700;
}

.bm-board-toolbar .btn_bo_user {
    float: none;
    margin: 0 0 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
}

.bm-board-toolbar .btn_bo_user li,
.bm-board-footer .btn_bo_user li,
.bm-view-actions-wrap .btn_bo_user li {
    width: auto;
    margin-left: 4px;
    background: transparent;
}

/* 버튼: bg-negative + 흰 텍스트 (레퍼런스 검색/쓰기 버튼) */
.bm-board-toolbar .btn,
.bm-board-footer .btn,
.bm-view-actions-wrap .btn {
    min-width: 36px;
    height: 34px;
    border: 0;
    border-radius: 4px;
    background: var(--bm-negative);
    color: #ffffff;
    box-shadow: none;
}

.bm-board-toolbar .btn:hover,
.bm-board-footer .btn:hover,
.bm-view-actions-wrap .btn:hover {
    background: var(--bm-accent);
    color: var(--bm-primary);
}

.bm-board-list .more_opt.is_list_btn {
    top: 40px;
    right: 0;
    border: 1px solid #333333;
    background: #222222 !important;
}

.bm-board-list .more_opt.is_list_btn:before {
    border-color: transparent transparent #333333 transparent;
}

.bm-board-list .more_opt.is_list_btn:after {
    border-color: transparent transparent #222222 transparent;
}

.bm-board-list .more_opt.is_list_btn li {
    width: 120px;
    padding: 8px 10px;
    border-bottom: 1px solid #303030;
    background: #222222;
}

.bm-board-list .more_opt.is_list_btn li:last-child {
    border-bottom: 0;
}

.bm-board-list .more_opt.is_list_btn li button,
.bm-board-list .more_opt.is_list_btn li a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    border: 0;
    background: #222222;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
}

.bm-board-list .more_opt.is_list_btn li i {
    float: none;
    margin-left: auto;
    line-height: 1;
}

.bm-board-list .more_opt.is_list_btn li:hover a,
.bm-board-list .more_opt.is_list_btn li:hover button {
    color: #ffffff;
    opacity: 0.9;
}

.bm-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 11px;
    font-size: 12px;
    font-weight: 700;
}

.bm-toolbar-btn-label {
    display: inline-block;
    line-height: 1;
}

/* =====================================================
   테이블 패널
   ===================================================== */
.bm-board-panel {
    border: 0;
    background: var(--bm-primary);
    box-shadow: none;
}

.bm-board-table-wrap {
    overflow: hidden;
}

.bm-board-table-head th {
    background: var(--bm-primary);
    border-bottom: 1px solid var(--bm-accent);
    color: var(--bm-muted);
    font-size: 13px;
    font-weight: 700;
}

/* =====================================================
   리스트 테이블
   레퍼런스 ListText.vue <style>:
   table { border: 1px solid #333333 }
   th { background: #333333 }
   tr:hover { background: #333333 }
   div.title:hover { color: #12d5d3; font-weight: bold }
   tr { border-bottom: 1px solid #333333 }
   ===================================================== */
.bm-board-list table {
    margin-bottom: 0;
    border-top: 1px solid #333333;
    border-right: 1px solid #333333;
    border-left: 1px solid #333333;
    border-collapse: collapse;
    width: 100%;
}

.bm-board-list tbody td {
    border-bottom: 1px solid #333333;
    padding-top: 10px;
    padding-bottom: 10px;
    vertical-align: middle;
    color: var(--bm-ink);
    background: #222222 !important;
}

.bm-board-list tbody tr {
    background: #222222 !important;
}

.bm-board-list tbody .even td {
    background: #222222 !important;
}

/* hover: #333333 배경 */
.bm-board-list tbody tr:hover {
    border-left-color: transparent !important;
    background: #222222;
}

@media (max-width: 991px) {
    .bm-board-list tr.bm-mobile-row-link {
        cursor: pointer;
    }
}

.bm-board-list .bo_notice td {
    background: #222222 !important;
    border-bottom-color: #333333;
}

/* 공지 배지 */
.bm-board-list .notice_icon {
    padding: 3px 7px;
    border-radius: 2px;
    background: var(--bm-negative);
    color: #ffffff;
    font-size: 11px;
}

.bm-board-list .td_subject {
    padding-right: 10px;
}

.bm-board-list .td_datetime {
    width: 98px !important;
    min-width: 98px;
    text-align: center;
    white-space: nowrap;
}

.bm-board-list th:last-child,
.bm-board-list td.td_num:last-child {
    width: 56px !important;
    min-width: 56px;
    white-space: nowrap;
    word-break: keep-all;
}

.bm-board-list .td_name {
    white-space: nowrap;
    width: 179px;
}

.bm-writer-with-level {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
    padding-left: 5px;
}

.bm-level-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.bm-level-chip-grade { background: #f39c12; color: #ffffff; }
.bm-level-chip-number {
    width: auto;
    min-width: 21px;
    padding: 0 6px;
    background: #0f6f67;
    color: #ffffff;
}
.bm-level-chip-grade {
    width: 21px;
    height: 21px;
    min-width: 21px;
    min-height: 21px;
    flex-shrink: 0;
}
.bm-level-grade-1 { background: #616161; color: #ffffff; }
.bm-level-grade-2 { background: #42A5F5; color: #ffffff; }
.bm-level-grade-3 { background: #66BB6A; color: #ffffff; }
.bm-level-grade-4 { background: #AB47BC; color: #ffffff; }
.bm-level-grade-5 { background: #FFA726; color: #111111; }
.bm-level-grade-6 { background: #8b5cf6; color: #ffffff; }
.bm-level-grade-7 { background: #ec4899; color: #ffffff; }
.bm-level-grade-8 { background: #22c55e; color: #082b14; }
.bm-level-grade-9 { background: #f97316; color: #111111; }
.bm-level-grade-10 { background: #111827; color: #fef08a; }
.bm-level-icon-img {
    display: inline-block;
    width: 25px;
    height: 25px;
    border-radius: 3px;
    object-fit: cover;
    vertical-align: middle;
    flex-shrink: 0;
}

.bm-writer-admin .bm-admin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background-color: transparent;
    background-image: url('../../../img/favicon-32x32.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border: 0;
    color: transparent;
    font-size: 0;
    line-height: 1;
    flex-shrink: 0;
}

.bm-writer-admin .bm-admin-icon i {
    display: none;
}

.bm-writer-admin .bm-writer-nick {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap;
    font-size: 12px;
}

.bm-writer-nick {
    color: #d7d7d7;
    display: inline-block;
    min-width: 0;
    max-width: calc(100% - 52px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform-origin: left center;
    font-size: 15px;
    line-height: 1.5;
}

.bm-writer-nick-over {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
}

.bm-board-list .bo_cate_link {
    margin-right: 6px;
    border-radius: 2px;
    background: #1a3a38;
    color: var(--bm-accent);
    font-size: 12px;
    font-weight: 700 !important;
}

/* 제목 링크 */
.bm-board-list .bo_tit > a {
    color: var(--bm-ink);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

/* 제목 hover: color #12d5d3 + font-weight bold */
.bm-board-list .bo_tit > a:hover {
    color: var(--bm-accent);
    font-weight: bold;
    text-decoration: none;
}

#bo_list.bm-board-list .cnt_cmt {
    margin-left: 4px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #e53935 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    height: auto !important;
    min-width: 0 !important;
    vertical-align: middle;
    border-radius: 0 !important;
    display: inline !important;
}

#bo_list.bm-board-list .bo_tit .new_icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 3px;
    border-radius: 2px;
    background: #e53935 !important;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

/* =====================================================
   메타 (작성자, 날짜, 조회)
   ===================================================== */
.bm-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 4px;
    color: var(--bm-muted);
    font-size: 12px;
}

.bm-list-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.bm-list-meta-author {
    color: var(--bm-ink);
}

.bm-list-meta-date {
    margin-left: auto;
}

.bm-mobile-meta {
    display: none;
}

/* =====================================================
   페이지네이션
   레퍼런스: color="negative", active-color="negative" (#134e4a)
             font-weight bold
   ===================================================== */
.bm-board-pagination {
    margin: 0;
    padding: 16px;
    text-align: center;
}

.bm-board-pagination .pg_page,
.bm-board-pagination .pg_current,
.bm-board-pagination .pg_first,
.bm-board-pagination .pg_start,
.bm-board-pagination .pg_prev,
.bm-board-pagination .pg_next,
.bm-board-pagination .pg_last,
.bm-board-pagination .pg_end {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 32px;
    margin: 0 2px;
    border: 1px solid #333333;
    border-radius: 4px;
    background: var(--bm-primary);
    color: var(--bm-ink);
    font-weight: 700;
    font-size: 14px;
}

.bm-board-pagination .pg_first,
.bm-board-pagination .pg_prev,
.bm-board-pagination .pg_next,
.bm-board-pagination .pg_last {
    min-width: 28px;
    padding: 0 8px;
    font-weight: 700;
}

.bm-board-pagination .pg_current,
.bm-board-pagination .pg_page:hover,
.bm-board-pagination .pg_start:hover,
.bm-board-pagination .pg_prev:hover,
.bm-board-pagination .pg_next:hover,
.bm-board-pagination .pg_end:hover {
    border-color: var(--bm-negative);
    background: var(--bm-negative);
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}

.bm-board-pagination .pg_first.disabled,
.bm-board-pagination .pg_prev.disabled,
.bm-board-pagination .pg_next.disabled,
.bm-board-pagination .pg_last.disabled {
    border-color: #2a2a2a;
    background: #2a2a2a;
    color: #6f6f6f;
    cursor: default;
    pointer-events: none;
}

/* =====================================================
   푸터
   ===================================================== */
.bm-board-footer {
    float: none;
    margin-top: 8px;
}

/* =====================================================
   글보기 제목 영역
   레퍼런스 ViewPage.vue:
   q-card flat > q-card-section
   → div.row.text-weight-bold.q-px-sm.q-py-sm (fontSize 1.2rem)
   ===================================================== */
.bm-view-title-wrap {
    margin: 0;
    padding: 7px 10px 8px;
    border: 0;
    border-bottom: 1px solid #333333;
    background: var(--bm-primary);
    box-shadow: none;
}

.bm-view-kicker {
    display: none;
}

.bm-view-title-wrap .bo_v_cate {
    padding: 2px 6px;
    border-radius: 2px;
    background: #1a3a38;
    color: var(--bm-accent);
    font-size: 12px;
    font-weight: 700;
}

/* 제목: text-weight-bold, fontSize 1.2rem */
.bm-view-title-wrap .bo_v_tit {
    margin-top: 0 !important;
    margin-bottom: 5px !important;
    color: #ffffff;
    font-size: 21px !important;
    font-weight: 700;
    line-height: 1.35;
}

.bm-view-summary {
    display: none;
}

/* =====================================================
   글보기 메타 영역 1 (작성자 + 날짜)
   레퍼런스: bg-primary q-py-sm q-px-md
   → 닉네임 왼쪽, 날짜 오른쪽, fontSize 14px
   ===================================================== */
.bm-view-head {
    margin-bottom: 0 !important;
    padding: 0;
    border-top: 0;
    background: var(--bm-primary);
}

.bm-view-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    border-bottom: 1px solid #333333;
}

.bm-view-author {
    min-width: 0;
    flex: 1;
}

.bm-view-created {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--bm-muted);
}

.bm-view-ip {
    margin-left: 8px;
    color: #8f8f8f;
    font-size: 12px;
}

.bm-view-writer-with-level {
    width: auto;
    max-width: 100%;
    padding-left: 0;
}

.bm-view-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 6px 10px;
    border-bottom: 1px solid #333333;
    background: #222222 !important;
}

/* =====================================================
   글보기 상단 버튼 (목록/수정/삭제)
   레퍼런스: q-py-sm q-px-md + q-btn flat + 목록 버튼 grey-8
   ===================================================== */
.bm-view-actions-wrap {
    float: none !important;
    flex-shrink: 0;
    margin-top: 0;
    padding: 0;
    border-bottom: 0;
    background: transparent;
}

.bm-view-actions-wrap .bo_v_com {
    float: none;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0;
    list-style: none;
    margin: 0;
}

.bm-view-actions-wrap .bo_v_com > li {
    float: none !important;
    margin: 0 5px 0 0 !important;
    width: auto !important;
    background: transparent !important;
}

.bm-view-actions-wrap .bo_v_com > li:last-child {
    margin-right: 0 !important;
}

#bo_v.bm-board-view .bm-view-actions-wrap .btn {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

#bo_v.bm-board-view .bm-view-actions-wrap .btn:hover {
    background: transparent !important;
    color: var(--bm-accent);
}

#bo_v.bm-board-view .bm-view-actions-wrap .btn .bm-list-btn-text {
    display: inline-block;
    margin-left: 4px;
    font-size: 14px;
    line-height: 1;
    vertical-align: top;
    position: relative;
    top: -1px;
}

/* 관리자 드롭다운: 세로 목록 유지 + 텍스트는 가로 표시 */
#bo_v.bm-board-view .bm-view-actions-wrap .more_opt.is_view_btn {
    min-width: 110px;
    background: #222222 !important;
    border: 1px solid #333333 !important;
    border-color: #333333 !important;
}

#bo_v.bm-board-view .bm-view-actions-wrap .more_opt.is_view_btn li {
    width: 100%;
    word-break: keep-all;
    background: #222222 !important;
    border-bottom-color: #333333 !important;
}

#bo_v.bm-board-view .bm-view-actions-wrap .more_opt.is_view_btn li a,
#bo_v.bm-board-view .bm-view-actions-wrap .more_opt.is_view_btn li button {
    white-space: nowrap;
    word-break: keep-all;
    writing-mode: horizontal-tb;
    background: #222222 !important;
    color: #ffffff !important;
}

#bo_v.bm-board-view .bm-view-actions-wrap .more_opt.is_view_btn li:hover a,
#bo_v.bm-board-view .bm-view-actions-wrap .more_opt.is_view_btn li:hover button {
    color: var(--bm-accent) !important;
}

.bm-view-stats {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.bm-view-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--bm-muted);
    font-size: 13px;
}

.bm-view-stat i {
    font-size: 13px;
}

.bm-view-stat:hover {
    color: var(--bm-accent);
}

.bm-view-trackback {
    margin-left: auto;
    color: #7d7d7d;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
}

/* =====================================================
   글보기 본문
   레퍼런스: outline-primary q-mt-md view
   → border: 2px solid #444444, border-radius: 10px, minHeight 360px
   ===================================================== */
.bm-view-content-panel {
    min-height: 0 !important;
    margin: 6px 0 0;
    padding: 10px 10px 12px;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    background: var(--bm-primary);
}

.bm-view-share {
    padding: 8px 0 6px !important;
    border-bottom: 1px solid #333333;
    margin-bottom: 8px;
}

#bo_v.bm-board-view .bm-view-share:empty {
    display: none;
}

.bm-view-share .btn {
    border-radius: 4px;
    border-color: #333333;
    background: var(--bm-primary);
    color: var(--bm-ink);
}

/* 본문 텍스트 */
.bm-view-content {
    margin: 0 !important;
    color: var(--bm-ink);
    font-size: 15px;
    line-height: 1.65;
}

/* 본문 내 링크 */
.bm-view-content a {
    color: var(--bm-accent) !important;
}

/* =====================================================
   추천/비추천
   ===================================================== */
.bm-view-vote {
    margin-bottom: 8px !important;
    padding-top: 10px;
}

.bm-view-vote .bo_v_good,
.bm-view-vote .bo_v_nogood {
    width: auto !important;
    min-width: 100px;
    padding: 0 14px;
    border-color: #444 !important;
    color: var(--bm-ink);
}

/* =====================================================
   첨부파일 / 관련링크
   ===================================================== */
.bm-view-section {
    margin: 8px 0 0;
    padding: 8px 14px;
    background: var(--bm-primary);
    border: 1px solid #333333;
    border-radius: 4px;
}

.bm-view-section li {
    color: var(--bm-ink);
}

/* =====================================================
   이전글 / 다음글
   ===================================================== */
.bm-view-neighbors {
    margin: 8px 0 0;
    border-top: 1px solid #333333;
    background: var(--bm-primary);
}

.bm-view-neighbors li {
    padding: 10px 14px;
    border-bottom: 1px solid #333333;
    color: var(--bm-ink);
}

.bm-view-neighbors li:hover {
    background: var(--bm-bg);
    color: var(--bm-accent);
}

/* =====================================================
   댓글/입력 박스: 레퍼런스 view 페이지 톤
   ===================================================== */
#bo_v.bm-board-view .cmt_btn {
    width: 100%;
    margin: 8px 0 6px;
    padding: 7px 8px;
    border: 1px solid #333333;
    background: #2a2a2a;
    color: #d9d9d9;
    font-size: 13px;
}

#bo_v.bm-board-view .cmt_btn .total b {
    color: #ffffff;
}

#bo_v.bm-board-view .cmt_btn .bm-cmt-count {
    color: #e53935;
    font-size: 1.2em;
    padding-left: 3px;
}

#bo_v.bm-board-view .cmt_btn .cmt_more,
#bo_v.bm-board-view .cmt_btn .total:after {
    display: none !important;
}

#bo_v.bm-board-view #bo_vc {
    margin: 0 0 8px;
}

#bo_v.bm-board-view #bo_vc article {
    margin: 0 0 6px !important;
    padding: 8px 10px;
    border: 1px solid #333333;
    background: #222222;
}

#bo_v.bm-board-view #bo_vc article .pf_img {
    display: none;
}

#bo_v.bm-board-view #bo_vc article .cm_wrap {
    float: none;
    width: 100%;
    max-width: none;
}

#bo_v.bm-board-view #bo_vc header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

/* 댓글 좌상단 잔표시(답글 아이콘) 제거 */
#bo_v.bm-board-view #bo_vc header .icon_reply {
    display: none !important;
}

#bo_v.bm-board-view #bo_vc .member,
#bo_v.bm-board-view #bo_vc .guest,
#bo_v.bm-board-view #bo_vc .sv_member,
#bo_v.bm-board-view #bo_vc .sv_guest {
    color: #d7d7d7;
    font-weight: 700;
}

#bo_v.bm-board-view #bo_vc .bm-comment-name {
    color: #d7d7d7;
    font-weight: 700;
}

#bo_v.bm-board-view #bo_vc .bm-comment-writer .bm-writer-with-level {
    width: auto;
    max-width: 100%;
    padding-left: 0;
    gap: 5px;
}

#bo_v.bm-board-view #bo_vc .bm-comment-writer .bm-level-icon-img {
    display: inline-block !important;
}

#bo_v.bm-board-view #bo_vc .bm-comment-writer .bm-writer-nick {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    max-width: none;
}

/* 기본/사이드뷰 CSS에서 끼어드는 앞쪽 아이콘/가상요소 완전 차단 */
#bo_v.bm-board-view .bm-view-author .member:before,
#bo_v.bm-board-view .bm-view-author .member:after,
#bo_v.bm-board-view .bm-view-author .sv_member:before,
#bo_v.bm-board-view .bm-view-author .sv_member:after,
#bo_v.bm-board-view #bo_vc .member:before,
#bo_v.bm-board-view #bo_vc .member:after,
#bo_v.bm-board-view #bo_vc .sv_member:before,
#bo_v.bm-board-view #bo_vc .sv_member:after {
    content: none !important;
    display: none !important;
}

#bo_v.bm-board-view #bo_vc .member img,
#bo_v.bm-board-view #bo_vc .sv_member img,
#bo_v.bm-board-view #bo_vc .profile_img {
    display: none !important;
}

/* legacy/basic css 장식요소 완전 차단 */
#bo_v.bm-board-view .bm-view-author:before,
#bo_v.bm-board-view .bm-view-author:after,
#bo_v.bm-board-view #bo_vc article:before,
#bo_v.bm-board-view #bo_vc article:after,
#bo_v.bm-board-view #bo_vc header:before,
#bo_v.bm-board-view #bo_vc header:after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    background: none !important;
}

#bo_v.bm-board-view #bo_vc header img:not(.bm-level-icon-img) {
    display: none !important;
}

/* 답글 들여쓰기 인라인 스타일 제거(좌측 이상 표시 방지) */
#bo_v.bm-board-view #bo_vc article {
    margin-left: 0 !important;
}

#bo_v.bm-board-view #bo_vc .bo_vc_hdinfo {
    color: #7f7f7f;
    font-size: 12px;
}

#bo_v.bm-board-view #bo_vc .cmt_contents {
    padding: 2px 0 0;
    color: #d7d7d7;
    line-height: 1.6;
}

#bo_v.bm-board-view #bo_vc .cmt_contents p {
    margin: 0;
}

#bo_v.bm-board-view #bo_vc .bm-comment-reply-text {
    color: #12d5d3;
    font-size: 13px;
    font-weight: 500;
}

#bo_v.bm-board-view #bo_vc .bm-comment-reply-text:hover {
    color: #89f0ee;
}

#bo_v.bm-board-view #bo_vc .bm-comment-head-side {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

#bo_v.bm-board-view #bo_vc .bm-comment-bottom-actions {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

#bo_v.bm-board-view #bo_vc .bm-comment-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 26px;
    padding: 0 8px;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    background: #242424;
    color: #d7d7d7;
    font-size: 12px;
    font-weight: 700;
}

#bo_v.bm-board-view #bo_vc .bm-comment-action-edit {
    background: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
}

#bo_v.bm-board-view #bo_vc .bm-comment-action-edit:hover {
    background: #14b8a6;
    border-color: #14b8a6;
    color: #062a27;
}

#bo_v.bm-board-view #bo_vc .bm-comment-action-delete {
    background: #991b1b;
    border-color: #991b1b;
    color: #ffffff;
}

#bo_v.bm-board-view #bo_vc .bm-comment-action-delete:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

#bo_v.bm-board-view #bo_vc_empty {
    padding: 40px 0 !important;
}

#bo_v.bm-board-view #bo_vc_w > h2,
#bo_v.bm-board-view #bo_vc_w .secret_cm {
    display: none !important;
}

.bm-view-bottom-list {
    margin: 10px 0 0;
    border: 1px solid #333333;
    background: #222222;
}

.bm-view-bottom-head {
    padding: 6px 10px;
    border-bottom: 1px solid #333333;
    color: #b5b5b5;
    font-size: 13px;
}

.bm-view-bottom-head strong {
    color: #ffffff;
}

.bm-view-bottom-table-wrap {
    overflow-x: auto;
}

.bm-view-bottom-table {
    width: 100%;
    border-collapse: collapse;
}

.bm-view-bottom-table th {
    padding: 7px 8px;
    border-bottom: 1px solid #333333;
    color: #b5b5b5;
    font-size: 12px;
    font-weight: 700;
    background: #2a2a2a;
}

.bm-view-bottom-table td {
    padding: 8px;
    border-bottom: 1px solid #2f2f2f;
    color: #d7d7d7;
    font-size: 13px;
}

.bm-view-bottom-table .td_subject a:hover {
    color: var(--bm-accent);
}

.bm-view-bottom-toolbar .btn_bo_user .bm-toolbar-btn {
    min-width: 36px;
    height: 34px;
    padding: 0 11px;
    font-size: 12px;
}

.bm-view-bottom-toolbar {
    margin-top: 10px !important;
}

.bm-view-bottom-list .cnt_cmt {
    margin-left: 4px;
    color: #e53935 !important;
    font-size: 15px;
    font-weight: 700;
}

.bm-view-bottom-list .td_subject > .bo_cate_link {
    float: left;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    line-height: 20px;
    margin: 0 6px 0 0;
    padding: 0 8px;
    border-radius: 2px;
    background: #1a3a38;
    color: var(--bm-accent);
    font-size: 12px;
    font-weight: 700 !important;
    vertical-align: middle;
}

.bm-view-bottom-list .td_subject > .bo_cate_link:hover {
    text-decoration: none;
    color: var(--bm-accent);
}

.bm-view-bottom-pagination {
    padding-top: 10px;
}

.bm-view-bottom-banner-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.bm-view-bottom-banner-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #333333;
    border-radius: 10px;
    background: #181818;
    padding: 10px;
}

.bm-view-bottom-banner-thumb {
    flex: 0 0 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #111111;
}

.bm-view-bottom-banner-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bm-view-bottom-banner-body {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}

.bm-view-bottom-banner-title {
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #efefef;
    font-size: 14px;
    font-weight: 600;
}

.bm-view-bottom-banner-title:hover {
    color: var(--bm-accent);
}

.bm-view-bottom-banner-type {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    height: 24px;
    border-radius: 999px;
    background: #1a3a38;
    color: var(--bm-accent);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.bm-view-bottom-banner-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.bm-view-bottom-banner-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.bm-view-bottom-banner-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 26px;
    padding: 0 8px;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    background: #242424;
    color: #d7d7d7;
    font-size: 12px;
    font-weight: 700;
}

.bm-view-bottom-banner-action:hover {
    border-color: var(--bm-accent);
    color: var(--bm-accent);
}

.bm-view-bottom-banner-action.is-delete:hover {
    border-color: #ef4444;
    color: #ef4444;
}

#bo_v.bm-board-view .bo_vc_w textarea {
    border: 1px solid #3a3a3a;
    background: #222222;
    color: #dcdcdc;
}

#bo_v.bm-board-view .bo_vc_w .bm-comment-input-inline {
    display: flex;
    align-items: stretch;
    gap: 6px;
}

#bo_v.bm-board-view .bo_vc_w .bm-comment-input-inline textarea {
    flex: 1;
    min-height: 78px;
}

#bo_v.bm-board-view .bo_vc_w .bm-comment-submit-inline {
    width: 68px;
    min-width: 68px;
    height: auto;
    border-radius: 4px;
    align-self: stretch;
}

#bo_v.bm-board-view .btn_submit {
    border: 0;
    background: #0f6f67;
    color: #ffffff;
}

#bo_v.bm-board-view .bo_vc_w .btn_confirm {
    display: none;
}

/* =====================================================
   글쓰기
   레퍼런스 WritePage.vue:
   - 헤더: bg-accent 외곽 + bg-primary + outline-accent-bottom
   - 제목 "글쓰기": q-px-sm q-pt-sm, fontSize 22px, text-weight-bold
   - 라벨: col-2 q-pl-md text-body1 text-weight-medium
   - 입력폼: bg-primary outlined dense
   - 취소버튼: bg-primary outline / 작성완료: bg-negative 흰 텍스트
   ===================================================== */
.bm-board-write #bo_w {
    margin-bottom: 16px;
}

/* 헤더 */
.bm-write-hero {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    border: 1px solid #3a3a3a;
    border-bottom: 3px solid var(--bm-accent);
    background: #2b2b2b;
}

.bm-write-hero > div:first-child {
    margin: 0;
    padding: 8px 12px;
    background: #2b2b2b;
    border: 0;
}

.bm-write-hero .bm-board-kicker,
.bm-write-hero .bm-board-description,
.bm-write-hero .bm-board-hero-stat {
    display: none;
}

.bm-write-hero .bm-board-title {
    margin: 0;
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
}

.bm-write-form {
    width: 100%;
}

.bm-write-panel {
    padding: 0;
    border: 1px solid #3a3a3a;
    background: #222222;
}

.bm-write-form-title {
    margin: 0;
    padding: 12px 10px 10px;
    border-bottom: 1px solid #333333;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.bm-write-panel-head {
    display: none;
}

.bm-write-panel-kicker {
    display: none;
}

/* 글쓰기 제목: fontSize 22px text-weight-bold */
.bm-write-panel-title {
    margin: 0;
    padding: 8px 10px 4px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}

.bm-write-panel-note {
    display: none;
}

/* 글쓰기 행 */
.bm-write-row {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 8px;
    align-items: flex-start;
    margin: 0;
    padding: 8px 0;
    border-top: 1px solid #333333;
}

/* 제목 라인: 라벨과 입력창 수직 가운데 정렬 */
.bm-board-write .bo_w_tit.bm-write-row {
    align-items: center;
}

.bm-board-write .bo_w_tit.bm-write-row .bm-write-label {
    padding-top: 0;
}

.bm-write-row:first-of-type {
    border-top: 1px solid #333333;
}

/* 라벨: col-2 q-pl-md text-body1 text-weight-medium */
.bm-write-label {
    padding-top: 10px;
    padding-left: 16px;
    color: var(--bm-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.bm-write-required {
    margin-left: 3px;
    color: #dc2626;
    font-size: 16px;
    font-weight: 900;
}

.bm-write-control {
    min-width: 0;
    padding-right: 10px;
    box-sizing: border-box;
}

/* 입력폼: bg-primary outlined dense */
.bm-write-control .frm_input,
.bm-write-control select,
.bm-write-control .frm_file,
.bm-write-control textarea {
    width: 100%;
    min-height: 56px;
    border: 1px solid #7a7a7a;
    border-radius: 4px;
    background: #333333;
    color: #e5e5e5;
}

.bm-write-control .frm_input,
.bm-write-control .frm_file,
.bm-write-control textarea {
    padding: 0 10px;
}

.bm-write-control textarea {
    padding-top: 10px;
    padding-bottom: 10px;
}

.bm-write-control select {
    padding: 0 8px;
}

.bm-event-write-period {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.bm-event-write-period-sep {
    color: #bdbdbd;
    font-size: 18px;
    font-weight: 800;
}

.bm-write-help {
    display: none;
}

.bm-write-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-height: 28px;
}

.bm-write-options li {
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
}

.bm-write-options label {
    color: var(--bm-ink);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

#bo_w.bm-board-write .bm-write-options .chk_box input[type="checkbox"] + label {
    padding-left: 22px;
    position: relative;
}

#bo_w.bm-board-write .bm-write-options .chk_box input[type="checkbox"] + label span {
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
}

.bm-write-autosave .btn_frmline {
    margin-top: 0;
    height: 39px;
    line-height: 37px;
    padding: 6px 10px;
    border: 1px solid #444444;
    border-radius: 4px;
    background: var(--bm-primary);
    color: var(--bm-muted);
    vertical-align: middle;
}

/* 에디터: border 1px solid #ccc */
.bm-write-editor {
    padding: 0;
    border: 1px solid #7a7a7a;
    border-radius: 4px;
    background: #333333;
}

.bm-write-editor textarea {
    min-height: 420px !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 10px !important;
    background: var(--bm-primary);
    color: var(--bm-ink);
    caret-color: #f5f5f5 !important;
}

/* 일반 사용자: 내용 입력창 기본 높이 30% 축소 */
#bo_w.bm-board-write .bm-write-non-admin .bm-write-editor textarea {
    min-height: 294px !important;
}

.bm-write-file {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bm-write-file .lb_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background: var(--bm-negative);
    color: #ffffff;
}

#bo_w.bm-board-write .bm-write-file {
    position: relative;
    gap: 0;
}

#bo_w.bm-board-write .bo_w_flie .file_wr {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

#bo_w.bm-board-write .bo_w_flie .frm_input {
    margin: 0 !important;
}

#bo_w.bm-board-write .bm-file-picker-text {
    cursor: pointer;
}

#bo_w.bm-board-write .bm-file-picker-input {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.bm-write-captcha fieldset {
    margin: 0;
    border: 1px solid #444444;
    border-radius: 4px;
    background: var(--bm-primary);
}

/* write 색상 강제 고정 */
#bo_w.bm-board-write,
#bo_w.bm-board-write .bm-write-panel,
#bo_w.bm-board-write .write_div,
#bo_w.bm-board-write .bm-write-row,
#bo_w.bm-board-write .bm-write-control {
    background: #222222 !important;
}

#bo_w.bm-board-write #wr_subject,
#bo_w.bm-board-write input[name^="wr_link"],
#bo_w.bm-board-write .file_wr,
#bo_w.bm-board-write .frm_input,
#bo_w.bm-board-write .frm_file,
#bo_w.bm-board-write select,
#bo_w.bm-board-write textarea,
#bo_w.bm-board-write .bm-write-editor {
    background: #333333 !important;
}

/* 클래스 미적용/에디터 iframe 케이스까지 포함한 강제 fallback */
#bo_w,
#bo_w .write_div,
#bo_w .bo_w_tit,
#bo_w .bo_w_link,
#bo_w .bo_w_flie,
#bo_w .wr_content {
    background: #222222 !important;
}

#bo_w #wr_subject,
#bo_w input[name^="wr_link"],
#bo_w .file_wr,
#bo_w .frm_input,
#bo_w .frm_file,
#bo_w select,
#bo_w textarea,
#bo_w .bm-write-editor,
#bo_w .wr_content {
    background: #333333 !important;
}

/* 제목 입력창 높이 30% 축소 */
#bo_w.bm-board-write #wr_subject {
    min-height: 39px !important;
    height: 39px !important;
}

#bo_w.bm-board-write input[name^="wr_link"] {
    min-height: 39px !important;
    height: 39px !important;
}

#bo_w.bm-board-write .bo_w_flie .frm_file {
    min-height: 39px !important;
    height: 39px !important;
}

#bo_w iframe,
#bo_w .se2_input_area,
#bo_w .se2_inputarea {
    background: #333333 !important;
}

#bo_w .bm-write-editor .cke,
#bo_w .bm-write-editor .cke_inner,
#bo_w .bm-write-editor .cke_top,
#bo_w .bm-write-editor .cke_bottom,
#bo_w .bm-write-editor .cke_contents,
#bo_w .bm-write-editor .cke_wysiwyg_frame,
#bo_w .bm-write-editor .se2_tool,
#bo_w .bm-write-editor .se2_input_area,
#bo_w .bm-write-editor .se2_inputarea,
#bo_w .bm-write-editor .se2_iframe {
    background: #333333 !important;
}

#bo_w .bm-write-editor .cke_top,
#bo_w .bm-write-editor .cke_bottom,
#bo_w .bm-write-editor .se2_tool {
    border-color: #555555 !important;
}

#bo_w .bm-write-editor .cke_button_label,
#bo_w .bm-write-editor .cke_combo_text,
#bo_w .bm-write-editor .cke_toolgroup,
#bo_w .bm-write-editor .se2_tool *,
#bo_w .bm-write-editor .se2_input_area,
#bo_w .bm-write-editor .se2_inputarea {
    color: #f1f1f1 !important;
}

#bo_w.bm-board-write .frm_input,
#bo_w.bm-board-write .frm_file,
#bo_w.bm-board-write select,
#bo_w.bm-board-write textarea,
#bo_w.bm-board-write .bm-file-picker-text {
    padding-right: 10px !important;
}

/* =====================================================
   글쓰기 액션 버튼
   레퍼런스: 취소 bg-primary + outline / 작성완료 bg-negative 흰 텍스트
   ===================================================== */
.bm-write-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #444444;
}

.bm-write-actions .btn {
    width: 100%;
    min-width: 0;
    height: 68px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* 취소: bg-primary + outline */
.bm-write-actions .btn_cancel {
    border: 1px solid #7a7a7a;
    background: #333333;
    color: #f1f1f1;
}

.bm-write-actions .btn_cancel:hover {
    border-color: var(--bm-accent);
    color: var(--bm-accent);
}

/* 작성완료: bg-negative 흰 텍스트 */
.bm-write-actions .btn_submit {
    border: 0;
    background: #0f6f67;
    color: #ffffff;
}

.bm-write-actions .btn_submit:hover {
    background: var(--bm-accent);
    color: var(--bm-primary);
}

/* =====================================================
   반응형
   ===================================================== */
@media (max-width: 1100px) {
    .bm-board-ref-hero {
        min-height: 0;
    }

    .bm-board-hero,
    .bm-view-toolbar {
        flex-direction: column;
    }

    .bm-view-toolbar {
        align-items: flex-start;
    }

    .bm-view-meta-top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .bm-board-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
    }

    .bm-board-toolbar #bo_list_total {
        padding: 0;
        font-size: 13px;
        white-space: nowrap;
    }

    .bm-board-toolbar .btn_bo_user {
        margin-left: auto;
        flex-shrink: 0;
    }

    .bm-board-hero-stat {
        width: 100%;
        border-left: 0;
        border-top: 1px solid #444444;
    }

    .bm-list-meta-date {
        margin-left: 0;
    }

    .bm-write-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .bm-write-label {
        padding-top: 0;
        padding-left: 0;
        font-size: 15px;
    }

    .bm-write-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .bm-write-actions .btn {
        height: 52px;
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .bm-board-ref-hero {
        min-height: 0;
    }

    .bm-board-ref-hero-art {
        height: auto;
    }

    .bm-board-ref-notice-list li {
        padding: 4px 0;
    }

    .bm-board-ref-notice-link {
        gap: 6px;
    }

    .bm-board-ref-notice-subject,
    .bm-board-ref-notice-comment {
        font-size: 14px;
    }

    .bm-board-ref-notice-meta {
        gap: 6px;
        font-size: 11px;
    }

    .bm-board-title,
    .bm-view-title-wrap .bo_v_tit {
        font-size: 21px !important;
    }

    .bm-view-title-wrap {
        padding: 8px 10px;
    }

    .bm-write-panel-title {
        font-size: 18px;
    }

    .bm-board-toolbar .btn_bo_user,
    .bm-board-footer .btn_bo_user,
    .bm-view-actions-wrap .btn_bo_user {
        float: none;
    }

    .bm-board-toolbar .bm-toolbar-btn {
        height: 30px;
        padding: 0 8px;
        font-size: 11px;
    }

    /* 모바일 테이블 블록 변환 */
    .bm-board-list thead {
        display: none;
    }

    .bm-board-list table,
    .bm-board-list tbody,
    .bm-board-list tr,
    .bm-board-list td {
        display: block;
        width: 100%;
    }

    .bm-board-list tbody tr {
        padding: 8px 10px;
        border-bottom: 1px solid #333333;
    }

    .bm-board-list tbody td {
        border: 0;
        padding: 3px 0;
        text-align: left !important;
    }

    .bm-board-list .td_num2,
    .bm-board-list .td_name,
    .bm-board-list .td_num,
    .bm-board-list .td_datetime {
        display: none;
    }

    .bm-board-list .td_chk {
        padding-bottom: 0;
    }

    .bm-board-list .td_subject {
        padding-right: 0;
    }

    .bm-board-list .bo_tit > a {
        font-size: 14px;
    }

    .bm-mobile-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-top: 6px;
    }

    .bm-mobile-writer {
        min-width: 0;
        flex: 1;
    }

    .bm-mobile-stats {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        color: #b8b8b8;
        font-size: 12px;
        text-align: right;
        white-space: nowrap;
    }

    .bm-view-head {
        padding-left: 0;
        padding-right: 0;
    }

    .bm-view-meta-top,
    .bm-view-toolbar {
        padding-left: 10px;
        padding-right: 10px;
    }

    .bm-view-meta-top {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 8px;
    }

    .bm-view-author {
        min-width: 0;
        flex: 1;
    }

    .bm-view-created {
        margin-left: auto;
        text-align: right;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* 모바일에서도 댓글/조회/목록(텍스트)/목록버튼 라인을 한 줄 유지 */
    .bm-view-toolbar {
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 6px;
    }

    .bm-view-stats {
        width: auto;
        flex-shrink: 0;
        gap: 6px;
    }

    .bm-view-trackback {
        margin-left: 0;
        font-size: 14px;
        flex-shrink: 0;
    }

    .bm-view-actions-wrap {
        margin-left: auto;
        flex-shrink: 0;
    }

    .bm-view-actions-wrap .bo_v_com {
        display: inline-flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0;
    }

    .bm-view-actions-wrap .btn {
        min-width: 28px;
        height: 28px;
    }

    .bm-view-bottom-toolbar .btn_bo_user .bm-toolbar-btn {
        height: 30px;
        padding: 0 8px;
        font-size: 11px;
    }

    .bm-view-bottom-banner-grid {
        gap: 10px;
        padding: 10px;
    }

    .bm-view-bottom-banner-card {
        gap: 10px;
        padding: 8px;
    }

    .bm-view-bottom-banner-thumb {
        flex-basis: 168px;
        width: 168px;
        height: 96px;
    }

    .bm-view-bottom-banner-body {
        gap: 8px;
    }

    .bm-view-bottom-banner-title {
        font-size: 13px;
    }

    .bm-view-bottom-banner-type {
        font-size: 11px;
    }

    .bm-view-bottom-banner-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .bm-view-actions-wrap .bo_v_com > li:first-child .btn {
        min-width: auto;
        padding: 0 6px;
    }

    .bm-view-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .bm-view-content-panel {
        padding-left: 10px;
        padding-right: 10px;
    }

    .bm-view-actions-wrap .bo_v_com > li {
        margin-bottom: 0;
    }

    .bm-write-actions {
        flex-direction: column-reverse;
    }

.bm-write-actions .btn {
        width: 100%;
    }
}

.bm-highlights-board .bm-highlights-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 12px;
    margin-top: 12px;
}

.bm-highlights-board .bm-highlights-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    background: #111;
    color: #c8c8c8;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bm-highlights-board .bm-highlights-tabs a.is-active,
.bm-highlights-board .bm-highlights-tabs a:hover {
    border-color: #12d5d3;
    color: #12d5d3;
    box-shadow: 0 0 0 1px rgba(18, 213, 211, 0.25) inset;
}

.bm-sports-ana-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 12px;
    margin-top: 12px;
}

.bm-sports-ana-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    background: #111;
    color: #c8c8c8;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bm-sports-ana-tabs a.is-active,
.bm-sports-ana-tabs a:hover {
    border-color: #12d5d3;
    color: #12d5d3;
    box-shadow: 0 0 0 1px rgba(18, 213, 211, 0.25) inset;
}

.bm-highlights-board .bm-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.bm-highlights-board .bm-highlights-card {
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    display: flex;
    flex-direction: column;
}

.bm-highlights-board .bm-highlights-thumb-link {
    position: relative;
    display: block;
    aspect-ratio: auto;
    height: 200px;
    background: #1b1b1b;
}

.bm-highlights-board .bm-highlights-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sports H/L: no crop, show full thumbnail */
.bm-board-highlights.bm-highlights-board .bm-highlights-thumb-link img {
    object-fit: contain;
    background: #111;
}

/* Totoguide list: keep full thumbnail visible (no crop) */
.bm-board-community_totoguide.bm-highlights-board .bm-highlights-thumb-link {
    aspect-ratio: auto;
    height: 200px;
    background: #111;
}

.bm-board-community_totoguide.bm-highlights-board .bm-highlights-thumb-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111;
}

.bm-highlights-board .bm-highlights-category {
    position: absolute;
    left: 8px;
    top: 8px;
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(18, 213, 211, 0.4);
    color: #12d5d3;
    font-size: 12px;
    font-weight: 700;
}

.bm-highlights-board .bm-highlights-card-body {
    padding: 10px;
    display: grid;
    grid-template-rows: minmax(24px, auto) 20px;
    row-gap: 8px;
    min-height: 82px;
}

.bm-highlights-board .bm-highlights-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    min-height: 24px;
}

.bm-highlights-board .bm-highlights-title {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #efefef;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.bm-highlights-board .bm-highlights-comment {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    color: #ff4d4f;
    font-size: 12px;
    font-weight: 700;
    margin-top: 1px;
}

.bm-highlights-board .bm-highlights-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    color: #a9a9a9;
    font-size: 12px;
    gap: 8px;
    min-height: 20px;
}

.bm-highlights-board .bm-highlights-meta i {
    margin-right: 4px;
}

.bm-highlights-board .bm-highlights-meta-writer {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.bm-highlights-board .bm-highlights-meta-writer .bm-level-chip {
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 10px;
}

.bm-highlights-board .bm-highlights-meta-writer .bm-level-icon-img {
    width: 16px;
    height: 16px;
}

.bm-highlights-board .bm-highlights-meta-writer .bm-writer-nick {
    max-width: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

.bm-highlights-board .bm-highlights-empty {
    text-align: center;
    padding: 36px 12px;
    color: #adadad;
}

.bm-event-board .bm-event-toolbar {
    margin-top: 10px;
}

.bm-event-board .bm-event-tabs,
.bm-event-view-bottom .bm-event-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 12px;
    margin-top: 12px;
    margin-bottom: 14px;
}

.bm-event-board .bm-event-tabs a,
.bm-event-view-bottom .bm-event-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    background: #111;
    color: #c8c8c8;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bm-event-board .bm-event-tabs a.is-active,
.bm-event-board .bm-event-tabs a:hover,
.bm-event-view-bottom .bm-event-tabs a.is-active,
.bm-event-view-bottom .bm-event-tabs a:hover {
    border-color: #12d5d3;
    color: var(--bm-accent);
    box-shadow: 0 0 0 1px rgba(18, 213, 211, 0.25) inset;
}

.bm-event-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.bm-event-card {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
}

.bm-event-card-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 0 12px;
    color: #f8fafc;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
    border-radius: 8px 8px 0 0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.bm-event-card-status-label {
    display: inline-block;
    flex: 1 1 auto;
    text-align: center;
}

.bm-event-card-status.is-active {
    background: var(--bm-accent);
}

.bm-event-card-status.is-finished {
    background: #9e9e9e;
}

.bm-event-card-status.is-inactive {
    background: #4b5563;
}

.bm-event-card-media {
    position: relative;
}

.bm-event-card-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 300 / 235;
    margin: 0 auto;
    overflow: hidden;
    background: #111111;
}

.bm-event-card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
}

.bm-event-card-thumb.is-thumb-error {
    background: #111111;
}

.bm-event-card-thumb.is-empty-thumb,
.bm-event-card-thumb.is-thumb-error {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-event-card-thumb-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.bm-event-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.52);
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
}

.bm-event-card-reply {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px 1px;
    border-radius: 6px;
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    transform: none;
}

.bm-event-card-reply.is-active {
    background: var(--bm-accent);
}

.bm-event-card-reply.is-finished {
    background: #9e9e9e;
}

.bm-event-card-reply.is-inactive {
    background: #4b5563;
}

.bm-event-card-body {
    padding: 3px 0 0;
}

.bm-event-card-title-row {
    display: block;
}

.bm-event-card-title {
    display: block;
    min-height: 32px;
    margin-bottom: 0;
    padding: 0 6px;
    overflow: hidden;
    color: #f2f2f2;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bm-event-card-reply-inline {
    display: none;
}

.bm-event-card-title:hover {
    color: var(--bm-accent);
}

.bm-event-card-period {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
    min-height: 38px;
    width: 100%;
    margin-top: 2px;
    padding: 6px 8px;
    border-radius: 0 0 8px 8px;
    background: #BDBDBD;
    color: #111111;
    font-size: 14px;
    font-weight: 500;
}

.bm-event-card-period strong {
    color: #ef4444 !important;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    -webkit-text-stroke: 0.35px rgba(120, 18, 18, 0.55);
}

.bm-event-card-period-label,
.bm-event-card-period-sep {
    color: #111111;
    white-space: nowrap;
}

.bm-event-empty {
    padding: 48px 16px;
    border: 1px solid #333333;
    border-radius: 12px;
    background: #1f1f1f;
    color: #bdbdbd;
    text-align: center;
}

.bm-event-copy {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.bm-event-copy-section {
    padding: 18px 20px;
    border: 2px solid #111111;
    border-radius: 12px;
    background: radial-gradient(circle at top, #fff8e7 0%, #fff2c8 100%);
    color: #242424;
}

.bm-event-copy-section h3 {
    margin: 0 0 10px;
    color: #111111;
    font-size: 22px;
    font-weight: 800;
}

.bm-event-copy-section p {
    margin: 0 0 8px;
    color: #333333;
    line-height: 1.7;
}

.bm-event-copy-section ul {
    margin: 0;
    padding-left: 18px;
}

.bm-event-copy-section li {
    margin-bottom: 8px;
    color: #333333;
    line-height: 1.65;
}

.bm-event-view {
    display: block;
}

.bm-event-view-header {
    margin-bottom: 8px;
}

.bm-event-view-title-wrap {
    display: block;
    padding: 0;
}

.bm-event-view-type {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--bm-accent);
    font-size: 16px;
    font-weight: 800;
}

.bm-event-view-type.is-fixed {
    color: var(--bm-accent);
}

.bm-event-view-title-wrap h1 {
    margin: 0;
    color: #f3f3f3;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
}

.bm-event-view-meta {
    margin-top: 0;
}

.bm-event-view-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.bm-event-view-toolbar .btn_bo_user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bm-event-view-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
    margin-top: 16px;
}

.bm-event-view-media {
    border: 0;
    border-radius: 10px;
    background: #000000;
    overflow: hidden;
}

.bm-event-view-media-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 8px 36px;
}

.bm-event-view-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: fill;
    border-radius: 5px;
}

.bm-event-view-side {
    display: grid;
    gap: 16px;
    padding: 0 16px;
}

.bm-event-view-info-card {
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: transparent;
}

.bm-event-view-info-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.24);
    border-radius: 8px;
}

.bm-event-view-info-title.is-active {
    background: var(--bm-accent);
}

.bm-event-view-info-title.is-finished {
    background: #9e9e9e;
}

.bm-event-view-info-title.is-inactive {
    background: #4b5563;
}

.bm-event-view-info-row {
    display: grid;
    grid-template-columns: minmax(96px, 25%) minmax(0, 1fr);
    border-radius: 8px;
    overflow: hidden;
}

.bm-event-view-info-row + .bm-event-view-info-row {
    border-top: 1px solid #333333;
}

.bm-event-view-info-label,
.bm-event-view-info-value {
    padding: 14px 16px;
    min-height: 58px;
    box-sizing: border-box;
}

.bm-event-view-info-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #212121;
    color: #f0f0f0;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    border: 1px solid #333333;
    border-right: 0;
}

.bm-event-view-info-value {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333333;
    color: #ef4444 !important;
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
    border: 1px solid #333333;
}

.bm-event-view-info-value strong {
    color: #ef4444 !important;
}

.bm-event-view-benefits {
    min-height: 112px;
    font-weight: 700;
}

.bm-event-view-benefit-card {
    border-radius: 8px;
    overflow: hidden;
}

.bm-event-view-benefit-head {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    background: #212121;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    border-radius: 8px 8px 0 0;
    border: 1px solid #333333;
}

.bm-event-view-benefit-body {
    min-height: 56px;
    padding: 10px 16px;
    background: #333333;
    border: 1px solid #333333;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    color: #f0f0f0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
    box-sizing: border-box;
}

.bm-event-view-benefit-body p {
    margin: 0;
}

.bm-event-view-content-nav {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 14px;
}

.bm-event-view-content-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px 9px;
    border-top: 4px solid var(--bm-accent);
    border-right: 4px solid var(--bm-accent);
    border-left: 4px solid var(--bm-accent);
    border-radius: 8px 8px 0 0;
    background: var(--bm-primary);
    color: var(--bm-accent);
    font-size: 15px;
    font-weight: 800;
}

.bm-event-view-content-fill {
    flex: 1 1 auto;
    align-self: flex-end;
    min-height: 0;
    border-bottom: 4px solid var(--bm-accent);
}

.bm-event-view-content-panel {
    margin-top: 0;
}

.bm-event-view-bottom {
    margin-top: 22px;
}

.bm-event-view-bottom .bm-view-bottom-toolbar {
    margin-top: 0 !important;
}

.bm-view-bottom-list .bm-view-bottom-highlights-grid {
    margin-top: 8px;
}

.bm-banner-board .bm-banner-top-long {
    margin-bottom: 10px;
}

/* By default (desktop/tablet), show desktop long banners only */
.bm-banner-board .bm-banner-top-long-mobile {
    display: none !important;
}

.bm-banner-board .bm-banner-top-long-desktop {
    display: block;
}


.bm-banner-board .bm-banner-top-long a,
.bm-banner-board .bm-banner-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 1px solid #2f2f2f;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    box-sizing: border-box;
}

.bm-banner-board .bm-banner-top-long-desktop a {
    aspect-ratio: 8 / 1;
}

.bm-banner-board .bm-banner-top-long-mobile a {
    aspect-ratio: 764 / 164;
}

.bm-banner-board .bm-banner-top-long img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bm-banner-board .bm-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bm-banner-board .bm-banner-card {
    min-width: 0;
}

.bm-banner-board .bm-banner-card a {
    aspect-ratio: 29 / 12;
}

.bm-banner-board .bm-banner-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bm-certified-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 14px;
}

.bm-certified-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bm-certified-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #3a3a3a;
    background: #111111;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.bm-certified-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bm-certified-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bm-certified-info {
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    overflow: hidden;
}

.bm-certified-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.bm-certified-info-row + .bm-certified-info-row {
    border-top: 1px solid #3a3a3a;
}

.bm-certified-info-label,
.bm-certified-info-value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 6px 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.bm-certified-info-label {
    background: #111111;
    color: #ffffff;
}

.bm-certified-info-value {
    background: #f7f7f7;
    color: #0f172a;
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    border-left: 1px solid #3a3a3a;
    white-space: nowrap;
    overflow: hidden;
}

.bm-certified-info-row:first-child .bm-certified-info-value {
    font-size: 16px;
}

.bm-certified-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.bm-certified-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.bm-certified-btn-detail {
    background: #222222;
    color: #d9d9d9;
}

.bm-certified-btn-detail:hover {
    color: #ffffff;
    border-color: #6b6b6b;
}

.bm-certified-btn-out {
    background: #111111;
    color: var(--bm-accent);
    border-color: var(--bm-accent);
}

.bm-certified-btn-out:hover {
    background: var(--bm-negative);
    color: #ffffff;
}

.bm-certified-view-actions {
    margin-bottom: 10px;
}

.bm-certified-view-actions .btn_bo_user {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.bm-certified-view-card {
    border: 1px solid #333333;
    background: #222222;
    overflow: hidden;
}

.bm-certified-view-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
}

.bm-certified-view-row + .bm-certified-view-row {
    border-top: 1px solid #333333;
}

.bm-certified-view-label,
.bm-certified-view-value {
    min-height: 60px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
}

.bm-certified-view-label {
    justify-content: center;
    background: #111111;
    color: #ffffff;
}

.bm-certified-view-value {
    background: #333333;
    color: #f1f1f1;
}

.bm-certified-view-link a {
    color: #60a5fa;
    word-break: break-all;
}

.bm-certified-view-code {
    color: #f87171;
}

.bm-certified-view-top-banner {
    padding: 14px 0 12px;
}

.bm-certified-view-top-banner picture,
.bm-certified-view-top-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.bm-certified-view-content-panel {
    padding: 14px;
}

.bm-certified-view-content {
    max-width: 100%;
}

.bm-certified-view-comment-summary {
    margin-top: 10px;
}

.bm-certified-view-content img,
.bm-certified-view-content iframe,
.bm-certified-view-content table,
.bm-certified-view-content video {
    max-width: 100% !important;
}

.bm-certified-view-bottom-list .btn_bo_user {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.bm-certified-admin-action-item {
    width: auto !important;
    margin: 0 !important;
}

.bm-certified-admin-btn {
    min-width: 58px !important;
    gap: 6px;
}

.bm-certified-admin-btn-edit {
    background: #0f766e !important;
    color: #ffffff !important;
}

.bm-certified-admin-btn-edit:hover {
    background: #14b8a6 !important;
    color: #062a27 !important;
}

.bm-certified-admin-btn-delete {
    background: #991b1b !important;
    color: #ffffff !important;
}

.bm-certified-admin-btn-delete:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
}

@media (max-width: 1023px) {
    .bm-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bm-event-view-hero {
        grid-template-columns: 1fr;
    }

    .bm-event-view-side {
        padding: 0;
    }

    .bm-event-view-media-inner {
        padding: 8px 20px;
    }

    .bm-event-view-info-row {
        grid-template-columns: 104px minmax(0, 1fr);
    }
}

@media (min-width: 1024px) {
    .bm-event-card-thumb {
        width: 300px;
        height: 235px;
        aspect-ratio: auto;
        max-width: none;
    }

    .bm-banner-board .bm-banner-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .bm-certified-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* On mobile, show mobile long banners only */
@media (max-width: 767px) {
    .bm-event-board .bm-event-tabs,
    .bm-event-view-bottom .bm-event-tabs {
        margin-top: 10px;
        padding-bottom: 10px;
    }

    .bm-event-board .bm-event-tabs a,
    .bm-event-view-bottom .bm-event-tabs a {
        height: 34px;
        min-width: 58px;
        font-size: 13px;
    }

    .bm-event-card-period {
        gap: 4px;
        font-size: 13px;
    }

    .bm-event-card-period strong {
        font-size: 13px;
    }

    .bm-event-grid {
        gap: 12px;
    }

    .bm-event-card-status {
        min-height: 38px;
        font-size: 15px;
        padding: 0 10px;
    }

    .bm-event-card-reply {
        display: inline-flex;
        padding: 5px 8px;
        font-size: 12px;
        transform: none;
    }

    .bm-event-card-title-row {
        display: block;
    }

    .bm-event-card-reply-inline {
        display: none;
    }

    .bm-event-card-body {
        padding: 3px 0 0;
    }

    .bm-event-card-title {
        min-height: 32px;
        margin-bottom: 0;
        padding: 0 6px;
        font-size: 15px;
        text-align: center;
    }

    .bm-event-card-period {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: 2px;
    }

    .bm-event-copy-section {
        padding: 16px;
    }

    .bm-event-copy-section h3 {
        font-size: 18px;
    }

    .bm-event-view-title-wrap h1 {
        font-size: 22px;
    }

    .bm-event-view-info-row {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .bm-event-view-info-label,
    .bm-event-view-info-value {
        padding: 12px;
    }

    .bm-event-view-media-inner {
        min-height: 220px;
        padding: 14px;
    }

    .bm-event-write-period {
        grid-template-columns: 1fr;
    }

    .bm-event-write-period-sep {
        display: none;
    }

    .bm-banner-board .bm-banner-top-long-desktop {
        display: none !important;
    }

    .bm-banner-board .bm-banner-top-long-mobile {
        display: block !important;
    }

    .bm-certified-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bm-certified-item {
        display: grid;
        grid-template-columns: 45fr 55fr;
        gap: 10px;
        align-items: start;
    }

    .bm-certified-thumb {
        aspect-ratio: 45 / 34;
    }

    .bm-certified-content {
        gap: 12px;
        min-height: 96px;
    }

    .bm-certified-info-label,
    .bm-certified-info-value {
        min-height: 30px;
        font-size: 13px;
    }

    .bm-certified-info-value-name.is-long {
        font-size: 4px;
        letter-spacing: -0.1em;
        white-space: nowrap;
        display: inline-block;
        width: 118%;
        margin-left: -9%;
        transform: scaleX(0.84);
        transform-origin: center center;
    }

    .bm-certified-info-value-name.is-xlong {
        font-size: 3px;
        letter-spacing: -0.14em;
        white-space: nowrap;
        display: inline-block;
        width: 132%;
        margin-left: -16%;
        transform: scaleX(0.68);
        transform-origin: center center;
    }

    .bm-certified-info-row:first-child .bm-certified-info-value {
        padding-left: 1px;
        padding-right: 1px;
    }

    .bm-certified-actions {
        margin-top: auto;
        padding-top: 8px;
    }

    .bm-certified-btn {
        min-height: 34px;
        font-size: 12px;
    }

    @media (min-width: 420px) and (max-width: 767px) {
        .bm-certified-actions {
            padding-top: 20px;
        }
    }

    .bm-certified-view-row {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .bm-certified-view-label,
    .bm-certified-view-value {
        min-height: 48px;
        padding: 12px 10px;
        font-size: 13px;
    }
}


.bm-highlight-view-video {
    margin-bottom: 35px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2f2f2f;
    background: #000;
}

.bm-highlight-view-video iframe {
    display: block;
    width: 100%;
    height: min(60vw, 620px);
}

#bo_v.bm-board-view.bm-board-highlights .bm-view-content:empty {
    display: none;
}

@media (max-width: 767px) {
    .bm-sports-ana-tabs {
        margin-top: 10px;
        padding-bottom: 10px;
    }

    .bm-sports-ana-tabs a {
        height: 34px;
        min-width: 58px;
        font-size: 13px;
    }

    .bm-highlights-board .bm-highlights-thumb-link {
        height: 130px;
    }

    .bm-board-community_totoguide.bm-highlights-board .bm-highlights-thumb-link {
        height: 130px;
    }

    .bm-highlights-board .bm-highlights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .bm-highlights-board .bm-highlights-tabs {
        margin-top: 10px;
        padding-bottom: 10px;
    }

    .bm-highlights-board .bm-highlights-tabs a {
        height: 34px;
        min-width: 58px;
        font-size: 13px;
    }

    .bm-highlights-board .bm-highlights-title {
        font-size: 13px;
    }

    .bm-highlights-board .bm-highlights-meta {
        font-size: 11px;
    }

    .bm-highlight-view-video iframe {
        height: 52vw;
    }
}

.bm-readonly-input {
    background: #171717;
    color: #d5ecff;
    cursor: not-allowed;
}

.bm-exchange-selected-gifticon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(18, 213, 211, 0.28);
    border-radius: 12px;
    background: rgba(18, 213, 211, 0.08);
    color: #dffeff;
}

.bm-exchange-selected-gifticon span {
    color: #12d5d3;
    font-weight: 700;
}

.bm-exchange-note {
    min-height: 180px;
    resize: vertical;
}

.bm-exchange-view-meta-panel,
.bm-gifticon-callout {
    margin-bottom: 24px;
}

.bm-exchange-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.bm-exchange-meta-item {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #2f2f2f;
    background: #171717;
}

.bm-exchange-meta-label {
    display: block;
    margin-bottom: 6px;
    color: #989898;
    font-size: 12px;
}

.bm-exchange-meta-item strong {
    color: #f5f7fa;
    font-size: 16px;
}

.bm-exchange-meta-admin-link {
    margin-top: 14px;
}

.bm-exchange-meta-admin-link a,
.bm-gifticon-admin-link {
    color: #12d5d3;
    font-size: 13px;
    font-weight: 700;
}

.bm-gifticon-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
}

.bm-gifticon-callout-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.bm-gifticon-callout-kicker {
    color: #989898;
    font-size: 12px;
    letter-spacing: .08em;
}

.bm-gifticon-callout-info strong {
    color: #f5f7fa;
    font-size: 22px;
}

.bm-gifticon-callout-status {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(18, 213, 211, 0.14);
    color: #12d5d3;
    font-size: 12px;
    font-weight: 700;
}

.bm-gifticon-callout-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.bm-gifticon-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #12d5d3, #0fb4e6);
    color: #081217;
    font-weight: 800;
}

.bm-gifticon-cta.is-secondary {
    background: #1e1e1e;
    color: #f5f7fa;
    border: 1px solid #2f2f2f;
}

@media (max-width: 767px) {
    .bm-gifticon-callout {
        flex-direction: column;
        align-items: flex-start;
    }

    .bm-gifticon-callout-actions {
        width: 100%;
    }

    .bm-gifticon-cta {
        width: 100%;
    }
}

.bm-ref-page-head {
    margin-bottom: 16px;
}

.bm-ref-page-hero {
    display: block;
    border: 3px solid #12d5d3;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
}

.bm-ref-page-hero img {
    display: block;
    width: 100%;
    height: auto;
}

.bm-ref-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: #f5f7fa;
    font-size: 14px;
    font-weight: 700;
}

.bm-ref-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: #f5f7fa;
    font-size: 14px;
    font-weight: 700;
}

.bm-ref-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #134e4a;
    color: #fff;
    cursor: pointer;
}

.bm-ref-top-action,
.bm-ref-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    border: 2px solid #12d5d3;
    background: #12d5d3;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.bm-ref-card-btn span {
    font-size: 1.2em;
    line-height: 1;
}

.bm-ref-card-btn .fa {
    font-size: 1.3em;
}

.bm-ref-card-btn:hover {
    filter: brightness(1.03);
}

.bm-ref-card-btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.22);
}

.bm-ref-summary-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    padding: 0;
    margin-bottom: 10px;
    border: 2px solid #12d5d3;
    border-radius: 8px;
    background: #134E4A;
    text-align: center;
}

.bm-ref-summary-card-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    text-align: center;
}

.bm-ref-card-grid {
    display: grid;
    gap: 14px;
}

.bm-ref-card-grid-exchange {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bm-ref-card-grid-gifticon {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bm-ref-card {
    overflow: hidden;
    border: 3px solid #12d5d3;
    border-radius: 12px;
    background: #111;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.bm-ref-card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 6px 10px;
    background: #12d5d3;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}

.bm-ref-card-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.bm-ref-card-status-chip.is-inactive {
    background: #dc2626;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.28);
}

.bm-ref-card-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 14px;
    background: #0f0f0f;
}

.bm-ref-card-visual img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.bm-ref-card-visual.is-gifticon {
    position: relative;
    min-height: 160px;
    background: #ffffff;
}

.bm-ref-card-visual.is-gifticon img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.bm-ref-card-gifticon .bm-ref-card-label {
    background: #111;
    color: #fff;
}

.bm-ref-card-gifticon .bm-ref-card-body {
    padding-top: 14px;
}

.bm-ref-card-gifticon .bm-ref-card-meta {
    color: #4b5563;
    font-size: 14px;
    font-weight: 700;
}

.bm-ref-card-exchange .bm-ref-card-meta {
    font-weight: 700;
}

.bm-ref-card-gifticon .bm-ref-card-price {
    color: #111;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.bm-ref-card-gifticon .bm-ref-card-price span {
    color: #e11d48;
}

.bm-ref-card-empty {
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.bm-ref-card-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-top: 3px solid #12d5d3;
    border-bottom: 3px solid #12d5d3;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.bm-ref-card-body {
    padding: 12px 10px 14px;
    background: #fff;
    text-align: center;
}

.bm-ref-card-amount {
    color: #e11d48;
    font-size: 24px;
    font-weight: 900;
}

.bm-ref-card-amount.is-disabled {
    color: #111;
    font-size: 18px;
}

.bm-ref-card-amount span {
    color: #111;
    font-size: 16px;
    font-weight: 600;
}

.bm-ref-card-meta,
.bm-ref-card-inline-meta {
    color: #54606e;
    font-size: 14px;
    margin-top: 6px;
}

.bm-ref-card-price {
    color: #111;
    font-size: 18px;
    font-weight: 800;
}

.bm-ref-card-price span {
    color: #e11d48;
}

.bm-ref-card-body .bm-ref-card-btn {
    width: 100%;
    margin-top: 12px;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.12);
}

@media (max-width: 1400px) {
    .bm-ref-card-grid-exchange {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 1100px) {
    .bm-ref-card-grid-exchange,
    .bm-ref-card-grid-gifticon {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bm-ref-summary-row {
        flex-direction: column;
        align-items: stretch;
    }

    .bm-ref-summary-card-inner {
        width: 100%;
        font-size: 18px;
        text-align: center;
    }
}

.bm-ref-gifticon-view {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 8px;
}

.bm-ref-guide-box {
    border-radius: 4px;
    overflow: hidden;
    border-top: 1px solid #000;
    background: #fe2828;
}

.bm-ref-guide-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 16px;
    background: transparent;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
}

.bm-ref-guide-head .fa {
    transition: transform .2s ease;
}

.bm-ref-guide-body {
    display: none;
    padding: 16px 18px;
    border: 2px solid #12d5d3;
    border-top: 0;
    background: #1f1f1f;
    color: #fff;
    line-height: 1.7;
    font-size: 115%;
}

.bm-ref-guide-box.is-open .bm-ref-guide-body {
    display: block;
}

.bm-ref-guide-box.is-open .bm-ref-guide-head .fa {
    transform: rotate(180deg);
}

.bm-ref-inline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    margin-left: 8px;
    border-radius: 6px;
    background: #346763;
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    vertical-align: middle;
}

.bm-ref-detail-top {
    display: flex;
    align-items: stretch;
    gap: 18px;
}

.bm-ref-detail-media,
.bm-ref-detail-info {
    border: 2px solid #12d5d3;
    border-radius: 2px;
    background: #1f1f1f;
}

.bm-ref-detail-media.is-gifticon-theme,
.bm-ref-detail-info.is-gifticon-theme {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.bm-ref-detail-media {
    flex: 0 0 42%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    min-height: 290px;
}

.bm-ref-detail-media.is-dark {
    background: #333333;
}

.bm-ref-detail-media img {
    max-width: 100%;
    max-height: 230px;
    object-fit: contain;
}

.bm-ref-detail-info {
    flex: 1 1 58%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 290px;
    background: transparent;
}

.bm-ref-detail-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    flex: 1 1 0;
    min-height: 0;
}

.bm-ref-detail-row + .bm-ref-detail-row {
    border-top: 1px solid rgba(255,255,255,.08);
}

.bm-ref-detail-row span {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333333;
    color: #fff;
    font-weight: 700;
    font-size: 125%;
}

.bm-ref-detail-row strong {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f1f1f;
    color: #fff;
    font-size: 125%;
    font-weight: 700;
    text-align: center;
    padding: 0 14px;
}

.bm-ref-detail-row strong.is-red {
    color: #dc2626 !important;
}

.bm-ref-detail-row strong.is-complete-amount {
    gap: 2px;
}

.bm-ref-detail-row strong.is-complete-amount .bm-complete-amount-num {
    background: #1f1f1f !important;
    color: #dc2626 !important;
}

.bm-ref-detail-row strong.is-complete-amount .bm-complete-amount-unit {
    background: #1f1f1f !important;
    color: #ffffff !important;
}

.bm-ref-detail-row strong.is-next-exchange {
    color: #ffffff !important;
}

.bm-ref-detail-row strong.is-detail-default {
    color: #ffffff !important;
}

.bm-ref-detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.bm-ref-inline-form {
    margin: 0;
    display: inline-flex;
}

.bm-gifticon-apply-frame {
    display: none;
    width: 0;
    height: 0;
    border: 0;
}

.bm-ref-detail-actions .bm-ref-card-btn {
    border-color: #12d5d3;
    background: #333333;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    border-radius: 4px;
    font-weight: 500;
}

.bm-ref-exchange-form-panel {
    overflow: hidden;
    border: 1px solid #ffa048;
    border-radius: 16px;
    background: #fff;
}

.bm-ref-form-head {
    padding: 14px 18px;
    background: #fe2828;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.bm-ref-exchange-form {
    padding: 14px 16px 18px;
}

.bm-ref-form-actions {
    justify-content: center;
}

.bm-ref-form-actions .btn_submit {
    width: 100%;
}

.bm-ref-history-table-wrap {
    margin-top: -7px;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.bm-ref-history-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.bm-ref-history-table th {
    height: 34px;
    padding: 0 10px;
    background: #032b2b;
    color: #fff;
    font-size: 16.25px;
    font-weight: 800;
    text-align: center;
    vertical-align: middle;
    line-height: 34px;
    white-space: nowrap;
}

.bm-ref-history-table td {
    height: 48px;
    padding: 0 10px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #fff;
    background: #1f1f1f;
    font-size: 13px;
    text-align: center;
    vertical-align: middle;
    line-height: 1;
    white-space: nowrap;
}

.bm-ref-history-table td:nth-child(2) {
    text-align: left;
    font-size: 14.95px;
}

.bm-ref-history-table td:nth-child(3),
.bm-ref-history-table td:nth-child(4) {
    font-size: 14.95px;
}

.bm-ref-history-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74.4px;
    height: 28.8px;
    border-radius: 2px;
    color: #fff;
    font-size: 14.85px;
    font-weight: 800;
    line-height: 1;
}

.bm-ref-history-badge.pending {
    background: #1d4ed8;
}

.bm-ref-history-badge.complete {
    background: #16a34a;
}

.bm-ref-history-badge.hold {
    background: #6d28d9;
}

.bm-ref-history-badge.cancel {
    background: #6b7280;
}

.bm-gifticon-writer-with-level {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    justify-content: flex-start;
}

.bm-gifticon-level-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    flex-shrink: 0;
}

.bm-gifticon-level-icon-img {
    display: inline-block;
    width: 25px;
    height: 25px;
    border-radius: 3px;
    object-fit: cover;
    vertical-align: middle;
    flex-shrink: 0;
}

.bm-gifticon-writer-nick {
    color: #d7d7d7;
    display: inline-block;
    white-space: nowrap;
    font-size: 15px;
    line-height: 1.4;
}

.bm-gifticon-writer-with-level.bm-writer-admin .bm-admin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background-image: url('../img/favicon-32x32.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: transparent;
    font-size: 0;
    line-height: 1;
    flex-shrink: 0;
}

.bm-gifticon-writer-with-level.bm-writer-admin .bm-admin-icon i {
    display: none;
}

.bm-gifticon-level-chip.bm-level-grade-1 {background:#616161;color:#ffffff}
.bm-gifticon-level-chip.bm-level-grade-2 {background:#42A5F5;color:#ffffff}
.bm-gifticon-level-chip.bm-level-grade-3 {background:#66BB6A;color:#ffffff}
.bm-gifticon-level-chip.bm-level-grade-4 {background:#AB47BC;color:#ffffff}
.bm-gifticon-level-chip.bm-level-grade-5 {background:#FFA726;color:#111111}
.bm-gifticon-level-chip.bm-level-grade-6 {background:#8b5cf6;color:#ffffff}
.bm-gifticon-level-chip.bm-level-grade-7 {background:#ec4899;color:#ffffff}
.bm-gifticon-level-chip.bm-level-grade-8 {background:#22c55e;color:#082b14}
.bm-gifticon-level-chip.bm-level-grade-9 {background:#f97316;color:#111111}
.bm-gifticon-level-chip.bm-level-grade-10 {background:#111827;color:#fef08a}

.bm-ref-history-table td.empty_table {
    text-align: center;
}

@media (max-width: 1100px) {
    .bm-ref-detail-top {
        flex-direction: column;
    }

    .bm-ref-detail-row {
        grid-template-columns: 110px minmax(0, 1fr);
        min-height: 58px;
    }

    .bm-ref-detail-actions {
        justify-content: flex-end;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .bm-ref-detail-actions .bm-ref-card-btn {
        width: auto;
    }

    .bm-ref-inline-form {
        width: auto;
    }

    .bm-ref-history-table th:first-child,
    .bm-ref-history-table td:first-child {
        display: none;
    }

    .bm-ref-history-table {
        table-layout: fixed;
    }

    .bm-ref-history-table th {
        font-size: clamp(14px,3.5vw,16px);
        padding: 0 3px;
    }

    .bm-ref-history-table td {
        font-size: clamp(14px,3.3vw,16px);
        padding: 0 3px;
        white-space: normal;
        word-break: keep-all;
    }

    .bm-ref-history-table th:nth-child(4),
    .bm-ref-history-table td:nth-child(4) {
        display: none;
    }

    .bm-ref-history-table th:nth-child(2),
    .bm-ref-history-table td:nth-child(2) {
        width: 46%;
    }

    .bm-ref-history-table th:nth-child(3),
    .bm-ref-history-table td:nth-child(3) {
        width: 24%;
    }

    .bm-ref-history-table th:nth-child(5),
    .bm-ref-history-table td:nth-child(5) {
        width: 30%;
    }

    .bm-gifticon-writer-with-level {
        gap: 3px;
        width: 100%;
    }

    .bm-gifticon-level-chip {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }

    .bm-gifticon-level-icon-img {
        width: 20px;
        height: 20px;
    }

    .bm-gifticon-writer-nick {
        font-size: clamp(12px,3.1vw,15px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bm-ref-history-badge {
        min-width: clamp(52px,14vw,74px);
        height: 24px;
        font-size: clamp(14px,3.7vw,17px);
        padding: 0 6px;
    }
}
