/* Approved forum layout. Live state is owned by final-forum.js. */

.bd-page.rp-page { padding-block: clamp(28px, 3vw, 40px) clamp(96px, 10vw, 140px); }
.rp-page .bd-wrap { width: min(calc(100% - 40px), 1080px); }
.bd-page [hidden] { display: none !important; }


.bd-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bd-name { font: 700 24px/1.3 var(--display); letter-spacing: -.04em; }
.bd-name a { color: #1d1d1f; }
.bd-desc { margin-top: 12px; color: #86868b; font-size: 13px; line-height: 1.5; }
.bd-user { display: flex; flex: none; align-items: center; gap: 12px; }
.bd-alarm { position: relative; }
.bd-bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #1d1d1f; cursor: pointer; }
.bd-bell:hover { background: #f2f2f5; }
.bd-bell svg { width: 23px; height: 23px; }
.bd-dot { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #e0393e; color: #fff; font: 700 11px/17px var(--body); text-align: center; }
.bd-panel { position: absolute; z-index: 30; top: calc(100% + 8px); right: -8px; width: min(340px, calc(100vw - 32px)); padding: 6px 0 12px; border: 1px solid #e3e3e8; border-radius: 14px; background: #fff; box-shadow: 0 18px 40px -16px rgb(0 0 0 / 28%); text-align: left; }
.bd-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; }
.bd-panel-head b { font: 650 15px/1.4 var(--body); }
.bd-panel-head button { color: #0066c1; font: 500 13px/1 var(--body); cursor: pointer; }
.bd-panel ul { margin: 0; padding: 0; list-style: none; }
.bd-panel li a { position: relative; display: grid; gap: 2px; padding: 10px 16px 10px 30px; color: #424245; font-size: 14px; line-height: 1.5; }
@media (hover: hover) { .bd-panel li a:hover { background: #f5f8fc; } }
.bd-panel li.new a { color: #1d1d1f; font-weight: 500; }
.bd-panel li.new a::before { content: ""; position: absolute; top: 17px; left: 14px; width: 7px; height: 7px; border-radius: 50%; background: #0066c1; }
.bd-panel time { color: #86868b; font-size: 12px; font-weight: 400; }

.bd-alert-tag { display: inline-grid; place-items: center; height: 20px; margin-right: 6px; padding: 0 8px; border-radius: 999px; background: #e0393e; color: #fff; font: 700 11.5px/1 var(--body); vertical-align: 1px; }



.bd-panel li.notice.new a { padding-left: 14px; }

.bd-link { color: #0066c1; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.bd-switch { display: flex; align-items: center; gap: 8px; margin: 8px 16px 0; padding-top: 12px; border-top: 1px solid #ededf0; color: #424245; font-size: 13px; cursor: pointer; }
.bd-switch input { width: 16px; height: 16px; accent-color: #0066c1; }
.bd-me { color: #424245; font: 500 14px/1 var(--body); white-space: nowrap; }

.bd-main { min-width: 0; margin-top: 30px; }
.bd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bd-boards { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.bd-boards a { display: inline-flex; align-items: baseline; gap: 4px; color: #86868b; font: 500 15px/1.4 var(--body); letter-spacing: -.01em; white-space: nowrap; }
.bd-boards a:hover { color: #1d1d1f; }
.bd-boards a.on { color: #1d1d1f; font-weight: 700; }
.bd-boards .bd-new { align-self: center; margin-left: 0; }
.bd-post-boards { margin-top: 30px; }
:is(#forum-post, #forum-notice) .bd-main { margin-top: 26px; }
.bd-back, .bd-search-open, .bd-mcount, .bd-fab, .bd-thumb-s, .bd-x, .bd-search-cancel { display: none; }


#forum-page .bd-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head opts" "table table" "foot foot" "pages pages" "search search" "note note"; align-items: end; }
.bd-board-head { grid-area: head; display: flex; align-items: center; gap: 10px; min-width: 0; }
.bd-options { grid-area: opts; display: flex; align-items: center; gap: 14px; color: #424245; font-size: 13px; }
.bd-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.bd-check input { width: 15px; height: 15px; accent-color: #0066c1; }
.bd-options select { height: 32px; padding: 0 8px; border: 1px solid #d2d2d7; border-radius: 6px; background: #fff; color: #424245; font: 500 13px/1 var(--body); }
#forum-page:has([data-hide-notice]:checked) .is-notice { display: none; }
.bd-table { grid-area: table; margin-top: 14px; border-top: 1px solid #d2d2d7; }
.bd-list { margin: 0; padding: 0; list-style: none; }
.bd-row { display: grid; grid-template-columns: 116px minmax(0, 1fr) 132px 96px 56px; align-items: center; min-height: 42px; padding: 5px 0; border-bottom: 1px solid #ededf0; font-size: 13px; }
.bd-list .bd-row { transition: background-color .15s; }
@media (hover: hover) { .bd-list .bd-row:hover { background: #fafafc; } }  
.bd-headrow { min-height: 40px; color: #6e6e73; font-weight: 500; }
.bd-headrow .bd-title { grid-column: 1 / span 2; color: #6e6e73; font-size: 13px; text-align: center; }
.bd-date, .bd-views { color: #86868b; font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: center; }
.bd-cat { overflow: hidden; padding: 0 12px 0 14px; color: #6e6e73; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.bd-who { overflow: hidden; padding: 0 8px; color: #424245; text-overflow: ellipsis; white-space: nowrap; }
.bd-title { min-width: 0; overflow: hidden; padding-right: 14px; color: #1d1d1f; font: 400 13.5px/1.5 var(--body); text-overflow: ellipsis; white-space: nowrap; }
.bd-title a { color: inherit; }

@media (hover: hover) { .bd-title a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.bd-page a { -webkit-tap-highlight-color: transparent; }
.bd-count { margin-left: 4px; color: #e0393e; font-size: 12.5px; font-weight: 650; }
.bd-new { display: inline-grid; place-items: center; width: 13px; height: 13px; margin-left: 5px; border-radius: 50%; background: #f43f3f; color: #fff; font: 700 8.5px/1 var(--body); vertical-align: 1px; }
.bd-att { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-left: 5px; border-radius: 50%; background: #c2c2c7; color: #fff; vertical-align: -2px; }
.bd-att svg { width: 10px; height: 10px; }
.bd-m { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-left: 4px; border-radius: 3px; background: #1d1d1f; color: #fff; font: 700 9px/1 var(--body); vertical-align: 1px; }
.bd-row.is-notice { background: #f9f9fb; }
@media (hover: hover) { .bd-list .bd-row.is-notice:hover { background: #f4f4f7; } }
.bd-row.is-notice .bd-title { font-weight: 600; }
.bd-notice { color: #e0393e; font-size: 12.5px; font-weight: 700; }
.bd-foot { grid-area: foot; display: flex; justify-content: flex-end; margin-top: 14px; }

#forum-page .bd-pages { grid-area: pages; display: flex; justify-content: center; gap: 4px; margin-top: 30px; }
.bd-pages a { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 4px; color: #333336; font-size: 13px; font-variant-numeric: tabular-nums; }
.bd-pages a.on { background: #ececf0; color: #1d1d1f; font-weight: 700; }
.bd-pages a:not(.on):hover { background: #f5f5f7; }
.bd-pages .bd-next { margin-left: 4px; border: 1px solid #e2e2e6; background: #fff; color: #424245; font-size: 16px; line-height: 1; }
#forum-page .bd-search { grid-area: search; display: flex; align-items: center; justify-self: center; width: min(620px, 100%); height: 50px; margin-top: 22px; padding: 0 5px 0 4px; border: 1px solid #d2d2d7; border-radius: 999px; background: #fff; transition: border-color .15s, box-shadow .15s; }
#forum-page .bd-search:focus-within { border-color: #0066c1; box-shadow: 0 0 0 3px #e1edf9; }
.bd-sel { position: relative; display: flex; flex: none; align-items: center; height: 100%; }
.bd-sel::after { content: ""; position: absolute; top: 50%; right: 0; width: 1px; height: 18px; background: #e2e2e6; transform: translateY(-50%); }
.bd-sel select { height: 100%; padding: 0 32px 0 16px; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%2386868b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 12px; color: #1d1d1f; font: 500 14px/1 var(--body); appearance: none; cursor: pointer; }
.bd-search-box { display: flex; flex: 1; align-items: center; min-width: 0; height: 100%; }
.bd-search-box input { flex: 1; min-width: 0; height: 100%; padding: 0 12px 0 16px; border: 0; background: transparent; color: #1d1d1f; font: 400 14px/1 var(--body); }
.bd-search-box button { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #0066c1; color: #fff; cursor: pointer; }
.bd-search-box button:hover { background: #0058a8; }
.bd-search-box button svg { width: 18px; height: 18px; }
.bd-search .bd-sel select:focus, .bd-search .bd-search-box input:focus, .bd-search-input:focus { outline: 0; }

.bd-search-input { display: block; flex: 1; min-width: 0; padding: 0 12px 0 16px; overflow: hidden; color: #1d1d1f; font: 400 14px/1.4 var(--body); white-space: nowrap; }
.bd-editor :is(select, input, textarea, [contenteditable]):focus { border-color: #0066c1; outline: 3px solid #cfe3f7; }
.bd-note { grid-area: note; margin-top: 14px; color: #a1a1a6; font-size: 12px; text-align: right; }


.bd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; padding: 0 14px; border: 1px solid #d2d2d7; border-radius: 6px; background: #fff; color: #1d1d1f; font: 500 13px/1 var(--body); cursor: pointer; white-space: nowrap; }
.bd-btn:hover { background: #f5f5f7; }
.bd-btn svg { width: 15px; height: 15px; }
.bd-btn.blue { border-color: #0066c1; background: #0066c1; color: #fff; }
.bd-btn.blue:hover { background: #0058a8; }
.bd-btn.red { border-color: #e0393e; background: #e0393e; color: #fff; }
.bd-btn.red:hover { background: #c92f34; }
.bd-tool { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border: 1px solid #e5e5ea; border-radius: 6px; background: #fff; color: #424245; font: 500 12.5px/1 var(--body); cursor: pointer; white-space: nowrap; }
.bd-tool:hover { background: #f5f5f7; }
.bd-tool svg { width: 15px; height: 15px; }


.bd-post-head { padding-bottom: 18px; border-bottom: 1px solid #ededf0; }
.bd-board-link { display: inline-flex; gap: 4px; color: #0066c1; font: 600 13px/1.4 var(--body); }

.bd-page .bd-post-head h2 { margin-top: 8px; font: 700 clamp(20px, 2vw, 24px)/1.4 var(--display); letter-spacing: -.03em; text-wrap: wrap; word-break: keep-all; }
.bd-writer { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.bd-writer-text { min-width: 0; }
.bd-writer-name b { font: 650 14px/1.4 var(--body); }
.bd-writer-meta { display: flex; gap: 10px; margin-top: 2px; color: #86868b; font-size: 12.5px; }
.bd-post-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.bd-ava { display: inline-grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e8f1fb; color: #0066c1; font: 650 14px/1 var(--body); }
.bd-ava.small { width: 28px; height: 28px; font-size: 12px; }
.bd-ava.rid { background: #1d1d1f; color: #fff; }
.bd-body { display: grid; gap: 14px; padding: 30px 0 28px; }
.bd-body p { color: #1d1d1f; font: 400 15px/1.8 var(--body); }
.bd-media { margin: 6px 0 0; }
.bd-media img { display: block; width: min(300px, 100%); height: auto; border-radius: 8px; }
.bd-video { position: relative; display: grid; place-items: center; width: min(560px, 100%); aspect-ratio: 16 / 9; border-radius: 8px; background: #1d1d1f; color: #fff; }
.bd-video svg { width: 56px; height: 56px; opacity: .9; }
.bd-video span { position: absolute; right: 12px; bottom: 10px; padding: 2px 8px; border-radius: 6px; background: rgb(0 0 0 / 55%); font: 500 12px/1.4 var(--body); }
.bd-video.small { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.bd-video.small svg { width: 30px; height: 30px; }
.bd-react { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid #ededf0; }
.bd-react-left, .bd-react-right { display: flex; align-items: center; gap: 16px; }
.bd-react-right { gap: 6px; }
.bd-react > div > span, .bd-actions > div > span, .bd-cmt-info > span { display: contents; }
.bd-react-btn { display: inline-flex; align-items: center; gap: 5px; color: #424245; font: 500 13.5px/1 var(--body); cursor: pointer; }
.bd-react-btn svg { width: 20px; height: 20px; fill: none; }
.bd-react-btn b { font-weight: 650; }
.bd-react-btn.on { color: #e0393e; }
.bd-react-btn.on svg { fill: currentColor; }


.bd-comments { margin-top: 26px; }
.bd-cmt-top { display: flex; align-items: center; gap: 14px; }
.bd-comments h3 { font: 700 16px/1.4 var(--display); letter-spacing: -.02em; }
.bd-cmt-sort { display: flex; gap: 10px; }
.bd-cmt-sort button { color: #a1a1a6; font: 500 13px/1 var(--body); cursor: pointer; }
.bd-cmt-sort button.on { color: #1d1d1f; font-weight: 650; }
.bd-cmts { margin: 8px 0 0; padding: 0; list-style: none; }
.bd-cmts > li { padding: 16px 0; border-bottom: 1px solid #f0f0f3; }
.bd-cmt { display: flex; gap: 10px; }

.bd-cmts li { scroll-margin-top: 80px; }
.bd-cmts li.is-highlighted > .bd-cmt { border-radius: 10px; animation: cmt-flash 2.4s ease-out; }
@keyframes cmt-flash { from, 30% { background: #e8f1fb; box-shadow: 0 0 0 8px #e8f1fb; } to { background: transparent; box-shadow: 0 0 0 8px transparent; } }
@media (max-width: 760px) { .bd-cmts li { scroll-margin-top: 16px; } }
.bd-cmt-box { flex: 1; min-width: 0; }
.bd-cmt-head { display: flex; align-items: center; gap: 6px; }
.bd-cmt-head b { font: 650 13.5px/1.4 var(--body); }

.bd-cmt-head > .bd-cmt-like-wrap { margin-left: auto; }
.bd-cmt-like { display: inline-flex; align-items: center; gap: 3px; padding: 2px 0 2px 8px; color: #8e8e93; font: 500 12.5px/1 var(--body); cursor: pointer; }
.bd-cmt-like svg { width: 16px; height: 16px; fill: none; }
.bd-cmt-like b { font-weight: 600; }
.bd-cmt-like.on { color: #e0393e; }
.bd-cmt-like.on svg { fill: currentColor; }
.bd-tag { padding: 2px 6px; border: 1px solid #0066c1; border-radius: 10px; color: #0066c1; font: 600 11px/1.2 var(--body); }
.bd-cmt-box p { margin-top: 4px; color: #1d1d1f; font: 400 14px/1.65 var(--body); }
.bd-cmt-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; color: #a1a1a6; font-size: 12.5px; }
.bd-cmt-info :is(a, button) { color: #86868b; font: 400 12.5px/1.4 var(--body); cursor: pointer; }
.bd-cmt-info :is(a, button):hover { color: #1d1d1f; }
.bd-replies { margin: 0; padding: 0 0 0 46px; list-style: none; }
.bd-replies > li { padding-top: 14px; }
.bd-cbox, .bd-reply-form { display: grid; gap: 6px; padding: 14px 16px 10px; border: 1px solid #d2d2d7; border-radius: 8px; background: #fff; }
.bd-cbox { margin-top: 18px; }
.bd-reply-form { margin: 12px 0 0 46px; }
.bd-cbox > b, .bd-reply-form > b { font: 650 13.5px/1.4 var(--body); }

.bd-cbox-text { width: 100%; min-height: 44px; outline: 0; color: #1d1d1f; font: 400 14px/1.6 var(--body); white-space: pre-wrap; overflow-wrap: anywhere; }
[contenteditable][data-placeholder]:empty::before { content: attr(data-placeholder); color: #a1a1a6; pointer-events: none; }
.bd-cbox:focus-within, .bd-reply-form:focus-within { border-color: #0066c1; }
.bd-cbox-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bd-cam { display: inline-flex; align-items: center; gap: 4px; color: #6e6e73; font-size: 13px; cursor: pointer; }
.bd-cam svg { width: 20px; height: 20px; }
.bd-cbox-send { padding: 6px 4px; color: #0066c1; font: 650 14px/1 var(--body); cursor: pointer; }
.bd-cbox-guest { display: block; min-height: 78px; color: #a1a1a6; font-size: 14px; }
.bd-cbox-guest:hover { border-color: #a1a1a6; color: #6e6e73; }
.bd-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-thumbs:empty { display: none; }
.bd-thumb { position: relative; width: 96px; height: 96px; overflow: hidden; border: 1px solid #e3e3e8; border-radius: 8px; background: #fff; }
.bd-thumb :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; }
.bd-thumb-x { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgb(0 0 0 / 60%); color: #fff; font: 600 14px/1 Arial, sans-serif; cursor: pointer; }
.bd-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.bd-actions > div { display: flex; flex-wrap: wrap; gap: 6px; }
.bd-same { margin-top: 40px; }
.bd-same h3 { font: 650 14px/1.4 var(--body); }
.bd-same ul { margin: 10px 0 0; padding: 0; border-top: 1px solid #d2d2d7; list-style: none; }
.bd-same li { display: grid; grid-template-columns: minmax(0, 1fr) auto 118px 96px; align-items: center; min-height: 40px; padding: 0 8px; border-bottom: 1px solid #ededf0; font-size: 13px; }
.bd-same li > a { grid-column: 1; overflow: hidden; color: #1d1d1f; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) { .bd-same li > a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.bd-same .bd-count { grid-column: 2; }
.bd-same .bd-who { grid-column: 3; }
.bd-same .bd-date { grid-column: 4; }
.bd-same li.on { background: #f9f9fb; }
.bd-same li.on > a { font-weight: 650; }


.bd-editor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: min(100%, 860px); margin: 28px auto 0; }  

.bd-editor-top { position: sticky; top: 65px; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 14px; border-bottom: 1px solid #e5e5ea; background: #fff; }
.bd-page .bd-editor-top h2 { font: 700 22px/1.3 var(--display); letter-spacing: -.03em; }
.bd-editor-buttons { display: flex; gap: 6px; }
.bd-editor-buttons .bd-btn { min-height: 38px; padding: 0 16px; font-size: 14px; }
.bd-board-select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d2d2d7; border-radius: 6px; background: #fff; color: #1d1d1f; font: 400 14px/1 var(--body); }
.bd-counted { position: relative; display: block; }
.bd-title-input { display: block; width: 100%; min-height: 52px; padding: 14px 76px 14px 14px; border: 1px solid #d2d2d7; border-radius: 6px; color: #1d1d1f; font: 500 17px/24px var(--body); word-break: keep-all; overflow-wrap: anywhere; }  
.bd-counted small { position: absolute; top: 50%; right: 14px; color: #a1a1a6; font-size: 12px; font-variant-numeric: tabular-nums; transform: translateY(-50%); }
.bd-toolbar { display: flex; gap: 4px; padding: 6px; border: 1px solid #e5e5ea; border-radius: 6px; }
.bd-toolbar label { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 6px; color: #424245; font: 500 13px/1 var(--body); cursor: pointer; }
.bd-toolbar label:hover { background: #f5f5f7; }
.bd-toolbar svg { width: 19px; height: 19px; }
.bd-content { width: 100%; min-height: 380px; padding: 16px; border: 1px solid #d2d2d7; border-radius: 6px; color: #1d1d1f; font: 400 15px/1.8 var(--body); overflow-wrap: anywhere; }
.bd-content p { min-height: 1.75em; margin: 0; }  

@media (min-width: 761px) {
  .bd-ed-head { display: grid; gap: 14px; padding: 22px 28px 26px; border: 1px solid #e5e5ea; border-radius: 12px; }
  .bd-ed-head .bd-board-select { height: 48px; padding: 0 4px; border: 0; border-bottom: 1px solid #e5e5ea; border-radius: 0; font-size: 15px; }
  .bd-ed-head .bd-title-input { min-height: 52px; padding: 14px 76px 14px 18px; border: 0; border-radius: 8px; background: #f5f6f8; font: 500 16px/24px var(--body); }
  .bd-ed-head .bd-counted small { right: 18px; }
  .bd-ed-body { overflow: hidden; border: 1px solid #e5e5ea; border-radius: 12px; }
  .bd-ed-body .bd-toolbar { gap: 4px; padding: 8px 16px; border: 0; border-bottom: 1px solid #e5e5ea; border-radius: 0; }
  .bd-ed-body .bd-toolbar label { flex-direction: column; justify-content: center; gap: 5px; width: 58px; height: 58px; padding: 0; font: 500 12px/1 var(--body); }
  .bd-ed-body .bd-toolbar svg { width: 22px; height: 22px; }
  .bd-ed-body .bd-content { min-height: 480px; padding: 36px 32px; border: 0; border-radius: 0; }
  :is(.bd-ed-head, .bd-ed-body) :is(select, [contenteditable]):focus { outline: 0; }
  .bd-ed-head .bd-board-select:focus { border-bottom-color: #1d1d1f; }
}
@media (max-width: 760px) { .bd-ed-head, .bd-ed-body { display: contents; } }

.bd-content .bd-inline { position: relative; width: fit-content; max-width: 100%; height: auto; margin: 12px 0; overflow: visible; border: 0; border-radius: 0; background: none; }
.bd-content .bd-inline :is(img, video) { display: block; width: auto; max-width: 100%; height: auto; max-height: 420px; border-radius: 10px; object-fit: contain; }
.bd-content .bd-inline .bd-video { width: 360px; max-width: 100%; aspect-ratio: 16 / 9; }
.bd-content .bd-inline .bd-thumb-x { top: 8px; right: 8px; width: 26px; height: 26px; }

.bd-content .bd-inline video { pointer-events: none; }
.bd-vbadge { position: absolute; bottom: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 999px; background: rgb(0 0 0 / 60%); color: #fff; font: 600 12px/1 var(--body); font-variant-numeric: tabular-nums; pointer-events: none; }


.bd-modal { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(0 0 0 / 40%); }
.bd-modal-box { width: min(400px, 100%); padding: 28px 24px 20px; border-radius: 16px; background: #fff; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 40%); }
.bd-modal-box h3 { font: 650 19px/1.4 var(--display); letter-spacing: -.02em; }
.bd-modal-box p { margin-top: 8px; color: #6e6e73; font-size: 14.5px; line-height: 1.6; }
.bd-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.bd-reasons { display: grid; gap: 2px; margin-top: 14px; }
.bd-reasons label { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-size: 14.5px; cursor: pointer; }
.bd-reasons input { width: 16px; height: 16px; accent-color: #0066c1; }
.bd-toast { position: fixed; z-index: 50; bottom: calc(max(20px, env(safe-area-inset-bottom, 0px)) + 64px); left: 50%; padding: 12px 18px; border-radius: 999px; background: #1d1d1f; color: #fff; font: 500 14px/1.4 var(--body); opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s; }
.bd-toast.on { opacity: 1; transform: translate(-50%, 0); }
.bd-login { width: min(400px, 100%); margin: clamp(24px, 4vw, 64px) auto 0; text-align: center; }
.bd-login h2 { font: 650 clamp(26px, 2.6vw, 32px)/1.3 var(--display); letter-spacing: -.04em; }
.bd-login > p { margin-top: 14px; color: #6e6e73; font-size: 15px; line-height: 1.7; }
.bd-login > p.bd-login-note { margin-top: 18px; color: #86868b; font-size: 13px; }
.bd-providers { display: grid; gap: 10px; margin-top: 28px; }
.bd-providers a { display: grid; place-items: center; min-height: 52px; border: 1px solid #c5c7cb; border-radius: 12px; background: #fff; color: #202124; font: 600 16px/1 var(--body); }
.bd-providers [data-provider="kakao"] { border-color: #fee500; background: #fee500; color: #191919; }
.bd-providers [data-provider="naver"] { border-color: #03c75a; background: #03c75a; color: #072b16; }
.bd-login-back { display: inline-block; margin-top: 20px; color: #0066c1; font: 500 14px/1.4 var(--body); }


@media (max-width: 760px) {
  .bd-page.rp-page { padding-top: 20px; }
  .bd-name { font-size: 20px; }
  .bd-desc, .bd-me { display: none; }
  .bd-main { margin-top: 18px; }
  #forum-page .bd-main { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "search" "table" "note"; }
  
  
  .bd-boards { flex: 1; flex-wrap: nowrap; justify-content: space-between; gap: 18px; min-width: 0; margin: 0 -20px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
  .bd-boards::-webkit-scrollbar { display: none; }
  .bd-boards a { position: relative; flex: none; align-items: center; padding: 10px 0 12px; color: #86868b; font: 600 15px/1.2 var(--body); letter-spacing: -.01em; }
  .bd-boards a.on { color: #1d1d1f; font-weight: 600; }
  .bd-boards a.on::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; border-radius: 2px; background: var(--c); }
  .bd-boards a:nth-child(3n+1) { --c: #1b86d6; }
  .bd-boards a:nth-child(3n+2) { --c: #3949ab; }
  .bd-boards a:nth-child(3n) { --c: #e0393e; }
  .bd-pc { display: none; }
  .bd-boards .bd-new { position: absolute; top: 9px; right: -7px; width: 5px; height: 5px; font-size: 0; }
  .bd-post-boards { display: none; }
  .bd-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: #424245; font: 600 15px/1 var(--body); }
  .bd-back span { margin-top: -3px; font-size: 22px; line-height: 1; }
  :is(#forum-post, #forum-notice) .bd-main { margin-top: 14px; }
  .bd-search-open { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #1d1d1f; cursor: pointer; }
  .bd-search-open svg { width: 21px; height: 21px; }
  
  
  .bd-options, .bd-foot, .bd-headrow { display: none; }
  #forum-page .bd-pages { display: none; }
  
  #forum-page .bd-search { display: none; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "box cancel"; align-items: center; gap: 10px; width: 100%; height: auto; margin-top: 14px; padding: 0; border: 0; border-radius: 0; background: none; }
  #forum-page .bd-search:focus-within { box-shadow: none; }
  #forum-page .bd-search.open { display: grid; }
  #forum-page .bd-sel { display: none; }
  .bd-search-box { grid-area: box; height: 42px; padding: 0 12px 0 2px; border: 0; border-radius: 12px; background: #f2f2f7; }
  .bd-search-box:focus-within { box-shadow: 0 0 0 2px #cfe3f7; }
  .bd-search-box button, .bd-search-box button:hover { order: -1; width: 36px; height: 36px; background: none; color: #8e8e93; }
  .bd-search-box input, .bd-search-input { padding: 0 4px; }
  .bd-search-cancel { display: block; grid-area: cancel; padding: 0 2px; color: #0066c1; font: 500 16px/1 var(--body); white-space: nowrap; cursor: pointer; }
  .bd-table { margin-top: 8px; border-top: 0; }
  
  .bd-row { position: relative; grid-template-columns: auto auto auto minmax(0, 1fr) auto auto; grid-template-areas: "title title title title thumb count" "who date views . thumb count"; align-items: start; min-height: 0; padding: 16px 0; }
  .bd-row:not(.is-notice) .bd-cat, .bd-title :is(.bd-count, .bd-att, .bd-new) { display: none; }
  .bd-title { grid-area: title; display: -webkit-box; padding-right: 12px; font-size: 16px; line-height: 1.45; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; word-break: keep-all; }  
  .bd-row.is-new::before { content: ""; position: absolute; top: 25px; left: -11px; width: 5px; height: 5px; border-radius: 50%; background: #f43f3f; }
  .bd-who, .bd-date, .bd-views { margin-top: 5px; padding: 0; color: #8e8e93; font-size: 13px; text-align: left; white-space: nowrap; }
  .bd-who { grid-area: who; max-width: 120px; }
  .bd-date { grid-area: date; margin-left: 7px; }
  .bd-views { grid-area: views; margin-left: 7px; }
  .bd-views::before { content: "조회 "; white-space: pre; }
  .bd-y { display: none; }
  .bd-thumb-s { position: relative; display: block; grid-area: thumb; align-self: center; width: 60px; height: 60px; margin-right: 8px; overflow: hidden; border-radius: 10px; background: #f2f2f5; }
  .bd-thumb-s img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .bd-thumb-s img[src*="screen-functions"] { object-position: 50% 52%; }
  .bd-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
  .bd-play svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 3px rgb(0 0 0 / 50%)); }
  .bd-mcount { grid-area: count; display: grid; place-items: center; align-content: center; align-self: center; width: 46px; height: 60px; border-radius: 10px; background: #f5f5f7; color: #8e8e93; font-size: 11px; line-height: 1.3; }
  /* Extend the native title link over its row; keep the comment link above it. */
  .bd-post-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
  .bd-mcount { position: relative; z-index: 2; }
  .bd-mcount b { color: #1d1d1f; font-size: 16px; font-weight: 650; }
  .bd-row.is-notice { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "cat title"; align-items: center; padding: 16px 0; background: none; }
  .bd-row.is-notice .bd-cat { margin: 0 10px 0 0; padding: 0; }
  .bd-row.is-notice .bd-title { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; }
  .bd-row.is-notice :is(.bd-who, .bd-date, .bd-views, .bd-mcount, .bd-thumb-s) { display: none; }
  .bd-notice { display: inline-block; padding: 5px 10px; border-radius: 999px; background: #5c5c60; color: #fff; font-size: 12px; font-weight: 600; }
  .bd-fab { position: fixed; z-index: 19; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 12px)); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #2c2c2e; color: #fff; box-shadow: 0 8px 20px -6px rgb(0 0 0 / 45%); }
  .bd-fab svg { width: 24px; height: 24px; }
  .bd-board-link, .bd-post-tools .bd-tool:first-child { display: none; }
  .bd-writer-meta { flex-wrap: wrap; gap: 2px 10px; }
  .bd-replies { padding-left: 38px; }
  .bd-reply-form { margin-left: 38px; }
  .bd-actions { flex-wrap: wrap; }
  
  .bd-same { display: none; }
  
  :is(#forum-write, #forum-edit).rp-page { padding-top: 0; }
    .bd-editor { gap: 0; margin-top: 0; }
  .bd-editor-top { top: 0; margin: 0 -20px; padding: 10px 20px; border-bottom: 0; }
  .bd-x { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -10px; color: #1d1d1f; }
  .bd-x svg { width: 24px; height: 24px; }
  .bd-page .bd-editor-top h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .bd-editor-buttons a.bd-btn { display: none; }
  .bd-editor-buttons .bd-btn.blue { min-height: 36px; padding: 0 16px; border-color: transparent; background: #e8f1fb; color: #0066c1; font-weight: 650; }
  .bd-board-select { height: 56px; padding: 0 28px 0 0; border: 0; border-bottom: 1px solid #e5e5ea; border-radius: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6 8 10.5 12.5 6' fill='none' stroke='%231d1d1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 2px center / 16px 16px; color: #1d1d1f; font: 500 16px/1 var(--body); appearance: none; }
  .bd-title-input { min-height: 64px; padding: 19px 64px 19px 0; border: 0; border-bottom: 1px solid #e5e5ea; border-radius: 0; font: 700 20px/26px var(--body); }
  .bd-counted small { right: 0; }
  .bd-editor :is(select, input, textarea, [contenteditable]):focus { outline: 0; }
  .bd-content { min-height: 55svh; padding: 18px 0 32px; border: 0; border-radius: 0; font: 400 16px/1.75 var(--body); }
  .bd-toolbar { gap: 4px; padding: 6px 0; border: 0; border-bottom: 1px solid #e5e5ea; border-radius: 0; }
  .bd-toolbar label { height: 40px; padding: 0 10px; font-size: 14px; }
  .bd-toolbar label:first-child { margin-left: -10px; }
  .bd-toolbar svg { width: 22px; height: 22px; }
  
  .bd-page :is(input:not([type="radio"], [type="checkbox"], [type="file"]), select, textarea, .bd-cbox-text, .bd-search-input) { font-size: 16px; }
}


.bd-page { color:#1d1d1f; background:#fff; font-family:var(--body,system-ui,sans-serif); }
.bd-page *, .bd-modal * { box-sizing:border-box; }
:where(.bd-page svg) { width:20px; height:20px; }
.bd-page button,.bd-modal button { appearance:none; cursor:pointer; }
:where(.bd-page button:not(.bd-btn):not(.bd-tool)) { border:0; background:transparent; }
.bd-page button:disabled { cursor:wait; opacity:.55; }
:where(.bd-page a) { text-decoration:none; }
.bd-page p,.bd-page h2,.bd-page h3 { margin-bottom:0; }
.bd-page .bd-wrap { margin-inline:auto; padding-inline:0; }
.bd-page [data-board-nav] { display:contents; }
.bd-page[hidden],.bd-modal[hidden] { display:none!important; }
.bd-empty { grid-column:1/-1; padding:72px 16px; color:#86868b; text-align:center; font:400 14px/1.7 var(--body); }
.bd-status { color:#6e6e73; margin-top:16px; font:400 13px/1.7 var(--body); overflow-wrap:anywhere; }
.bd-status:empty { display:none; }
.bd-empty button { color:#0066c1; margin-left:8px; }
.bd-post-empty { min-height:300px; display:grid; place-items:center; align-content:center; gap:16px; }
.bd-page .bd-providers button { display:grid;place-items:center;min-height:52px;border:1px solid #c5c7cb;border-radius:12px;background:#fff;color:#202124;font:600 16px/1 var(--body); }
.bd-page .bd-providers [data-login-provider=kakao] { border-color:#fee500;background:#fee500;color:#191919; }
.bd-page .bd-providers [data-login-provider=naver] { border-color:#03c75a;background:#03c75a;color:#072b16; }
.bd-pages button { display:grid;place-items:center;min-width:26px;height:26px;padding:0 5px;border-radius:4px;color:#333336;font:400 13px/1 var(--body); }
.bd-pages button.on { background:#ececf0!important;color:#1d1d1f;font-weight:700; }
.bd-pages button:disabled { opacity:.35;cursor:default; }
.bd-panel button.bd-notification { display:grid;gap:2px;position:relative;width:100%;padding:10px 16px 10px 30px;text-align:left;color:#424245;font:400 14px/1.5 var(--body); }
.bd-panel li.new:not(.notice) button.bd-notification { color:#1d1d1f;font-weight:500; }
@media(hover:hover) { .bd-panel button.bd-notification:hover { background:#f5f8fc; } }
.bd-panel li.new:not(.notice) .bd-notification::before { content:"";position:absolute;left:14px;top:17px;width:7px;height:7px;border-radius:50%;background:#0066c1; }
.bd-panel li.notice.new .bd-notification { padding-left:14px; }
.bd-panel li.notice:not(.new) .bd-alert-tag { display:none; }
.bd-panel .bd-empty { padding:24px 16px; }
.bd-panel > [data-notification-status] { margin:8px 16px 0; font-size:12px; }
.bd-notification span { overflow-wrap:anywhere; }
.bd-page .bd-cmt-like { margin-left:0; }
.bd-page .bd-cmt-photo { display:block;max-width:240px;max-height:240px;border-radius:8px;margin-top:8px; }
.bd-page button.bd-cbox-guest { width:100%; text-align:left; font-family:var(--body); }
.bd-body p,.bd-cmt-box p { white-space:pre-wrap;overflow-wrap:anywhere; }
.bd-body .bd-media video { display:block;max-width:100%;width:min(560px,100%);border-radius:8px; }
.bd-body .bd-media img { width:min(300px,100%);max-width:100%; }
.bd-content { white-space:pre-wrap; }
.bd-content .bd-inline { display:block; }
.bd-inline.is-uploading { opacity:.5; }
.bd-inline.is-uploading::after { content:"업로드 중";position:absolute;left:8px;bottom:8px;padding:4px 8px;background:white;border-radius:4px;font-size:12px; }
.bd-inline.is-error { outline:1px solid #e0393e; }
.bd-content .bd-inline .bd-video img { width:100%;height:100%;object-fit:contain; }
.bd-content .bd-inline .bd-video { overflow:hidden;background:#1d1d1f; }
.bd-content .bd-inline .bd-video > svg { width:44px;height:44px; }
.bd-content [data-placeholder]:empty::before { content:attr(data-placeholder);color:#a1a1a6; }
.bd-title-input[aria-invalid=true],.bd-board-select[aria-invalid=true] { outline:1px solid #e0393e; }
.bd-page .bd-tool:focus-visible,.bd-page a:focus-visible,.bd-page button:focus-visible,.bd-modal button:focus-visible { outline:2px solid #0066c1;outline-offset:3px; }
.bd-modal { z-index:1000; }
.bd-modal-box { max-height:calc(100dvh - 40px);overflow:auto; }
.bd-feed-sentinel { min-height:1px;grid-area:note; }
.bd-menu-trigger { position:relative; }
.bd-post .bd-board-link { margin-bottom:0; }
#forum-notice .bd-actions > div:first-child,
#forum-notice .bd-actions [data-forum-action="top"],
#forum-notice .bd-same { display:none; }
#forum-notice .bd-actions { justify-content:flex-end; }
.bd-cbox-tools > div { display:contents; }
@media(max-width:760px) {
  .bd-page[data-editor-authorized=true] .bd-top { display:none; }
  .bd-page .bd-editor-buttons .bd-cancel { display:none; }
  .bd-page .bd-providers button { font-size:16px; }
  .bd-row.tap-active { background:#f5f5f7; box-shadow:-20px 0 #f5f5f7,20px 0 #f5f5f7; }
  .bd-row.is-notice .bd-title { overflow:hidden;text-overflow:ellipsis; }
  .bd-page .bd-headrow { display:none; }
  .bd-page .bd-post-head h2 { text-wrap:wrap;overflow-wrap:anywhere; }
  .bd-page .bd-cmt-box { overflow-wrap:anywhere; }
  .bd-page .bd-reply-form { margin-left:30px; }
  .bd-page .bd-boards { max-width:calc(100vw - 0px); }
  .bd-page .bd-title-input { font-size:20px; }
  .bd-page .bd-editor-top { top:var(--forum-keyboard-top,0px); }
  .bd-page .bd-empty { padding:56px 4px; }
  .bd-page .bd-fab { right:24px;bottom:max(24px,env(safe-area-inset-bottom)); }
}
@media(prefers-reduced-motion:reduce) { .bd-cmts li.is-highlighted > .bd-cmt { animation:none;background:#e8f1fb; } }

