/* g5sol 게시판 스킨 + 메인 최신글 — theme/basic/css/g5sol_bd.css (2026-09-25)
   시안: docs/mockup_board_v1/ (spec.md 5·7·10·11장). 원본 mockup_board.css(.bd-* .gl-*) + mockup_latest.css(.lt-* .lg-*)를 이식.
   - 불러오는 곳: skin/board/g5sol_board · g5sol_gallery (PC·모바일), theme/basic/skin/latest/g5sol_latest(_gallery), skin/member/basic/password.skin.php
   - 범위: 모든 규칙은 .bd-page / .lt-box / .lg / .lg-empty 아래로 한정(다른 화면에 영향 없음). body:has(.bd-page) 규칙은 새 스킨 화면에서만 적용.
   - 토큰: --g5-*(g5sol_ht.css .g5-ht 범위 — 래퍼에 g5-ht 클래스를 붙인다). 새 값은 --bd-* / --lt-*(spec 5장 표)만.
   - 흰 글자 파란 배지(고정 공지·운영자 답변·현재 페이지)는 --g5-accent-hover(#2563eb, 흰 글자 5.2:1 — PM 결정 5).
   - 이식 제외: .bd-mock-note .bd-state-cap .gl-tag .gl-ph__f .is-focus, 시안 에디터 툴바, body.ht-body--mobile 푸터 블록, .ht-footer .pm-adult, .mk-* 셸 */

.bd-page { --bd-input-h: 48px; --bd-btn-h: 48px; --bd-btn-h-sm: 44px; --bd-row-h: 56px; --bd-focus: 0 0 0 3px rgba(59,130,246,.28); --bd-new: #ef4444; --bd-ok: #15803d; --bd-ok-soft: #f0fdf4; --bd-ok-line: #bbf7d0; --bd-wait: #b45309; --bd-wait-soft: #fffbeb; --bd-wait-line: #fde68a; --bd-pin-bg: #f5f8ff; --bd-row-line: #f1f2f4; --bd-danger: #dc2626; --bd-info-line: #bfdbfe; --bd-col: 840px; width: 100%; max-width: var(--g5-max); margin: 0 auto; padding: 40px var(--g5-pad-x) 72px; color: var(--g5-ink); font-size: 15px; line-height: 1.5; word-break: keep-all; overflow-wrap: break-word; }
.bd-page *, .bd-page *::before, .bd-page *::after { box-sizing: border-box; }
:where(.bd-page) :where(h1, h2, h3, p) { margin: 0; }
.bd-page table { border-collapse: collapse; border-spacing: 0; width: 100%; }
.bd-page .ht-ico { width: 18px; height: 18px; }
.bd-page .bd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.bd-page :focus-visible { outline: 2px solid var(--g5-accent); outline-offset: 2px; border-radius: 6px; }
.bd-page .bd-col { max-width: var(--bd-col); margin: 0 auto; }
.bd-page .bd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.bd-page .bd-head__txt { min-width: 0; }
.bd-page .bd-crumb { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--g5-accent); }
.bd-page .bd-crumb a:hover { text-decoration: underline; }
.bd-page .bd-crumb .ht-ico { width: 14px; height: 14px; color: var(--g5-muted-2); }
.bd-page .bd-title { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.bd-page .bd-desc { margin-top: 6px; font-size: 15px; color: var(--g5-muted); }
.bd-page .bd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--bd-btn-h); padding: 0 22px; font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap; border-radius: var(--g5-radius-pill); border: 1px solid transparent; transition: background .15s, box-shadow .15s, border-color .15s, color .15s; }
.bd-page .bd-btn .ht-ico { width: 18px; height: 18px; }
.bd-page .bd-btn--primary { color: #fff; background: var(--g5-secondary-grad); box-shadow: 0 4px 12px rgba(99,102,241,.28); }
.bd-page .bd-btn--primary:hover { box-shadow: 0 6px 16px rgba(99,102,241,.36); }
.bd-page .bd-btn--ghost { color: var(--g5-ink); background: #fff; border-color: var(--g5-line-strong); }
.bd-page .bd-btn--ghost:hover { border-color: #9ca3af; background: #f9fafb; }
.bd-page .bd-btn--soft { color: var(--g5-accent-hover); background: var(--g5-accent-soft); border-color: var(--bd-info-line); }
.bd-page .bd-btn--text { height: 44px; padding: 0 10px; color: var(--g5-muted); font-weight: 600; font-size: 14px; }
.bd-page .bd-btn--text:hover { color: var(--g5-ink); background: #f3f4f6; }
.bd-page .bd-btn--danger-text:hover { color: var(--bd-danger); background: #fef2f2; }
.bd-page .bd-btn--sm { height: var(--bd-btn-h-sm); padding: 0 18px; font-size: 14px; }
.bd-page .bd-btn--block { width: 100%; }
.bd-page .bd-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; min-height: 44px; }
.bd-page .bd-count { font-size: 14px; color: var(--g5-muted); }
.bd-page .bd-count strong { color: var(--g5-ink); font-weight: 800; }
.bd-page .bd-search { display: flex; align-items: center; gap: 0; height: 44px; min-width: 0; background: #fff; border: 1px solid var(--g5-line-strong); border-radius: var(--g5-radius-pill); overflow: hidden; }
.bd-page .bd-search:focus-within { border-color: var(--g5-accent); box-shadow: var(--bd-focus); }
.bd-page .bd-search select { height: 100%; border: 0; background: transparent; padding: 0 28px 0 16px; font: inherit; font-size: 14px; font-weight: 600; color: var(--g5-ink-2); appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 14px; background-position: right 10px center; }
.bd-page .bd-search__sep { width: 1px; height: 20px; background: var(--g5-line); flex-shrink: 0; }
.bd-page .bd-search input { flex: 1 1 auto; min-width: 0; width: 220px; height: 100%; border: 0; outline: 0; padding: 0 12px; font: inherit; font-size: 14px; background: transparent; color: var(--g5-ink); }
.bd-page .bd-search input::placeholder { color: var(--g5-muted-2); }
.bd-page .bd-search button { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; color: var(--g5-ink-2); }
.bd-page .bd-search button:hover { color: var(--g5-accent); }
.bd-page .bd-iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--g5-ink-2); background: #fff; border: 1px solid var(--g5-line); }
.bd-page .bd-iconbtn .ht-ico { width: 20px; height: 20px; }
.bd-page .bd-cate { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.bd-page .bd-cate a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--g5-ink-2); background: #fff; border: 1px solid var(--g5-line); border-radius: var(--g5-radius-pill); }
.bd-page .bd-cate a[aria-current] { color: var(--g5-accent-hover); background: var(--g5-accent-soft); border-color: var(--bd-info-line); }
.bd-page .bd-card { background: var(--g5-surface); border: 1px solid var(--g5-line); border-radius: var(--g5-radius-lg); box-shadow: var(--g5-shadow-sm); }
.bd-page .bd-table { table-layout: fixed; }
.bd-page .bd-table thead th { height: 48px; padding: 0 12px; font-size: 13px; font-weight: 700; color: var(--g5-muted); text-align: center; border-bottom: 1px solid var(--g5-line); background: #fafbfc; }
.bd-page .bd-table thead th:first-child { border-top-left-radius: var(--g5-radius-lg); }
.bd-page .bd-table thead th:last-child { border-top-right-radius: var(--g5-radius-lg); }
.bd-page .bd-table thead th.is-subj { text-align: left; padding-left: 8px; }
.bd-page .bd-table td { height: var(--bd-row-h); padding: 0 12px; font-size: 14px; color: var(--g5-muted); text-align: center; border-top: 1px solid var(--bd-row-line); white-space: nowrap; }
.bd-page .bd-table tbody tr:first-child td { border-top: 0; }
.bd-page .bd-table tbody tr:hover td { background: #fafbfc; }
.bd-page .bd-table td.is-num { font-size: 13px; font-variant-numeric: tabular-nums; }
.bd-page .bd-table td.is-date { font-variant-numeric: tabular-nums; }
.bd-page .bd-table td.is-name { color: var(--g5-ink-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.bd-page .bd-table td.is-subj { text-align: left; padding-left: 8px; }
.bd-page .bd-table col.c-num { width: 80px; }
.bd-page .bd-table col.c-state { width: 104px; }
.bd-page .bd-table col.c-name { width: 132px; }
.bd-page .bd-table col.c-date { width: 96px; }
.bd-page .bd-table col.c-hit { width: 72px; }
.bd-page .bd-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--g5-radius-lg); }
.bd-page .bd-table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--g5-radius-lg); }
.bd-page .bd-subj { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; color: var(--g5-ink); }
.bd-page .bd-subj__txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 500; }
.bd-page a.bd-subj:hover .bd-subj__txt { color: var(--g5-accent); text-decoration: underline; text-underline-offset: 3px; }
.bd-page .bd-cmt { flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--g5-accent); font-variant-numeric: tabular-nums; }
.bd-page .bd-cmt .ht-ico { width: 14px; height: 14px; }
.bd-page .bd-new { flex-shrink: 0; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; font-size: 10px; font-weight: 800; color: #fff; background: var(--bd-new); line-height: 1; }
.bd-page .bd-lock { flex-shrink: 0; width: 16px !important; height: 16px !important; color: var(--g5-muted); }
.bd-page .bd-subj.is-masked { color: var(--g5-muted); }
.bd-page .bd-subj.is-masked .bd-subj__txt { font-weight: 500; }
.bd-page .bd-mine { flex-shrink: 0; padding: 1px 6px; font-size: 11px; font-weight: 700; line-height: 1.6; color: var(--g5-accent-hover); background: var(--g5-accent-soft); border-radius: 4px; }
.bd-page .bd-table tr.is-pin td { background: var(--bd-pin-bg); }
.bd-page .bd-table tr.is-pin:hover td { background: #edf3ff; }
.bd-page .bd-table tr.is-pin .bd-subj__txt { font-weight: 700; }
.bd-page .bd-pin { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; font-size: 12px; font-weight: 800; line-height: 1.4; color: #fff; background: var(--g5-accent-hover); border-radius: var(--g5-radius-pill); }
.bd-page .bd-pin .ht-ico { width: 13px; height: 13px; stroke-width: 2.2; }
.bd-page .bd-state { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; font-size: 12px; font-weight: 700; line-height: 1; border-radius: var(--g5-radius-pill); border: 1px solid; white-space: nowrap; }
.bd-page .bd-state .ht-ico { width: 13px; height: 13px; stroke-width: 2.4; }
.bd-page .bd-state--done { color: var(--bd-ok); background: var(--bd-ok-soft); border-color: var(--bd-ok-line); }
.bd-page .bd-state--wait { color: var(--bd-wait); background: var(--bd-wait-soft); border-color: var(--bd-wait-line); }
.bd-page .bd-badge { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; font-size: 12px; font-weight: 700; line-height: 1; color: var(--g5-ink-2); background: #f3f4f6; border-radius: var(--g5-radius-pill); white-space: nowrap; }
.bd-page .bd-badge .ht-ico { width: 13px; height: 13px; }
.bd-page .bd-mlist > li + li { border-top: 1px solid var(--bd-row-line); }
.bd-page .bd-mitem { display: block; padding: 14px 16px; min-height: 64px; color: var(--g5-ink); }
.bd-page .bd-mitem:active { background: #fafbfc; }
.bd-page .bd-mitem__top { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.bd-page .bd-mitem__subj { flex: 0 1 auto; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bd-page .bd-mitem__top .bd-cmt, .bd-page .bd-mitem__top .bd-new, .bd-page .bd-mitem__top .bd-lock { margin-top: 2px; }
.bd-page .bd-mitem__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; font-size: 12px; color: var(--g5-muted); font-variant-numeric: tabular-nums; }
.bd-page .bd-mitem__meta .is-name { color: var(--g5-ink-2); font-weight: 600; }
.bd-page .bd-mitem__meta .bd-dot { width: 2px; height: 2px; border-radius: 50%; background: var(--g5-muted-2); }
.bd-page .bd-mitem.is-pin { background: var(--bd-pin-bg); }
.bd-page .bd-mitem.is-pin .bd-mitem__subj { font-weight: 800; }
.bd-page .bd-mitem.is-masked .bd-mitem__subj { color: var(--g5-muted); font-weight: 500; }
.bd-page .bd-mitem .bd-state, .bd-page .bd-mitem .bd-pin { height: 22px; padding: 0 8px; font-size: 11px; }
.bd-page .bd-mitem .bd-pin { height: auto; padding: 2px 8px; }
.bd-page .bd-pages { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 24px; }
.bd-page .bd-pages a, .bd-page .bd-pages strong { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 6px; font-size: 14px; font-weight: 700; border-radius: 12px; color: var(--g5-ink-2); font-variant-numeric: tabular-nums; }
.bd-page .bd-pages a:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--g5-line-strong); }
.bd-page .bd-pages strong { color: #fff; background: var(--g5-accent-hover); }
.bd-page .bd-pages .is-off { color: var(--g5-muted-2); pointer-events: none; }
.bd-page .bd-pages .ht-ico { width: 18px; height: 18px; }
.bd-page .bd-article { padding: 32px 36px; }
.bd-page .bd-article__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bd-page .bd-article__title { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; }
.bd-page .bd-article__meta { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--g5-line); }
.bd-page .bd-av { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 800; color: var(--g5-accent-hover); background: var(--g5-accent-mid); }
.bd-page .bd-av--admin { color: #fff; background: var(--g5-secondary-grad); font-size: 11px; letter-spacing: -0.02em; }
.bd-page .bd-av--sm { width: 36px; height: 36px; font-size: 14px; }
.bd-page .bd-who { min-width: 0; flex: 1; }
.bd-page .bd-who__name { font-size: 15px; font-weight: 700; color: var(--g5-ink); display: flex; align-items: center; gap: 6px; }
.bd-page .bd-who__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 2px; font-size: 13px; color: var(--g5-muted); font-variant-numeric: tabular-nums; }
.bd-page .bd-who__sub span { display: inline-flex; align-items: center; gap: 4px; }
.bd-page .bd-who__sub .ht-ico { width: 14px; height: 14px; }
.bd-page .bd-article__body { padding: 28px 0 8px; font-size: 16px; line-height: 1.8; color: var(--g5-ink-2); }
.bd-page .bd-article__body p + p { margin-top: 2px; }
.bd-page .bd-article__body img { max-width: 100%; height: auto; border-radius: 12px; }
.bd-page .bd-article__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--g5-line); }
.bd-page .bd-article__foot .bd-owner { display: flex; gap: 4px; }
.bd-page .bd-article__foot .bd-owner .ht-ico { width: 16px; height: 16px; }
.bd-page .bd-prevnext { margin-top: 16px; }
.bd-page .bd-prevnext a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px; font-size: 14px; color: var(--g5-ink); }
.bd-page .bd-prevnext li + li { border-top: 1px solid var(--bd-row-line); }
.bd-page .bd-prevnext .is-lbl { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; width: 76px; font-size: 13px; font-weight: 700; color: var(--g5-muted); }
.bd-page .bd-prevnext .is-lbl .ht-ico { width: 16px; height: 16px; }
.bd-page .bd-prevnext .is-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.bd-page .bd-prevnext .is-d { flex-shrink: 0; font-size: 13px; color: var(--g5-muted); font-variant-numeric: tabular-nums; }
.bd-page .bd-prevnext a:hover .is-t { color: var(--g5-accent); }
.bd-page .bd-listbar { display: flex; justify-content: space-between; gap: 8px; margin-top: 20px; }
.bd-page .bd-answer { margin-top: 20px; padding: 24px 28px; border-radius: var(--g5-radius-lg); background: var(--g5-accent-soft); border: 1px solid var(--bd-info-line); }
.bd-page .bd-answer__head { display: flex; align-items: center; gap: 12px; }
.bd-page .bd-answer__label { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; font-size: 12px; font-weight: 800; color: #fff; background: var(--g5-accent-hover); border-radius: var(--g5-radius-pill); }
.bd-page .bd-answer__label .ht-ico { width: 13px; height: 13px; stroke-width: 2.2; }
.bd-page .bd-answer__body { margin-top: 14px; font-size: 15px; line-height: 1.75; color: var(--g5-ink-2); white-space: pre-line; }
.bd-page .bd-answer__note { margin-top: 12px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--g5-muted); }
.bd-page .bd-answer__note .ht-ico { width: 14px; height: 14px; }
.bd-page .bd-wait-box { margin-top: 20px; display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: var(--g5-radius); background: var(--bd-wait-soft); border: 1px solid var(--bd-wait-line); color: #92400e; font-size: 14px; }
.bd-page .bd-wait-box .ht-ico { width: 20px; height: 20px; }
.bd-page .bd-cmts { margin-top: 20px; padding: 24px 28px 28px; }
.bd-page .bd-cmts__title { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 800; }
.bd-page .bd-cmts__title em { font-style: normal; color: var(--g5-accent); }
.bd-page .bd-clist { margin-top: 8px; }
.bd-page .bd-clist > li { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--bd-row-line); }
.bd-page .bd-clist > li.is-reply { padding-left: 48px; }
.bd-page .bd-c__main { flex: 1; min-width: 0; }
.bd-page .bd-c__head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.bd-page .bd-c__name { font-size: 14px; font-weight: 700; }
.bd-page .bd-c__time { font-size: 12px; color: var(--g5-muted); font-variant-numeric: tabular-nums; }
.bd-page .bd-c__author { padding: 1px 6px; font-size: 11px; font-weight: 700; color: var(--g5-muted); background: #f3f4f6; border-radius: 4px; }
.bd-page .bd-c__body { margin-top: 4px; font-size: 15px; line-height: 1.65; color: var(--g5-ink-2); white-space: pre-line; }
.bd-page .bd-c__acts { display: flex; gap: 2px; margin: -2px 0 -8px -10px; }
.bd-page .bd-c__acts .bd-btn--text { height: 44px; font-size: 13px; }
.bd-page .bd-c__secret { display: flex; align-items: center; gap: 6px; color: var(--g5-muted); font-size: 14px; }
.bd-page .bd-cform { margin-top: 20px; }
.bd-page .bd-cform__box { border: 1px solid var(--g5-line-strong); border-radius: var(--g5-radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s; }
.bd-page .bd-cform__box:focus-within { border-color: var(--g5-accent); box-shadow: var(--bd-focus); }
.bd-page .bd-cform textarea { display: block; width: 100%; min-height: 96px; padding: 14px 16px; border: 0; outline: 0; resize: vertical; background: transparent; font: inherit; font-size: 15px; line-height: 1.6; color: var(--g5-ink); border-radius: var(--g5-radius-sm); }
.bd-page .bd-cform textarea::placeholder { color: var(--g5-muted-2); }
.bd-page .bd-cform__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; border-top: 1px solid var(--bd-row-line); }
.bd-page .bd-cform__bar .bd-btn { height: 44px; padding: 0 20px; font-size: 14px; }
.bd-page .bd-cform__count { font-size: 12px; color: var(--g5-muted-2); font-variant-numeric: tabular-nums; }
.bd-page .bd-cform__login { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: var(--g5-radius-sm); background: #f9fafb; border: 1px dashed var(--g5-line-strong); font-size: 14px; color: var(--g5-muted); }
.bd-page .bd-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--g5-ink-2); position: relative; }
.bd-page .bd-check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.bd-page .bd-check__box { flex-shrink: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; border: 1.5px solid var(--g5-line-strong); background: #fff; color: transparent; }
.bd-page .bd-check__box .ht-ico { width: 14px; height: 14px; stroke-width: 3; }
.bd-page .bd-check input:checked + .bd-check__box { background: var(--g5-accent); border-color: var(--g5-accent); color: #fff; }
.bd-page .bd-check input:focus-visible + .bd-check__box { box-shadow: var(--bd-focus); }
.bd-page .bd-check .ht-ico.is-lead { width: 16px; height: 16px; color: var(--g5-muted); }
.bd-page .bd-form { padding: 32px; }
.bd-page .bd-field + .bd-field { margin-top: 24px; }
.bd-page .bd-label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--g5-ink); }
.bd-page .bd-label .req { font-size: 12px; font-weight: 700; color: var(--g5-accent); }
.bd-page .bd-label .opt { font-size: 12px; font-weight: 600; color: var(--g5-muted-2); }
.bd-page .bd-input { display: block; width: 100%; height: var(--bd-input-h); padding: 0 14px; font: inherit; font-size: 15px; color: var(--g5-ink); background: #fff; border: 1px solid var(--g5-line-strong); border-radius: var(--g5-radius-sm); outline: 0; transition: border-color .15s, box-shadow .15s; }
.bd-page .bd-input::placeholder { color: var(--g5-muted-2); }
.bd-page .bd-input:hover { border-color: #9ca3af; }
.bd-page .bd-input:focus { border-color: var(--g5-accent); box-shadow: var(--bd-focus); }
.bd-page .bd-input-wrap { position: relative; }
.bd-page .bd-input-wrap .ht-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--g5-muted-2); }
.bd-page .bd-input-wrap .bd-input { padding-left: 42px; }
.bd-page .bd-input-count { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--g5-muted-2); font-variant-numeric: tabular-nums; }
.bd-page .bd-input--count { padding-right: 72px; }
.bd-page .bd-help { display: flex; align-items: flex-start; gap: 6px; margin-top: 7px; font-size: 13px; color: var(--g5-muted); line-height: 1.5; }
.bd-page .bd-help .ht-ico { width: 15px; height: 15px; margin-top: 2px; flex-shrink: 0; }
.bd-page .bd-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bd-page .bd-optbox { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding: 6px 16px; border-radius: var(--g5-radius-sm); background: #f9fafb; border: 1px solid var(--g5-line); }
.bd-page .bd-optbox .bd-help { margin: 0 0 8px; flex-basis: 100%; }
.bd-page .bd-editor { border: 1px solid var(--g5-line-strong); border-radius: var(--g5-radius-sm); background: #fff; overflow: hidden; }
.bd-page .bd-file { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 6px 6px 14px; border: 1px dashed var(--g5-line-strong); border-radius: var(--g5-radius-sm); background: #fafbfc; }
.bd-page .bd-file + .bd-file { margin-top: 8px; }
.bd-page .bd-file > .ht-ico { width: 20px; height: 20px; color: var(--g5-muted); flex-shrink: 0; }
.bd-page .bd-file__name { flex: 1; min-width: 0; font-size: 14px; color: var(--g5-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-page .bd-file input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bd-page .bd-file .bd-btn { height: 44px; padding: 0 16px; font-size: 14px; }
.bd-page .bd-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--g5-line); }
.bd-page .bd-actions .bd-btn--ghost { min-width: 120px; }
.bd-page .bd-actions .bd-btn--primary { min-width: 160px; }
.bd-page .bd-pw { max-width: 480px; margin: 24px auto 0; padding: 40px 36px 32px; text-align: center; }
.bd-page .bd-pw__ico { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: var(--g5-accent); background: var(--g5-accent-soft); box-shadow: 0 0 0 8px #f5f8ff; }
.bd-page .bd-pw__ico .ht-ico { width: 28px; height: 28px; }
.bd-page .bd-pw__title { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.bd-page .bd-pw__desc { margin-top: 8px; font-size: 15px; color: var(--g5-muted); line-height: 1.6; }
.bd-page .bd-pw__post { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; margin: 18px 0 0; padding: 12px 14px; font-size: 13px; color: var(--g5-muted); background: #f9fafb; border-radius: var(--g5-radius-sm); }
.bd-page .bd-pw__post strong { color: var(--g5-ink-2); font-weight: 700; }
.bd-page .bd-pw form { margin-top: 24px; text-align: left; }
.bd-page .bd-pw .bd-btn--primary { margin-top: 12px; }
.bd-page .bd-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; font-size: 13px; color: var(--g5-muted); }
.bd-page .bd-divider::before, .bd-page .bd-divider::after { content: ""; flex: 1; height: 1px; background: var(--g5-line); }
.bd-page .bd-pw__back { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; min-height: 44px; padding: 0 8px; font-size: 14px; font-weight: 600; color: var(--g5-muted); }
.bd-page .bd-pw__back .ht-ico { width: 16px; height: 16px; }
.bd-page .bd-empty { padding: 64px 24px; text-align: center; }
.bd-page .bd-empty__ico { width: 56px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 16px; color: var(--g5-muted-2); background: #f3f4f6; }
.bd-page .bd-empty__ico .ht-ico { width: 26px; height: 26px; }
.bd-page .bd-empty__t { font-size: 17px; font-weight: 800; color: var(--g5-ink); }
.bd-page .bd-empty__d { margin-top: 6px; font-size: 14px; color: var(--g5-muted); }
.bd-page .bd-empty .bd-btn { margin-top: 20px; }
.bd-page .gl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.bd-page .gl-card { display: flex; flex-direction: column; min-width: 0; background: var(--g5-surface); border: 1px solid var(--g5-line); border-radius: var(--g5-radius-lg); overflow: hidden; box-shadow: var(--g5-shadow-sm); transition: box-shadow .18s, transform .18s; }
.bd-page .gl-card:hover { box-shadow: var(--g5-shadow); transform: translateY(-3px); }
.bd-page .gl-card:focus-visible { outline: 3px solid var(--g5-accent); outline-offset: 2px; }
.bd-page .gl-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #eef0f3; }
.bd-page .gl-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.bd-page .gl-media.is-ph { display: grid; place-content: center; justify-items: center; gap: 6px; color: #9ca3af; background: repeating-linear-gradient(135deg, #f3f4f6 0 12px, #eceef1 12px 24px); }
.bd-page .gl-media.is-ph .ht-ico { width: 30px; height: 30px; }
.bd-page .gl-ph__t { font-size: 12px; font-weight: 700; color: #6b7280; }
.bd-page .gl-new { position: absolute; top: 10px; right: 10px; }
.bd-page .gl-body { padding: 12px 14px 14px; min-width: 0; }
.bd-page .gl-title { font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--g5-ink); letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.45em * 2); }
.bd-page .gl-card:hover .gl-title { color: var(--g5-accent); }
.bd-page .gl-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--g5-muted); font-variant-numeric: tabular-nums; min-width: 0; }
.bd-page .gl-meta .is-name { color: var(--g5-ink-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bd-page .gl-meta .bd-dot { flex-shrink: 0; width: 2px; height: 2px; border-radius: 50%; background: var(--g5-muted-2); }
.bd-page .gl-meta .is-date { flex-shrink: 0; }
.bd-page--m { padding: 20px 16px 32px; }
.bd-page--m .bd-head { align-items: center; margin-bottom: 14px; gap: 12px; }
.bd-page--m .bd-crumb { font-size: 12px; margin-bottom: 2px; }
.bd-page--m .bd-title { font-size: 22px; }
.bd-page--m .bd-desc { font-size: 13px; margin-top: 2px; }
.bd-page--m .bd-head .bd-btn { flex-shrink: 0; height: 44px; padding: 0 16px; font-size: 14px; }
.bd-page--m .bd-toolbar { margin-bottom: 10px; }
.bd-page--m .bd-card { border-radius: var(--g5-radius); }
.bd-page--m .bd-pages { gap: 4px; margin-top: 20px; }
.bd-page--m .bd-pages a, .bd-page--m .bd-pages strong { min-width: 44px; height: 44px; }
.bd-page--m .bd-msearch { display: flex; gap: 8px; margin-top: 16px; }
.bd-page--m .bd-msearch .bd-search { flex: 1; }
.bd-page--m .bd-msearch .bd-search input { width: auto; font-size: 16px; }
.bd-page--m .bd-msearch .bd-search select { padding-left: 14px; }
.bd-page--m .bd-article { padding: 22px 18px; }
.bd-page--m .bd-article__title { font-size: 21px; }
.bd-page--m .bd-article__meta { margin-top: 14px; padding-bottom: 16px; }
.bd-page--m .bd-article__body { padding: 20px 0 4px; font-size: 16px; line-height: 1.75; }
.bd-page--m .bd-article__foot { margin-top: 16px; padding-top: 12px; }
.bd-page--m .bd-answer { padding: 18px; margin-top: 12px; border-radius: var(--g5-radius); }
.bd-page--m .bd-answer__body { font-size: 15px; }
.bd-page--m .bd-cmts { margin-top: 12px; padding: 18px 18px 20px; }
.bd-page--m .bd-clist > li { gap: 10px; padding: 14px 0; }
.bd-page--m .bd-clist > li.is-reply { padding-left: 28px; }
.bd-page--m .bd-cform textarea { font-size: 16px; }
.bd-page--m .bd-prevnext { margin-top: 12px; }
.bd-page--m .bd-prevnext a { padding: 0 16px; gap: 10px; }
.bd-page--m .bd-prevnext .is-lbl { width: auto; }
.bd-page--m .bd-prevnext .is-d { display: none; }
.bd-page--m .bd-listbar { margin-top: 16px; }
.bd-page--m .bd-listbar .bd-btn { flex: 1; }
.bd-page--m .bd-form { padding: 22px 18px; }
.bd-page--m .bd-input { font-size: 16px; }
.bd-page--m .bd-grid2 { grid-template-columns: 1fr; }
.bd-page--m .bd-actions { margin-top: 22px; padding-top: 20px; }
.bd-page--m .bd-actions .bd-btn--ghost { min-width: 96px; }
.bd-page--m .bd-actions .bd-btn--primary { flex: 1; min-width: 0; }
.bd-page--m .bd-file { flex-wrap: nowrap; }
.bd-page--m .bd-pw { margin-top: 8px; padding: 28px 20px 22px; border-radius: var(--g5-radius); }
.bd-page--m .bd-pw__title { font-size: 21px; }
.bd-page--m .bd-pw__desc { font-size: 14px; }
.bd-page--m .gl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bd-page--m .gl-card { border-radius: var(--g5-radius); }
.bd-page--m .gl-body { padding: 10px 12px 12px; }
.bd-page--m .gl-title { font-size: 14px; }
.bd-page--m .gl-media.is-ph .ht-ico { width: 24px; height: 24px; }
.bd-page--m .bd-empty { padding: 48px 20px; }
@media (max-width: 359px) {
  .bd-page--m { padding-left: 12px; padding-right: 12px; }
  .bd-page--m .bd-title { font-size: 20px; }
  .bd-page--m .bd-head .bd-btn { padding: 0 14px; }
  .bd-page--m .bd-desc { display: none; }
  .bd-page--m .gl-grid { gap: 8px; }
  .bd-page--m .gl-body { padding: 9px 10px 10px; }
  .bd-page--m .bd-article { padding: 20px 14px; }
  .bd-page--m .bd-cmts, .bd-page--m .bd-answer { padding-left: 14px; padding-right: 14px; }
  .bd-page--m .bd-form { padding: 20px 14px; }
}
@media (max-width: 1023px) {
  .bd-page:not(.bd-page--m) .gl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .bd-page:not(.bd-page--m) .bd-table col.c-hit { width: 0; }
}


/* ======================================================================
   Live adaptation (라이브 테마 셸에 맞춤)
   ====================================================================== */
/* 스킨이 자체 머리(분류·제목·설명)를 그리므로 테마 제목줄 숨김(PC h2 / 모바일 h2.top) — spec 10.9 */
body:has(.bd-page) #container_title { display: none !important; }
/* legacy default.css `#wrapper {min-width:1200px}` 해제(= g5sol_mb.css) */
body:has(.bd-page) #wrapper.ht-wrapper { min-width: 0; }
/* PC: #container_wr 가 이미 max 1200 + 좌우 24, #container margin-top 24, 푸터 margin-top 64 → 합계 40 / 72 (시안 여백) */
.bd-page:not(.bd-page--m) { max-width: none; padding: 16px 0 8px; }
/* 모바일: #container margin-top 이 이미 있으므로 위 여백만 줄임 */
.bd-page--m { padding-top: 0; }

/* legacy form/table 스타일 차단 */
.bd-page input, .bd-page select, .bd-page textarea, .bd-page button { font-family: inherit; }
.bd-page table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.bd-page .bd-table th, .bd-page .bd-table td { border-left: 0; border-right: 0; }
.bd-page img { max-width: 100%; }
/* legacy mobile.css `p {word-break: break-all}` 차단 → 한글 단어 단위 줄바꿈(keep-all) 유지 */
.bd-page :where(p, li, td, th, h1, h2, h3, label), .lt-box :where(p, li), .lg :where(p, h3), .lg-empty :where(p) { word-break: inherit; }
.bd-page a.bd-btn--primary, .bd-page button.bd-btn--primary { color: #fff; }
/* legacy default.css/mobile.css `.required {background-image:require.png !important}` 별표 제거(필수 표시는 라벨 .req 로) */
.bd-page input.required, .bd-page textarea.required, .bd-page select.required { background-image: none !important; }

/* 검색 결과 줄 */
.bd-page .bd-result { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: -4px 0 12px; font-size: 14px; color: var(--g5-muted); }
.bd-page .bd-result strong { color: var(--g5-ink); font-weight: 800; }
.bd-page .bd-result a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px; font-weight: 600; color: var(--g5-accent-hover); }
.bd-page .bd-result a .ht-ico { width: 16px; height: 16px; }

/* 목록: 답글 들여쓰기 · 관리자 체크박스 · 선택 버튼 줄 */
.bd-page .bd-re { flex-shrink: 0; width: 16px !important; height: 16px !important; color: var(--g5-muted-2); transform: scaleY(-1); }
.bd-page .bd-table col.c-chk { width: 52px; }
.bd-page .bd-table col.c-good { width: 64px; }
.bd-page .bd-table .is-chk { padding: 0; }
.bd-page .bd-table .is-chk .bd-check { justify-content: center; min-height: 44px; }
.bd-page .bd-check__txt { font-weight: 600; }
.bd-page .bd-mitem-wrap { display: flex; align-items: stretch; }
.bd-page .bd-mitem-wrap > .bd-check { padding-left: 14px; }
.bd-page .bd-mitem-wrap > .bd-mitem { flex: 1; min-width: 0; }
.bd-page .bd-adminbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 12px; padding: 4px 8px; background: #fff; border: 1px solid var(--g5-line); border-radius: var(--g5-radius-sm); }
.bd-page .bd-adminbar .bd-btn--text .ht-ico { width: 16px; height: 16px; }
.bd-page .bd-adminbar__lbl { margin-right: auto; padding-left: 6px; font-size: 13px; font-weight: 700; color: var(--g5-muted); }
.bd-page .bd-toolbar__right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bd-page .bd-empty--search .bd-empty__t { overflow-wrap: anywhere; }

/* 보기: 첨부 · 링크 · 추천 · 본문 이미지 */
.bd-page .bd-article__body #bo_v_img img, .bd-page .bd-article__body .bd-v-img img { display: block; max-width: 100%; height: auto; margin: 0 auto 16px; border-radius: 12px; }
.bd-page .bd-article__body iframe, .bd-page .bd-article__body video { max-width: 100%; }
.bd-page .bd-article__body table { max-width: 100%; }
.bd-page .bd-article__body pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.bd-page .bd-attach { margin-top: 20px; }
.bd-page .bd-attach__title { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--g5-muted); }
.bd-page .bd-attach__title .ht-ico { width: 15px; height: 15px; }
.bd-page a.bd-file { color: var(--g5-ink); }
.bd-page a.bd-file:hover { border-color: var(--g5-accent); background: var(--g5-accent-soft); }
.bd-page .bd-file__meta { flex-shrink: 0; padding-right: 10px; font-size: 12px; color: var(--g5-muted); font-variant-numeric: tabular-nums; }
.bd-page a.bd-file .bd-file__name { color: var(--g5-ink); font-weight: 600; }
.bd-page .bd-good { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.bd-page .bd-good strong { font-variant-numeric: tabular-nums; }
.bd-page .bd-good b { display: none; }
.bd-page .bd-sign { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--g5-line); font-size: 14px; color: var(--g5-muted); }
.bd-page .bd-article__foot .bd-owner { flex-wrap: wrap; justify-content: flex-end; }
.bd-page .bd-article__title { overflow-wrap: anywhere; }
.bd-page .bd-who__name .ht-sr { position: absolute; }

/* 댓글: 액션 · 비밀/삭제 · 빈 목록 · 답글 폼 자리 */
.bd-page .bd-c__acts .bd-btn--text .ht-ico { width: 15px; height: 15px; }
.bd-page .bd-c__body a.s_cmt { color: var(--g5-accent-hover); font-weight: 600; }
.bd-page .bd-c__secret .ht-ico { width: 15px; height: 15px; }
.bd-page .bd-c__body > .bd-lock, .bd-page .bd-answer__body > .bd-lock { display: inline-block; vertical-align: -2px; margin-right: 4px; }
.bd-page .bd-av .ht-ico { width: 16px; height: 16px; color: var(--g5-muted); }
.bd-page .bd-av--lock { background: #f3f4f6; }
.bd-page .bd-cempty { padding: 20px 0 4px; font-size: 14px; color: var(--g5-muted); }
.bd-page .bd-cw:empty { display: none; }
.bd-page .bd-cw .bd-cform { margin-top: 12px; }
.bd-page .bd-answer .bd-c__acts { margin-top: 6px; }
.bd-page .bd-answer .bd-cw .bd-cform { margin-top: 12px; }
.bd-page .bd-cform__right { display: flex; align-items: center; gap: 12px; }
.bd-page .bd-cform__guest { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 10px 0; }
.bd-page .bd-cform__guest .bd-input { height: 44px; }
.bd-page .bd-cform__captcha { padding: 10px 10px 0; }
.bd-page .bd-cform__login .bd-btn { flex-shrink: 0; }
.bd-page .bd-help--cmts { margin-top: 6px; }

/* 글쓰기: 에디터 틀 · 임시저장 · 파일 · 캡차 */
.bd-page .bd-editor { min-height: 120px; }
.bd-page .bd-editor textarea { display: block; width: 100%; min-height: 280px; padding: 14px 16px; border: 0; outline: 0; resize: vertical; font: inherit; font-size: 15px; line-height: 1.7; color: var(--g5-ink); }
.bd-page--m .bd-editor textarea { min-height: 220px; font-size: 16px; }
.bd-page .bd-editor iframe { max-width: 100%; }
.bd-page #char_count_desc { margin-bottom: 8px; font-size: 13px; color: var(--g5-muted); }
.bd-page #char_count_wrap { padding: 6px 12px; font-size: 12px; color: var(--g5-muted); text-align: right; }
.bd-page .bd-subj-row { display: flex; gap: 8px; align-items: flex-start; }
.bd-page .bd-subj-row > .bd-input-wrap { flex: 1; min-width: 0; }
.bd-page #autosave_wrapper { position: relative; flex-shrink: 0; }
.bd-page #btn_autosave { height: var(--bd-input-h); padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--g5-ink-2); background: #fff; border: 1px solid var(--g5-line-strong); border-radius: var(--g5-radius-sm); white-space: nowrap; }
.bd-page #autosave_pop { display: none; position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; width: 320px; max-width: 80vw; padding: 12px; background: #fff; border: 1px solid var(--g5-line); border-radius: var(--g5-radius-sm); box-shadow: var(--g5-shadow); font-size: 13px; }
.bd-page #autosave_pop ul { margin: 8px 0; max-height: 220px; overflow: auto; }
.bd-page #autosave_pop li { display: flex; gap: 8px; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--bd-row-line); }
.bd-page #autosave_pop button { min-height: 32px; padding: 0 8px; color: var(--g5-muted); }
.bd-page .bd-file { position: relative; cursor: pointer; }
.bd-page .bd-file:focus-within { border-color: var(--g5-accent); box-shadow: var(--bd-focus); }
.bd-page .bd-file.has-file .bd-file__name { color: var(--g5-ink); font-weight: 600; }
.bd-page .bd-file-extra { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 0 4px; }
.bd-page .bd-file-extra .bd-input { height: 44px; }
.bd-page .bd-captcha fieldset, .bd-page #captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; position: relative; }
.bd-page #captcha legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.bd-page #captcha #captcha_img { height: 48px; width: auto; border-radius: var(--g5-radius-sm); border: 1px solid var(--g5-line); }
.bd-page #captcha #captcha_mp3, .bd-page #captcha #captcha_reload { width: 48px; height: 48px; margin: 0; padding: 3px; box-sizing: border-box; border: 1px solid var(--g5-line); border-radius: 12px; background-color: #fff; background-repeat: no-repeat; background-origin: content-box; background-clip: content-box; background-position: 0 0; text-indent: 0; overflow: hidden; color: transparent; }
/* live 2026-09-25: captcha2.png 는 40×80 스프라이트(위 스피커·아래 새로고침). 48px 버튼 안 40px 칸에 한 아이콘만 보이게 한다. 모바일 <audio> 300px 기본 폭이 fieldset(min-width:min-content)을 밀어 320 폭에서 넘치던 것도 막는다 */
.bd-page #captcha #captcha_reload { background-position: 0 -40px; }
.bd-page #captcha { min-width: 0; max-width: 100%; }
.bd-page #captcha.m_captcha audio { flex: 1 1 100%; width: 100%; max-width: 100%; height: 40px; margin: 0; }
.bd-page #captcha #captcha_key { flex: 1 1 120px; min-width: 0; height: 48px; margin: 0; padding: 0 14px; font-size: 16px; border: 1px solid var(--g5-line-strong); border-radius: var(--g5-radius-sm); }
.bd-page #captcha #captcha_info { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--g5-muted); }
.bd-page .bd-optbox .bd-check + .bd-check { margin-left: 0; }

/* 비밀번호(회원 스킨 password.skin.php) */
.bd-page .bd-pw__post { overflow-wrap: anywhere; }
.bd-page .bd-pw .bd-label { margin-top: 0; }

/* 갤러리(목록 카드) — 비밀글/이미지 없음 = 줄무늬 박스 */
.bd-page .gl-grid { margin: 0; padding: 0; list-style: none; }
.bd-page .gl-card { color: var(--g5-ink); height: 100%; }
.bd-page .gl-grid > li { min-width: 0; display: flex; }
.bd-page .gl-grid > li > .gl-card { flex: 1; }
.bd-page .gl-card.is-masked .gl-title { color: var(--g5-muted); font-weight: 600; }
.bd-page .gl-cmt { flex-shrink: 0; display: inline-flex; align-items: center; gap: 2px; color: var(--g5-accent); font-weight: 700; }
.bd-page .gl-cmt .ht-ico { width: 13px; height: 13px; }
.bd-page .gl-media .bd-lock { position: absolute; top: 10px; left: 10px; }
.bd-page .gl-chk { position: absolute; top: 6px; left: 6px; z-index: 2; min-height: 44px; padding: 0 8px; }
.bd-page .gl-grid > li { position: relative; }

/* 모바일 320: 테마 '맨 위로' 버튼(#top_btn, fixed · 탭바 위 12px)이 푸터 마지막 안내문
   “…성인 가상 인물입니다.” 끝을 가리지 않게, 새 스킨 화면에서만 푸터 아래 여백을 버튼 높이만큼 더 준다(PM 결정 6).
   새 스킨에는 고정/플로팅 글쓰기 버튼이 없다(글쓰기는 목록 머리 인라인 버튼 한 곳). */
@media (max-width: 359px) {
  body:has(.bd-page--m):has(#mob_bar) .g5-ht.ht-m-footer {
    padding-bottom: calc(20px + var(--mob-bar-h, 60px) + 56px + env(safe-area-inset-bottom, 0px));
  }
}

/* ======================================================================
   Main latest — g5sol_latest (.lt-*) : notice · free · qa
   PC 셸 = .pm-sec/.pm-comm(g5sol_pm.css), 모바일 셸 = .m2-card(g5sol_m2.css). 모바일은 .lt-box--m
   ====================================================================== */
.lt-box { --lt-row-line: #f1f2f4; --lt-new: #ef4444; --lt-ok: #15803d; --lt-ok-soft: #f0fdf4; --lt-wait: #b45309; --lt-wait-soft: #fffbeb;
  min-width: 0; background: var(--g5-surface); border: 1px solid var(--g5-line); border-radius: var(--g5-radius); box-shadow: var(--g5-shadow-sm); padding: 4px 20px 8px;
  color: var(--g5-ink); font-size: 15px; line-height: 1.5; word-break: keep-all; }
.lt-box *, .lt-box *::before, .lt-box *::after { box-sizing: border-box; }
.lt-box :where(h3, p) { margin: 0; }
.lt-box ul { list-style: none; margin: 0; padding: 0; }
.lt-box a { color: inherit; text-decoration: none; }
.lt-box :focus-visible { outline: 2px solid var(--g5-accent); outline-offset: 2px; border-radius: 6px; }
.lt-box .ht-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.lt-box .lt-box__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; border-bottom: 1px solid var(--g5-line); }
.lt-box .lt-box__title { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; color: var(--g5-ink); }
.lt-box .lt-more { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 2px 0 8px; font-size: 13px; font-weight: 600; color: var(--g5-muted); white-space: nowrap; }
.lt-box .lt-more:hover { color: var(--g5-accent-hover); }
.lt-box .lt-more .ht-ico { width: 16px; height: 16px; }
.lt-box .lt-list > li + li { border-top: 1px solid var(--lt-row-line); }
.lt-box .lt-item { display: block; padding: 11px 0; min-height: 64px; color: var(--g5-ink); }
.lt-box .lt-item__top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lt-box .lt-item__subj { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.lt-box a.lt-item:hover .lt-item__subj { color: var(--g5-accent-hover); }
.lt-box .lt-item__meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--g5-muted); font-variant-numeric: tabular-nums; min-width: 0; }
.lt-box .lt-item__meta .is-name { color: var(--g5-ink-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lt-box .lt-item__meta time { flex-shrink: 0; }
.lt-box .lt-dot, .lg .lt-dot { flex-shrink: 0; width: 2px; height: 2px; border-radius: 50%; background: var(--g5-muted-2); }
.lt-box .lt-cmt { flex-shrink: 0; display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; color: var(--g5-accent); }
.lt-box .lt-cmt .ht-ico { width: 13px; height: 13px; }
.lt-box .lt-new, .lg .lt-new { flex-shrink: 0; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 5px; font-size: 9px; font-weight: 800; line-height: 1; color: #fff; background: #ef4444; }
.lt-box .lt-lock { flex-shrink: 0; width: 15px; height: 15px; color: var(--g5-muted); }
.lt-box .lt-item.is-masked .lt-item__subj { color: var(--g5-muted); font-weight: 500; }
.lt-box .lt-state { flex-shrink: 0; padding: 1px 6px; font-size: 11px; font-weight: 700; line-height: 1.6; border-radius: 4px; }
.lt-box .lt-state--done { color: var(--lt-ok); background: var(--lt-ok-soft); }
.lt-box .lt-state--wait { color: var(--lt-wait); background: var(--lt-wait-soft); }
/* notice: 한 줄(작성자는 늘 운영자라 생략) */
.lt-box--notice .lt-item { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0; }
.lt-box--notice .lt-item__subj { flex: 1 1 auto; }
.lt-box--notice .lt-item__date { flex-shrink: 0; font-size: 12px; color: var(--g5-muted); font-variant-numeric: tabular-nums; }
.lt-box .lt-pin { flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; font-size: 11px; font-weight: 800; line-height: 1.5; color: #fff; background: var(--g5-accent-hover); border-radius: 999px; }
.lt-box .lt-pin .ht-ico { width: 12px; height: 12px; stroke-width: 2.2; }
.lt-box .lt-label { flex-shrink: 0; padding: 1px 7px; font-size: 11px; font-weight: 700; line-height: 1.6; color: var(--g5-accent-hover); background: var(--g5-accent-soft); border-radius: 4px; }
.lt-box .lt-item.is-pin .lt-item__subj { font-weight: 800; }
.lt-box .lt-empty { padding: 32px 8px; text-align: center; font-size: 14px; color: var(--g5-muted); }
/* PC 셸: 세 박스 높이 맞춤(spec 11.3 — align-items start → stretch). 새 위젯이 들어 있을 때만 */
.pm-main .pm-comm:has(> .lt-box) { align-items: stretch; }
/* 모바일 메인(.m2-card 안): 카드 머리가 제목을 그리므로 박스 틀 없음 */
.lt-box.lt-box--m { border: 0; border-radius: 0; box-shadow: none; padding: 0 16px 6px; background: transparent; }
.lt-box--m .lt-item { padding: 11px 0; }
.lt-box--m .lt-item__subj { font-size: 15px; }
.lt-box--m.lt-box--notice { padding: 0 16px 4px; }
.lt-box--m.lt-box--notice .lt-item { min-height: 44px; padding: 0; }
.lt-box--m.lt-box--notice .lt-item__subj { font-size: 14px; }

/* ======================================================================
   Main latest — g5sol_latest_gallery (.lg-*, Swiper 11 로컬)
   ====================================================================== */
.lg { position: relative; min-width: 0; --lg-gap: 20px; --lg-per: 4; color: var(--g5-ink); font-size: 15px; line-height: 1.5; word-break: keep-all; }
.lg *, .lg *::before, .lg *::after, .lg-empty *, .lg-empty *::before, .lg-empty *::after { box-sizing: border-box; }
.lg :where(h3, p), .lg-empty :where(p) { margin: 0; }
.lg a, .lg-empty a { text-decoration: none; }
.lg .lg__swiper { margin: -6px; padding: 6px; }
.lg .lg__slide { width: calc((100% - var(--lg-gap) * (var(--lg-per) - 1)) / var(--lg-per)); height: auto; display: flex; box-sizing: border-box; flex-shrink: 0; }
.lg .lg__swiper:not(.swiper-initialized) { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lg .lg__swiper:not(.swiper-initialized)::-webkit-scrollbar { display: none; }
.lg .lg__swiper:not(.swiper-initialized) > .swiper-wrapper { display: flex; gap: var(--lg-gap); }
.lg .lg__swiper:not(.swiper-initialized) .lg__slide { scroll-snap-align: start; }
.lg .lg-card { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; background: var(--g5-surface); border: 1px solid var(--g5-line); border-radius: var(--g5-radius-lg); overflow: hidden; box-shadow: var(--g5-shadow-sm); transition: box-shadow .18s, transform .18s; color: var(--g5-ink); }
.lg .lg-card:hover { box-shadow: var(--g5-shadow); transform: translateY(-3px); }
.lg .lg-card:focus-visible { outline: 2px solid var(--g5-accent); outline-offset: -2px; }
.lg .lg-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #eef0f3; }
.lg .lg-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; max-width: none; }
.lg .lg-card__media.is-ph { display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--g5-muted-2); background: repeating-linear-gradient(135deg, #f3f4f6 0 12px, #eceef1 12px 24px); }
.lg .lg-card__media.is-ph .ht-ico { width: 28px; height: 28px; }
.lg .lg-card__new { position: absolute; top: 10px; right: 10px; }
.lg .lg-card__body { padding: 12px 14px 14px; min-width: 0; }
.lg .lg-card__title { font-size: 15px; font-weight: 700; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg .lg-card.is-masked .lg-card__title { color: var(--g5-muted); font-weight: 600; }
.lg .lg-card:hover .lg-card__title { color: var(--g5-accent-hover); }
.lg .lg-card__meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--g5-muted); font-variant-numeric: tabular-nums; min-width: 0; }
.lg .lg-card__meta .is-name { color: var(--g5-ink-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lg .lg-card__meta time { flex-shrink: 0; }
/* 화살표(PC ≥1024 + 마우스) = .g5cs__nav 모양, 44 원형 */
.lg .lg__nav { display: none; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .lg .lg__nav { position: absolute; z-index: 5; top: calc((100% - 70px) * 0.5 - 20px); width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
    border: 1px solid var(--g5-line); border-radius: 50%; background: var(--g5-surface); color: var(--g5-ink-2); box-shadow: var(--g5-shadow); cursor: pointer; }
  .lg .lg__nav--prev { left: -22px; } .lg .lg__nav--next { right: -22px; }
  .lg .lg__nav .ht-ico { width: 20px; height: 20px; }
  .lg .lg__nav:hover:not(.swiper-button-disabled) { color: var(--g5-accent-hover); border-color: var(--g5-accent); }
  .lg .lg__nav.swiper-button-disabled { opacity: .35; cursor: default; box-shadow: none; }
  .lg .lg__nav.swiper-button-lock { display: none; }
}
/* 점(모바일/터치) — 현재 = 18×6 막대, 클릭 영역 24 */
.lg .lg__dots { display: flex; justify-content: center; gap: 0; margin-top: 10px; min-height: 24px; position: static; }
.lg .lg__dots.swiper-pagination-lock { display: none; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) { .lg .lg__dots { display: none; } }
.lg .lg__dots .swiper-pagination-bullet { width: 24px; height: 24px; margin: 0 !important; display: grid; place-items: center; background: transparent; opacity: 1; border-radius: 0; cursor: pointer; }
.lg .lg__dots .swiper-pagination-bullet::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--g5-line-strong); transition: width .2s, background .2s; }
.lg .lg__dots .swiper-pagination-bullet-active::before { width: 18px; background: var(--g5-accent); }
.lg .lg__dots .swiper-pagination-bullet:focus-visible { outline: 2px solid var(--g5-accent); outline-offset: -2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .lg .lg-card, .lg .lg__dots .swiper-pagination-bullet::before { transition: none; } }
/* 빈 상태(갤러리 0건) */
.lg-empty { display: flex; align-items: center; gap: 20px; padding: 28px; background: var(--g5-surface); border: 1px dashed var(--g5-line-strong); border-radius: var(--g5-radius-lg); color: var(--g5-ink); font-size: 15px; line-height: 1.5; word-break: keep-all; }
.lg-empty .lg-empty__ico { flex-shrink: 0; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; color: var(--g5-accent); background: var(--g5-accent-soft); }
.lg-empty .lg-empty__ico .ht-ico { width: 26px; height: 26px; }
.lg-empty .lg-empty__txt { flex: 1; min-width: 0; }
.lg-empty .lg-empty__t { font-size: 16px; font-weight: 800; color: var(--g5-ink); }
.lg-empty .lg-empty__d { margin-top: 2px; font-size: 14px; color: var(--g5-muted); }
.lg-empty .lg-empty__btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; font-size: 14px; font-weight: 700; color: #fff; background: var(--g5-secondary-grad); border-radius: 999px; box-shadow: 0 4px 12px rgba(99,102,241,.28); white-space: nowrap; }
.lg-empty .lg-empty__btn .ht-ico { width: 18px; height: 18px; }
.lg-empty .lg-empty__btn:focus-visible { outline: 2px solid var(--g5-accent); outline-offset: 2px; }
/* 태블릿 PC 창 */
@media (max-width: 1023px) { .lg { --lg-gap: 16px; --lg-per: 2.5; } }
@media (max-width: 767px) { .lg { --lg-gap: 12px; --lg-per: 1.2; } .lg-empty { flex-direction: column; text-align: center; gap: 10px; padding: 24px 16px; } }
/* 모바일 메인(.m2-card 안) */
.lg.lg--m { --lg-gap: 12px; --lg-per: 1.2; }
.lg.lg--m .lg__swiper { margin: 0; padding: 2px 16px 4px; }
.lg.lg--m .lg__dots { margin: 6px 0 10px; }
.lg.lg--m .lg-card { border-radius: var(--g5-radius); }
.lg.lg--m .lg-card:hover { transform: none; }
.lg.lg--m .lg-card__body { padding: 10px 12px 12px; }
.lg.lg--m .lg-card__title { font-size: 14px; }
.lg-empty.lg-empty--m { margin: 0 16px 16px; flex-direction: column; text-align: center; gap: 10px; padding: 24px 16px; }
