/* KBOARD CMS 사용자 화면 */
:root {
  --bg: #f6f7f9; --card: #fff; --line: #e3e6ea; --text: #1f2933; --mute: #6b7684; --dim: #9aa3ae;
  --accent: #0f9d8f; --accent-d: #0b7d72; --accent-bg: #e6f6f4; --danger: #d6455a; --orange: #f2a33a;
  --sans: "Pretendard", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 8px;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--text); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }
a { color: inherit; text-decoration: none; } a:hover { color: var(--accent-d); }
img { max-width: 100%; height: auto; }
h1, h2 { margin: 0; line-height: 1.3; }
button, input, select, textarea { font: inherit; color: inherit; }
.in { width: 100%; max-width: var(--site-width, 1100px); margin: 0 auto; padding: 0 20px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: #fff; padding: 8px 14px; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sp { flex: 1; }

/* 헤더 */
.hdr { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.3px; white-space: nowrap; }
.logo-mark { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--orange); position: relative; display: inline-block; flex: none; }
.logo-mark::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--orange); }
.gnb { display: flex; align-items: center; flex: 1; min-width: 0; }
.gnb > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex: 1; }
.gnb li { position: relative; }
.gnb > ul > li > a { display: block; padding: 18px 14px; font-weight: 600; border-bottom: 2px solid transparent; }
.gnb > ul > li > a.on, .gnb > ul > li > a:hover { color: var(--accent-d); border-bottom-color: var(--accent); }
.gnb .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 170px; list-style: none; margin: 0; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(15,23,42,.1); }
.gnb li:hover > .sub, .gnb li:focus-within > .sub { display: block; }
.gnb .sub a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 14px; }
.gnb .sub a:hover { background: var(--accent-bg); }
.user { display: flex; align-items: center; gap: 12px; font-size: 14px; white-space: nowrap; }
.user form { display: inline; }
.user button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--mute); }
.user .join, .user .adm { padding: 5px 12px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 600; }
.user .adm { background: #2b3038; }
.nav-btn { display: none; margin-left: auto; width: 40px; height: 40px; background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; padding: 10px 9px; }
.nav-btn span { display: block; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* 본문 */
.main { flex: 1; padding-top: 28px; padding-bottom: 56px; }
.flash { padding: 11px 16px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 600; font-size: 14px; }
.flash.ok { background: var(--accent-bg); color: var(--accent-d); border: 1px solid #b9e6e0; }
.flash.error { background: #fdecef; color: #b3263a; border: 1px solid #f5c2ca; }
.hero { background: linear-gradient(120deg, #17313a, var(--accent)); color: #fff; border-radius: 14px; padding: 44px 36px; margin-bottom: 26px; }
.hero h1 { font-size: 30px; letter-spacing: -.5px; }
.hero p { margin: 8px 0 0; opacity: .85; }
.latest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.box.wide { grid-column: 1 / -1; }
.box header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; padding-bottom: 10px; border-bottom: 2px solid var(--text); }
.box h2 { font-size: 17px; }
.more { font-size: 13px; color: var(--mute); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f2f4; font-size: 14.5px; }
.rows li:last-child { border-bottom: 0; }
.rows a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows em, .tbl em { font-style: normal; color: var(--accent-d); font-size: 12px; font-weight: 700; }
.rows time { color: var(--dim); font-size: 13px; white-space: nowrap; }
.none { text-align: center; color: var(--dim); padding: 28px 0; margin: 0; }
.none a { color: var(--accent-d); text-decoration: underline; }
.thumbs, .gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.thumbs img, .gallery img, .noimg { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; display: block; background: #eceff2; }
.noimg { display: grid; place-items: center; color: var(--dim); font-size: 13px; }
.thumbs strong, .gallery strong { display: block; margin-top: 8px; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery small, .webzine small { color: var(--dim); font-size: 12.5px; }
.gallery li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }

/* 게시판 */
.page-hd { margin-bottom: 18px; }
.page-hd h1 { font-size: 26px; letter-spacing: -.4px; }
.page-hd h1 small { font-size: 15px; color: var(--mute); font-weight: 500; margin-left: 6px; }
.page-hd p { margin: 4px 0 0; color: var(--mute); font-size: 14px; }
.list-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; min-height: 36px; }
.cnt { font-size: 14px; color: var(--mute); } .cnt b { color: var(--text); }
.tbl { width: 100%; border-collapse: collapse; background: var(--card); border-top: 2px solid var(--text); font-size: 14.5px; }
.tbl th { padding: 11px 8px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--mute); font-weight: 600; }
.tbl td { padding: 11px 8px; border-bottom: 1px solid #eef0f3; text-align: center; color: var(--mute); font-size: 13.5px; }
.tbl td.ttl { text-align: left; color: var(--text); font-size: 15px; }
.tbl tr.notice td { background: #fafbfc; } .tbl tr.notice .ttl { font-weight: 700; }
.tbl tr:hover td { background: #f8fafb; }
.tbl .n { width: 72px; } .tbl .w { width: 120px; } .tbl .d { width: 100px; } .tbl .h { width: 70px; }
.ntc { font-style: normal; display: inline-block; padding: 1px 7px; border-radius: 4px; background: #fff3e0; color: #c26a00; font-size: 12px; font-weight: 700; }
.webzine { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); background: var(--card); }
.webzine a { display: flex; gap: 18px; padding: 16px 12px; border-bottom: 1px solid #eef0f3; }
.webzine img { width: 180px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; flex: none; }
.webzine strong { font-size: 17px; } .webzine p { margin: 6px 0; color: var(--mute); font-size: 14px; }
.pager { display: flex; justify-content: center; gap: 4px; margin: 22px 0 16px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 34px; height: 34px; padding: 0 8px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--card); font-size: 14px; }
.pager span.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.pager span.gap, .pager .tot { border: 0; background: none; color: var(--dim); }
.pager .tot { display: none; }
.search { display: flex; justify-content: center; gap: 6px; }
.search select, .search input, .write input:not([type=checkbox]), .auth input:not([type=checkbox]), .cmt-form textarea { height: 40px; padding: 0 12px; border: 1px solid #cfd5dc; border-radius: 6px; background: #fff; }
.search input { width: 240px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border: 1px solid #cfd5dc; border-radius: 6px; background: #fff; font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--accent); color: var(--accent-d); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: #fff; } .btn.pri:hover { background: var(--accent-d); color: #fff; }
.btn.danger { color: var(--danger); } .btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.btn.full { width: 100%; height: 46px; font-size: 16px; margin-top: 18px; }

/* 글 보기 */
.crumbs { font-size: 13px; color: var(--mute); margin-bottom: 10px; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.post header { padding: 22px 26px 16px; border-bottom: 1px solid var(--line); }
.post h1 { font-size: 23px; letter-spacing: -.3px; word-break: break-word; }
.meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 8px 0 0; color: var(--mute); font-size: 13.5px; }
.meta b { color: var(--text); }
.content { padding: 26px; min-height: 180px; font-size: 16px; line-height: 1.8; word-break: break-word; overflow-wrap: anywhere; }
.kb-content::after { content: ""; display: block; clear: both; }
.kb-content img { border-radius: 4px; }
.kb-content a { color: var(--accent-d); text-decoration: underline; }
.kb-content table { border-collapse: collapse; max-width: 100%; }
.kb-content td, .kb-content th { border: 1px solid #d5dae0; padding: 6px 10px; }
.kb-content blockquote { margin: 1em 0; padding: 8px 16px; border-left: 4px solid var(--accent); background: #f6f8f9; color: #4a5560; }
.kb-content pre { background: #1f2933; color: #e6edf3; padding: 14px 16px; border-radius: 6px; overflow-x: auto; font-size: 14px; }
.kb-content code { font-family: Consolas, "D2Coding", monospace; }
.kb-content iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.kb-content h2 { font-size: 22px; margin: 1.2em 0 .5em; } .kb-content h3 { font-size: 19px; }
.post-btns { display: flex; gap: 8px; margin: 14px 0 26px; align-items: center; }
.post-btns form { display: inline; }
.comments { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 26px; margin-bottom: 20px; }
.comments h2 { font-size: 17px; margin-bottom: 6px; } .comments h2 b { color: var(--accent-d); }
.comments ul { list-style: none; margin: 0; padding: 0; }
.comments li { padding: 14px 0; border-bottom: 1px solid #eef0f3; }
.comments .meta { margin: 0 0 4px; }
.comments .meta form { display: inline; margin-left: auto; }
.comments .meta button { background: none; border: 0; padding: 0; color: var(--dim); cursor: pointer; font-size: 13px; }
.comments .txt { font-size: 15px; word-break: break-word; overflow-wrap: anywhere; }
.cmt-form { display: flex; gap: 8px; margin-top: 16px; align-items: stretch; }
.cmt-form textarea { flex: 1; height: auto; padding: 10px 12px; resize: vertical; }
.cmt-form .btn { height: auto; }
.near { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.near a { display: flex; gap: 16px; padding: 12px 20px; border-bottom: 1px solid #eef0f3; font-size: 14.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.near a:last-child { border-bottom: 0; } .near span { color: var(--mute); font-size: 13px; flex: none; }

/* 글쓰기 · 회원 */
.write, .auth { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.write label, .auth label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
.write > label:first-of-type, .auth form > label:first-of-type { margin-top: 0; }
.write input:not([type=checkbox]), .auth input:not([type=checkbox]) { width: 100%; }
.write .opts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.write .opts label { margin: 0; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.write .post-btns { margin: 18px 0 0; }
.auth { max-width: 420px; margin: 20px auto; }
.auth.wide { max-width: 520px; }
.auth h1 { font-size: 24px; margin-bottom: 20px; } .auth h2 { font-size: 18px; margin-bottom: 16px; }
.auth small { color: var(--mute); font-size: 12.5px; font-weight: 400; }
.auth .alt { text-align: center; margin: 18px 0 0; color: var(--mute); font-size: 14px; } .auth .alt a, .agree a { color: var(--accent-d); text-decoration: underline; }
.auth .agree { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.auth .agree input { margin-top: 5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.my { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 20px; align-items: start; }
.my .auth { margin: 0; max-width: none; }

/* 푸터 */
.ftr { background: #22272d; color: #9aa3ae; padding: 26px 0 30px; font-size: 13px; }
.ftr nav { display: flex; gap: 18px; margin-bottom: 10px; } .ftr nav a { color: #d6dbe1; }
.ftr p { margin: 4px 0; } .ftr .copy { color: #6b7684; }
.center-page { display: grid; place-items: center; }
.notice-box { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 44px 40px; max-width: 460px; margin: 20px; }
.notice-box h1 { font-size: 22px; margin: 14px 0 8px; } .notice-box p { color: var(--mute); margin: 6px 0; } .notice-box a { color: var(--accent-d); text-decoration: underline; }

@media (max-width: 860px) {
  .nav-btn { display: block; }
  .gnb { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 20px 16px; box-shadow: 0 12px 24px rgba(15,23,42,.08); }
  .gnb.open { display: flex; }
  .gnb > ul { flex-direction: column; gap: 0; }
  .gnb > ul > li > a { padding: 12px 4px; border-bottom: 1px solid #f0f2f4; }
  .gnb .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 6px 14px; }
  .user { padding-top: 14px; }
  .latest, .my { grid-template-columns: 1fr; }
  .thumbs, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbl .n, .tbl .h, .tbl th.w, .tbl td.w { display: none; }
  .hero { padding: 30px 22px; } .hero h1 { font-size: 24px; }
  .content, .post header { padding-left: 18px; padding-right: 18px; }
  .webzine img { width: 110px; }
  .search input { width: 100%; flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: no-preference) { .btn, a { transition: color .12s, border-color .12s, background-color .12s; } }

/* 첨부파일 */
.attach { margin: 0 26px 24px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fafbfc; }
.attach h2 { font-size: 14px; margin-bottom: 8px; } .attach h2 b { color: var(--accent-d); }
.attach ul, .attach-edit { list-style: none; margin: 0; padding: 0; }
.attach li { display: flex; gap: 10px; align-items: center; padding: 6px 0; flex-wrap: wrap; font-size: 14.5px; }
.attach li a { display: inline-flex; gap: 8px; align-items: center; min-width: 0; }
.attach .ext { flex: none; min-width: 40px; text-align: center; padding: 1px 6px; border-radius: 4px; background: var(--accent-bg); color: var(--accent-d); font-size: 11px; font-weight: 700; }
.attach .fname, .attach-edit .fname { overflow-wrap: anywhere; }
.attach a:hover .fname { text-decoration: underline; }
.attach small, .attach-edit small, .hint { color: var(--dim); font-size: 12.5px; }
.attach .hint { margin: 8px 0 0; }
.attach-edit { margin-bottom: 8px; border: 1px solid var(--line); border-radius: 6px; }
.attach-edit li { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid #eef0f3; font-size: 14px; }
.attach-edit li:last-child { border-bottom: 0; }
.attach-edit .fname { flex: 1; min-width: 0; }
.write .attach-edit label { margin: 0; font-weight: 500; display: flex; gap: 5px; align-items: center; color: var(--danger); white-space: nowrap; }
.write input[type=file] { height: auto; padding: 8px 10px; }
.write .hint { display: block; margin-top: 6px; }
.clip { font-size: 12px; }
@media (max-width: 860px) { .attach { margin: 0 18px 20px; } }

/* 태그 · 추천 · 신고 · 목록 배지 */
.tags { margin: 0 26px 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.tags a { padding: 3px 10px; border-radius: 14px; background: #eef1f4; color: #4a5560; font-size: 13.5px; }
.tags a:hover { background: var(--accent-bg); color: var(--accent-d); }
.react { display: flex; justify-content: center; gap: 10px; padding: 4px 26px 24px; }
.react button { padding: 9px 20px; border: 1px solid #cfd5dc; border-radius: 22px; background: #fff; cursor: pointer; font-size: 14.5px; font-weight: 600; }
.react button b { color: var(--accent-d); margin-left: 2px; }
.react button:hover, .react button.on { border-color: var(--accent); background: var(--accent-bg); }
.react button.on.down { border-color: var(--danger); background: #fdecef; }
.report { position: relative; }
.report summary { list-style: none; } .report summary::-webkit-details-marker { display: none; }
.report form { position: absolute; right: 0; top: 46px; z-index: 5; width: 280px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(15,23,42,.14); display: grid; gap: 6px; }
.report label { font-size: 13px; font-weight: 600; }
.report select, .report input { height: 38px; padding: 0 10px; border: 1px solid #cfd5dc; border-radius: 6px; background: #fff; width: 100%; }
.report .btn { margin-top: 6px; }
.comments .meta form + form { margin-left: 10px; }
.badge-new, .badge-hot { font-style: normal; display: inline-block; padding: 0 5px; border-radius: 3px; font-size: 10.5px; font-weight: 800; line-height: 16px; vertical-align: 1px; }
.badge-new { background: #fff3e0; color: #c26a00; } .badge-hot { background: #fdecef; color: #c5283d; }
.likes { font-size: 12px; color: var(--dim); }
@media (max-width: 860px) { .tags, .react { margin-left: 18px; margin-right: 18px; padding-left: 0; padding-right: 0; } }

/* 프로필 · 쪽지 · 포인트 */
.profile { display: flex; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 20px; flex-wrap: wrap; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-bg); color: var(--accent-d); display: grid; place-items: center; font-size: 26px; font-weight: 800; flex: none; }
.profile .who { flex: 1; min-width: 200px; } .profile h1 { font-size: 22px; } .profile h1 small { font-size: 14px; color: var(--mute); font-weight: 500; }
.profile p { margin: 4px 0 0; color: var(--mute); font-size: 14px; } .profile p b { color: var(--text); }
.profile .acts { display: flex; gap: 8px; }
.seg { display: inline-flex; border: 1px solid #cfd5dc; border-radius: 6px; overflow: hidden; background: #fff; flex-wrap: wrap; }
.seg a { padding: 8px 16px; font-size: 14px; font-weight: 600; border-right: 1px solid #e3e6ea; } .seg a:last-child { border-right: 0; }
.seg a.on { background: var(--accent); color: #fff; } .seg a b { color: var(--accent-d); }
.my-nav { margin-bottom: 16px; }
.auth textarea { width: 100%; padding: 10px 12px; border: 1px solid #cfd5dc; border-radius: 6px; resize: vertical; }
.plus { color: var(--accent-d); } .minus { color: var(--danger); }
.meta b a:hover { text-decoration: underline; }

/* 디자인 관리: 로고 · 머리글 고정 해제 · 최신글 단 수 · 배너 · FAQ · 팝업 */
.logo img { height: 36px; width: auto; display: block; }
.hdr-static .hdr { position: static; }
.latest.cols-1 { grid-template-columns: minmax(0, 1fr); }
.latest.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.latest + .banners { margin: 22px 0 0; }
.ftr .banners { margin-bottom: 16px; }
.faq-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.faq-tabs a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 600; }
.faq-tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.faq summary { padding: 14px 18px; font-weight: 700; cursor: pointer; list-style: none; display: flex; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--accent-d); font-weight: 800; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--dim); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .kb-content { padding: 16px 18px; }
.popup { position: fixed; z-index: 60; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 48px rgba(15,23,42,.28); overflow: hidden; }
.popup[hidden] { display: none; }
.popup .pop-body { overflow: auto; }
.popup .pop-body img { display: block; width: 100%; height: auto; }
.popup .pop-body p { margin: 0; padding: 12px 14px; font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.popup .pop-body a { color: inherit; }
.popup > footer { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; background: #22272d; color: #fff; font-size: 12.5px; }
.popup button { background: none; border: 0; cursor: pointer; padding: 2px 4px; color: #fff; font-size: 12.5px; }
.popup button:hover { text-decoration: underline; }
@media (max-width: 700px) { .popup { left: 50% !important; top: 72px !important; transform: translateX(-50%); margin: 0 !important; width: min(420px, calc(100vw - 24px)) !important; } }
@media (max-width: 860px) { .latest.cols-3 { grid-template-columns: 1fr; } .popup, .popup.pos-left, .popup.pos-right { left: 12px; right: 12px; top: 70px; width: auto !important; transform: none; } }

/* 설문 */
.survey header .dim { margin: 6px 0 0; font-size: 13px; }
.survey .desc { margin: 0 0 18px; color: var(--mute); }
.survey .q { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 16px 0; min-width: 0; }
.survey legend { font-weight: 700; padding: 0 0 8px; float: left; width: 100%; } .survey legend + * { clear: both; }
.survey legend em { color: var(--danger); font-style: normal; }
.survey .opt { display: block; padding: 5px 0; cursor: pointer; }
.survey .svin { width: 100%; max-width: 560px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.survey .act { margin: 8px 0 0; } .survey .svbtn { padding: 9px 26px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }

/* 메뉴 3단계 · 링크 없는 묶음 메뉴(.nl) · PC / 모바일 노출 */
.gnb .nl { display: block; cursor: default; }
.gnb > ul > li > .nl { padding: 18px 14px; font-weight: 600; border-bottom: 2px solid transparent; }
.gnb > ul > li:hover > .nl, .gnb > ul > li:focus-within > .nl { color: var(--accent-d); border-bottom-color: var(--accent); }
.gnb .sub .nl { padding: 8px 12px; font-size: 14px; }
.gnb .sub .sub { top: -7px; left: 100%; }
.gnb .sub li.has-sub > a::after, .gnb .sub li.has-sub > .nl::after { content: "›"; float: right; color: var(--dim); }
@media (min-width: 861px) { .gnb .d-off { display: none; } }
@media (max-width: 860px) {
  .gnb .m-off { display: none; }
  .gnb > ul > li > .nl { padding: 12px 4px; border-bottom: 1px solid #f0f2f4; }
  .gnb .sub .sub { padding-left: 14px; }
  .gnb .sub li.has-sub > a::after, .gnb .sub li.has-sub > .nl::after { content: none; }
}

/* 분류 */
.cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.cat-tabs a { padding: 5px 14px; border: 1px solid #cfd5dc; border-radius: 18px; background: #fff; font-size: 13.5px; font-weight: 600; }
.cat-tabs a.on, .cat-tabs a:hover { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-d); }
.cat-badge { display: inline-block; padding: 0 7px; border-radius: 4px; background: #eef1f4; color: #4a5560; font-size: 12.5px; font-weight: 700; line-height: 20px; vertical-align: 1px; }
.cat-badge:hover { background: var(--accent-bg); color: var(--accent-d); }
.write select { height: 40px; padding: 0 12px; border: 1px solid #cfd5dc; border-radius: 6px; background: #fff; min-width: 200px; }

/* 배너 · 사이드바 */
.banners { display: grid; gap: 12px; margin-bottom: 18px; }
.banner { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.banner img { display: block; width: 100%; height: auto; }
.banner figcaption { padding: 8px 12px; font-size: 13.5px; color: var(--mute); }
.banners-footer { max-width: 728px; margin: 0 auto 18px; }
.wrap-body { flex: 1; }
.wrap-body.has-side { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; align-items: start; }
.side-banners { padding-top: 28px; position: sticky; top: 76px; }
.side-banners .banners { margin-bottom: 0; }
@media (max-width: 960px) { .wrap-body.has-side { display: block; } .side-banners { position: static; padding: 0 0 40px; } }

/* 게시판 스킨(.bs) 스타일은 각 스킨 폴더의 assets/style.css(app/Views/skins/board/<이름>/assets/style.css)에 있습니다. */
@media (max-width: 860px) {
  .tbl th.m-hide, .tbl td.m-hide, .tbl .m-hide { display: none; }
  .tbl .n { width: 40px; } .tbl .w { width: 70px; } .tbl .d { width: 54px; } .tbl .h { width: 42px; }
  .tbl th, .tbl td { padding-left: 4px; padding-right: 4px; }
  .tbl td.ttl { word-break: keep-all; overflow-wrap: anywhere; font-size: 14.5px; }
  .qa-bd, .cat-badge, .badge-new, .badge-hot, .ntc { white-space: nowrap; }
}

/* 페이지 스킨(body.ps-*) 스타일은 app/Views/skins/<페이지>/<스킨이름>/assets/style.css 에 있습니다. */
/* 사이드바 위젯 */
.side-widgets { display: grid; gap: 14px; align-content: start; }
.sw-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; }
.sw-box h2 { font-size: 14.5px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 2px solid var(--text); }
.sw-box p { margin: 0 0 8px; } .sw-box p:last-child { margin-bottom: 0; }
.sw-box ul { list-style: none; margin: 0; padding: 0; } .sw-box li { padding: 5px 0; border-bottom: 1px solid #eef0f3; } .sw-box li:last-child { border-bottom: 0; }
.sw-box li a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-links { display: flex; gap: 10px; flex-wrap: wrap; } .sw-links a { color: var(--accent-d); font-weight: 600; } .sw-links .btn { height: 32px; padding: 0 12px; font-size: 13.5px; color: inherit; }
.sw-links .btn.pri { color: #fff; }
.sw-tags { display: flex; flex-wrap: wrap; gap: 6px; } .sw-tags a { background: #eef1f4; border-radius: 14px; padding: 2px 10px; font-size: 13px; }
.side-widgets .banners { margin: 0; }
.pv-flag { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 99; background: #1f2933; color: #fff; padding: 8px 18px; border-radius: 20px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.3); pointer-events: none; }

/* 알림 배지 */
.nbadge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px; font-size: 11px; line-height: 18px; text-align: center; color: #fff; background: #e5484d; border-radius: 9px; font-weight: 700; }

/* 약관 본문 · 재동의 화면 */
.term-text { white-space: pre-wrap; word-break: break-word; line-height: 1.8; }
.term-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin: 12px 0 6px; }
.term-box summary { padding: 11px 14px; cursor: pointer; } .term-box .term-text { padding: 4px 16px 14px; max-height: 320px; overflow-y: auto; font-size: 14px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--mute); text-decoration: underline; cursor: pointer; font: inherit; }

/* 외부 링크 검사 */
.link-blocked { text-decoration: line-through; color: var(--mute, #888); cursor: not-allowed; }
.out-box { max-width: 460px; }
.out-url { display: block; margin: 14px 0; padding: 10px 12px; border: 1px solid var(--line, #ddd); border-radius: 4px; font: 13px/1.4 monospace; word-break: break-all; background: rgba(127,127,127,.08); }
.out-why { margin: 0 0 10px; padding-left: 18px; text-align: left; font-size: 13px; color: #b45309; }
.out-btns { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* AI 글쓰기를 쓸 수 없으면 에디터의 AI 버튼을 숨긴다 */
body.no-ai [data-cmd="ai"], body.no-ai [data-tool="ai"], body.no-ai .editor-ai-panel { display: none !important; }


/* 통합 검색 */
.sr-form { position: relative; display: flex; gap: 8px; margin-bottom: 16px; }
.sr-form input[type=search] { flex: 1; min-width: 0; height: 44px; border: 2px solid var(--accent); border-radius: var(--radius); padding: 0 14px; font-size: 15px; background: #fff; }
.sr-form select { height: 44px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 10px; background: #fff; }
.sr-form button { height: 44px; padding: 0 20px; background: var(--accent); color: #fff; border: 0; border-radius: var(--radius); font-weight: 700; cursor: pointer; }
.sr-sg { position: absolute; z-index: 20; left: 0; right: 0; top: 48px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.12); overflow: hidden; }
.sr-sg[hidden] { display: none; }
.sr-sg a { display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; font-size: 14px; }
.sr-sg a:hover, .sr-sg a.on { background: var(--accent-bg); color: var(--text); }
.sr-sg .sg-k { flex: none; font-size: 11px; color: var(--dim); min-width: 34px; }
.sr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sr-chips a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--mute); }
.sr-chips a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sr-chips em, .sr-t em { font-style: normal; font-size: 12px; opacity: .8; }
.sr-sort { display: flex; gap: 12px; justify-content: flex-end; font-size: 13px; color: var(--dim); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.sr-sort a.on { color: var(--text); font-weight: 700; }
.sr-list { list-style: none; margin: 0; padding: 0; }
.sr-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.sr-t { font-size: 16px; font-weight: 700; }
.sr-s { margin: 6px 0 0; color: var(--mute); font-size: 14px; line-height: 1.6; word-break: break-word; }
.sr-s mark { background: #fff2b3; color: inherit; padding: 0 1px; border-radius: 2px; }
.sr-m { margin: 6px 0 0; font-size: 12.5px; color: var(--dim); }
.sr-m a:hover { text-decoration: underline; }
@media (max-width: 560px) { .sr-form { flex-wrap: wrap; } .sr-form select { order: 3; } }
@media (pointer: coarse) { .sr-sort a, .sr-chips a { padding-top: 10px; padding-bottom: 10px; } }
.sr-has-sg { position: relative; }

/* 기본 · 클린 · 나이트 테마 헤더 검색창 */
.hdr-search { position: relative; display: flex; align-items: center; margin: 0 12px 0 0; }
.hdr-search input { width: 150px; height: 36px; border: 1px solid var(--line); border-radius: 999px 0 0 999px; border-right: 0; padding: 0 14px; font-size: 14px; background: var(--card); color: var(--text); transition: width .2s; }
.hdr-search input:focus { width: 210px; outline: none; border-color: var(--accent); }
.hdr-search button { height: 36px; width: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-left: 0; border-radius: 0 999px 999px 0; background: var(--card); color: var(--mute); cursor: pointer; }
.hdr-search button:hover { color: var(--accent-d); }
.hdr-search .sr-sg { left: auto; right: 0; min-width: 280px; top: 42px; text-align: left; }
@media (max-width: 860px) { .hdr-search { margin: 8px 0; } .hdr-search input, .hdr-search input:focus { width: 100%; flex: 1; } .hdr-search { width: 100%; } .hdr-search .sr-sg { left: 0; min-width: 0; top: 48px; } .hdr-search input, .hdr-search button { height: 44px; } .hdr-search input { font-size: 16px; } .hdr-search button { width: 48px; } }

/* 글 화면의 스크랩 · 구독 버튼, 내 스크랩 · 내 구독 목록 */
.post-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.post-acts form { margin: 0; }
.post-acts button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--mute); font-size: 13px; font-weight: 600; cursor: pointer; }
.post-acts button:hover { border-color: var(--accent); color: var(--accent-d); }
.post-acts button.on { background: var(--accent-bg); border-color: var(--accent); color: var(--accent-d); }
.sc-list { list-style: none; margin: 0; padding: 0; }
.sc-list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sc-list li > :first-child { flex: 1; min-width: 0; }
.sc-t { font-weight: 700; display: block; word-break: break-word; }
.sc-t em { font-style: normal; font-size: 12px; color: var(--accent-d); }
.sc-gone { color: var(--dim); font-weight: 500; }
.sc-m { margin: 4px 0 0; font-size: 12.5px; color: var(--dim); }
.sc-list form { margin: 0; flex: none; }
.sc-x { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--mute); cursor: pointer; }
.sc-x:hover { color: var(--danger); border-color: var(--danger); }

/* 인기글 */
.pop-list { list-style: none; margin: 8px 0 0; padding: 0; }
.pop-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pop-list li > div { min-width: 0; flex: 1; }
.pop-n { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--line); color: var(--mute); font-weight: 800; font-size: 13px; }
.pop-n.top { background: var(--accent); color: #fff; }

/* 대댓글 · 댓글 추천 */
.comments .cmt-kids { list-style: none; padding: 0; margin: 0; }
.comments .cmt-kids > ul { list-style: none; margin: 0 0 6px 18px; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.comments li.cmt-re { background: transparent; }
.cmt-acts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 6px; }
.cmt-acts form { margin: 0; }
.cmt-like { min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--mute); font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; }
span.cmt-like { cursor: default; }
button.cmt-like:hover { border-color: var(--accent); color: var(--accent-d); }
.cmt-like.on { background: var(--accent-bg); border-color: var(--accent); color: var(--accent-d); }
.cmt-reply { flex: 1 1 100%; }
.cmt-reply summary { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--mute); cursor: pointer; list-style: none; }
.cmt-reply summary::-webkit-details-marker { display: none; }
.cmt-reply[open] summary { border-color: var(--accent); color: var(--accent-d); }
.cmt-reply .cmt-form { margin: 8px 0 0; }

/* 글 임시저장 줄 · 이어서 읽기 버튼 */
.draft-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--card); font-size: 13px; color: var(--mute); }
.draft-bar .btn { height: 34px; padding: 0 14px; font-size: 13px; }
.draft-st { flex: 1; min-width: 160px; }
.draft-list { flex: 1 1 100%; }
.draft-list summary { cursor: pointer; color: var(--accent-d); font-weight: 600; }
.draft-list ul { list-style: none; margin: 8px 0 0; padding: 0; }
.draft-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.draft-list li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.draft-list time { color: var(--dim); font-size: 12px; }
.draft-x { border: 0; background: none; color: var(--danger); cursor: pointer; font-size: 12px; min-height: 32px; }
.resume-btn { position: fixed; left: 16px; bottom: 16px; z-index: 55; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--text); color: var(--card); font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

/* 글 안 투표 · 키워드 알림 */
.poll { margin: 16px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.poll header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-bottom: 10px; font-size: 13px; color: var(--mute); }
.poll header b { color: var(--text); font-size: 15px; }
.poll ul { list-style: none; margin: 0 0 12px; padding: 0; }
.poll li { padding: 6px 0; }
.poll label { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.poll-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.poll-row small { font-weight: 400; color: var(--dim); }
.poll-bar { height: 8px; margin-top: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.poll-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.poll li.mine .poll-bar i { background: var(--accent-d); }
.poll .hint { margin: 0; font-size: 13px; color: var(--dim); }
.poll-form { margin: 14px 0; padding: 10px 14px; border: 1px dashed var(--line); border-radius: var(--radius); }
.poll-form summary { cursor: pointer; font-weight: 600; color: var(--accent-d); min-height: 32px; display: flex; align-items: center; }
.poll-form textarea { width: 100%; margin: 6px 0; }
.kw-form { display: flex; gap: 8px; margin: 0 0 14px; }
.kw-form input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 12px; background: var(--card); }

/* 글 안 투표 · 키워드 알림 */
.poll { margin: 16px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.poll header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-bottom: 10px; font-size: 13px; color: var(--mute); }
.poll header b { color: var(--text); font-size: 15px; }
.poll ul { list-style: none; margin: 0 0 12px; padding: 0; }
.poll li { padding: 6px 0; }
.poll label { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.poll-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.poll-row small { font-weight: 400; color: var(--dim); }
.poll-bar { height: 8px; margin-top: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.poll-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.poll li.mine .poll-bar i { background: var(--accent-d); }
.poll .hint { margin: 0; font-size: 13px; color: var(--dim); }
.poll-form { margin: 14px 0; padding: 10px 14px; border: 1px dashed var(--line); border-radius: var(--radius); }
.poll-form summary { cursor: pointer; font-weight: 600; color: var(--accent-d); min-height: 32px; display: flex; align-items: center; }
.poll-form textarea { width: 100%; margin: 6px 0; }
.kw-form { display: flex; gap: 8px; margin: 0 0 14px; }
.kw-form input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 12px; background: var(--card); }

/* 프로필 사진 · 자기소개 · 태그 구름 */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prof-av { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.prof-av .avatar { width: 96px; height: 96px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent-d); font-size: 36px; font-weight: 800; }
.prof-av input[type=file] { max-width: 100%; }
.bio { margin: 6px 0; color: var(--text); font-size: 14px; line-height: 1.6; }
.pf-stat { margin: 6px 0; color: var(--mute); font-size: 13px; }
.cmt-av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 6px; }
.tagcloud { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; line-height: 1.2; }
.tagcloud a { color: var(--mute); font-weight: 700; display: inline-block; padding: 4px 2px; }
.tagcloud a:hover { color: var(--accent-d); }
.tagcloud sup { font-size: 10px; font-weight: 400; color: var(--dim); margin-left: 2px; }
.tagcloud .tc1 { font-size: 13px; } .tagcloud .tc2 { font-size: 16px; } .tagcloud .tc3 { font-size: 20px; color: var(--text); }
.tagcloud .tc4 { font-size: 26px; color: var(--accent-d); } .tagcloud .tc5 { font-size: 34px; color: var(--accent-d); }
.tagcloud_sm { gap: 4px 10px; }
.tagcloud_sm .tc1 { font-size: 12px; } .tagcloud_sm .tc2 { font-size: 13px; } .tagcloud_sm .tc3 { font-size: 15px; } .tagcloud_sm .tc4 { font-size: 17px; } .tagcloud_sm .tc5 { font-size: 20px; }

/* 앱 설치 · 푸시 알림 */
.push-box { display: grid; gap: 14px; }
.push-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.push-card h2 { font-size: 17px; margin: 0 0 8px; }
.push-st { margin: 6px 0 10px; font-weight: 600; }
.push-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.push-note { margin: 6px 0 0; font-size: 13px; color: var(--dim); }

/* @멘션 · 차단 · 알림 수신 설정 · 수정 이력 */
a.mention { color: var(--accent-d); font-weight: 700; }
.mention-box { position: absolute; z-index: 70; min-width: 160px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.18); overflow: hidden; }
.mention-box button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 14px; font-size: 14px; color: var(--text); cursor: pointer; }
.mention-box button.on, .mention-box button:hover { background: var(--accent-bg); }
.cmt-blocked > summary { cursor: pointer; color: var(--dim); font-size: 13px; padding: 4px 0; }
.np-tbl td small { color: var(--dim); }
.np-tbl td.w, .np-tbl th.w { text-align: center; width: 84px; }
.np-tbl input[type=checkbox] { width: 20px; height: 20px; }
.btn-hist { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--mute); font-size: 13px; font-weight: 600; }
.btn-hist:hover { border-color: var(--accent); color: var(--accent-d); }
.hist-list li.cur { background: var(--accent-bg); padding-left: 10px; border-radius: 8px; }
.hist-list li.on .sc-t { color: var(--accent-d); }
.hist-diff { margin-top: 18px; }
.hist-diff h2 { font-size: 17px; }
.hd-body { margin: 10px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font: 13.5px/1.7 ui-monospace, "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; word-break: break-word; overflow-x: auto; }
.hd-body span { display: block; }
.hd-add { background: rgba(46, 160, 67, .18); }
.hd-del { background: rgba(214, 69, 90, .16); text-decoration: line-through; text-decoration-color: rgba(214,69,90,.5); }
.hd-same { color: var(--mute); }
.hd-title del { color: var(--danger); } .hd-title ins { color: var(--accent-d); text-decoration: none; font-weight: 700; }

/* 글 목록 보기 방식 전환 */
.bd-views { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.bd-view { padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--mute); }
.bd-view:hover { color: var(--text); }
.bd-view.on { background: var(--accent-bg); color: var(--accent-d); }
@media (pointer: coarse) { .bd-view { padding: 10px 12px; } }

/* 읽음 표시 */
a.kb-read { color: var(--dim) !important; font-weight: 400 !important; }
a.kb-read:hover { color: var(--accent-d) !important; }
.kb-new { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; vertical-align: middle; white-space: nowrap; }

/* 비공개 메모 */
.post-memo { flex: 1 1 100%; }
.post-memo summary, .sc-edit summary { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--mute); font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.post-memo summary::-webkit-details-marker, .sc-edit summary::-webkit-details-marker { display: none; }
.post-memo[open] summary, .sc-edit[open] summary { border-color: var(--accent); color: var(--accent-d); }
.post-memo form, .sc-edit form { margin: 8px 0 0; display: grid; gap: 8px; max-width: 560px; }
.post-memo textarea, .sc-edit textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; background: var(--card); }
.post-memo .btn, .sc-edit .btn { justify-self: start; height: 36px; }
.sc-memo { margin: 6px 0 0; padding: 8px 10px; border-left: 3px solid var(--accent); background: var(--accent-bg); border-radius: 0 8px 8px 0; font-size: 13.5px; }
.sc-edit { margin-top: 6px; }

/* 단축 검색(Ctrl+K) */
.qk { position: fixed; inset: 0; z-index: 90; background: rgba(15, 19, 25, .55); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.qk-box { width: min(620px, 100%); background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.35); overflow: hidden; }
.qk-in { width: 100%; height: 54px; border: 0; border-bottom: 1px solid var(--line); padding: 0 18px; font-size: 16px; background: transparent; color: var(--text); outline: none; }
.qk-list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.qk-list a { display: flex; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: 15px; color: var(--text); }
.qk-list a.on { background: var(--accent-bg); color: var(--accent-d); }
.qk-g { flex: none; min-width: 52px; font-size: 11px; color: var(--dim); }
.qk-hint { margin: 0; padding: 8px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
body.qk-open { overflow: hidden; }
.qk-fab { position: fixed; right: 16px; bottom: 72px; z-index: 59; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 19px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); display: grid; place-items: center; }
body.qk-open .qk-fab { display: none; }
@media print { .qk-fab { display: none; } }
@media (pointer: coarse) { .qk-hint { display: none; } }

/* 출석 체크 · 배지 */
.att-top { display: grid; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 16px; }
.att-stats { display: flex; gap: 10px; }
.att-stats div { flex: 1; text-align: center; padding: 10px 6px; border-radius: 10px; background: var(--accent-bg); }
.att-stats b { display: block; font-size: 26px; color: var(--accent-d); line-height: 1.2; }
.att-stats span { font-size: 12px; color: var(--mute); }
.att-btn { height: 52px; font-size: 17px; width: 100%; }
.att-btn[disabled] { opacity: .7; cursor: default; }
.att-note { margin: 0; font-size: 13px; color: var(--dim); }
.att-cal { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.att-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; }
.att-nav a { color: var(--accent-d); padding: 8px 4px; }
.att-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.att-w { font-size: 12px; color: var(--dim); padding: 4px 0; }
.att-d { position: relative; padding: 10px 0; border-radius: 8px; font-size: 14px; color: var(--mute); }
.att-d.on { background: var(--accent); color: #fff; font-weight: 700; }
.att-d.on i { display: block; font-style: normal; font-size: 10px; line-height: 1; }
.att-d.today { outline: 2px solid var(--accent); outline-offset: -2px; }
.att-rank { margin-top: 16px; }
.att-rank h2 { font-size: 16px; }
.att-rank ol { list-style: none; margin: 8px 0 0; padding: 0; }
.att-rank li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.att-rank li b { flex: 1; } .att-rank li span:last-child { color: var(--mute); font-size: 13px; }
.badge-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.badge-grid li { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 16px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.badge-grid .bg-ic { font-size: 38px; line-height: 1.1; }
.badge-grid small { color: var(--mute); font-size: 12px; }
.badge-grid em { font-style: normal; font-size: 12px; color: var(--accent-d); }
.badge-grid li.lock { opacity: .72; } .badge-grid li.lock .bg-ic { filter: grayscale(1); }
.bg-bar { width: 80%; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bg-bar i { display: block; height: 100%; background: var(--accent); }
.pf-badges { margin: 6px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pf-badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-bg); font-size: 18px; }

/* 글 목록 무한 스크롤 */
.sb-pager.inf-hide { display: none; }
.inf-toggle { border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--mute); font-size: 12px; font-weight: 600; padding: 0 12px; min-height: 36px; cursor: pointer; }
.inf-toggle[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-d); background: var(--accent-bg); }
.inf-sentinel { text-align: center; padding: 18px 0; color: var(--dim); font-size: 13px; opacity: .35; }
.inf-sentinel.loading { opacity: 1; }
.inf-end { text-align: center; color: var(--dim); font-size: 13px; padding: 14px 0; margin: 0; }

/* 댓글 정렬 */
.cmt-sort { display: flex; gap: 6px; justify-content: flex-end; margin: 0 0 8px; }
.cmt-sort a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--mute); }
.cmt-sort a.on { background: var(--accent-bg); border-color: var(--accent); color: var(--accent-d); font-weight: 700; }
@media (pointer: coarse) { .cmt-sort a { padding: 10px 14px; } }

/* 내 활동 요약 */
.act-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 16px; }
.act-sum div { text-align: center; padding: 12px 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.act-sum b { display: block; font-size: 22px; color: var(--accent-d); line-height: 1.2; }
.act-sum span { font-size: 12px; color: var(--mute); }
.act-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.act-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.act-card h2 { font-size: 16px; margin: 0 0 10px; }
.act-card small { font-size: 12px; font-weight: 400; color: var(--mute); margin-left: 4px; }
.act-bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; height: 130px; align-items: end; }
.act-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 3px; min-width: 0; }
.act-col i { display: block; width: 100%; max-width: 30px; border-radius: 4px 4px 0 0; background: var(--line); min-height: 2px; }
.act-col i.now { background: var(--accent); }
.act-col:hover i { background: var(--accent-d); }
.act-v { font-size: 11px; color: var(--mute); min-height: 14px; }
.act-l { font-size: 10px; color: var(--dim); white-space: nowrap; }
.act-log { margin-top: 18px; } .act-log h2 { font-size: 16px; }
.act-log b.plus { color: var(--accent-d); } .act-log b.minus { color: var(--danger); }
.act-log .sc-list li { align-items: center; }

/* 글 보기 도구 (게시판 설정 > 게시물열람) */
.kb-pv img { max-width: 100%; height: auto; }
@media print {
  header, footer, nav, .sb-hd, .post-btns, .post-acts, .react, #comments, .draft-bar { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}

.bd-catsel { margin: 8px 0; display: flex; gap: 6px; } .bd-catsel select { min-width: 160px; max-width: 100%; }

/* 캡차 */
.kb-cap { margin: 10px 0; }
.kb-cap-lb { display: block; font-size: 13px; margin-bottom: 4px; }
.kb-cap-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.kb-cap-img { border: 1px solid var(--line, #d8dbe2); border-radius: 6px; background: #f6f7fa; max-width: 100%; height: auto; }
.kb-cap-new { border: 1px solid var(--line, #d8dbe2); background: transparent; border-radius: 6px; width: 36px; height: 36px; cursor: pointer; font-size: 18px; color: inherit; }
.kb-cap-in { width: 100%; max-width: 220px; letter-spacing: 3px; text-transform: uppercase; }
.kb-cap-v3 { display: block; font-size: 11px; opacity: .7; margin-top: 4px; }

/* 견적문의 공개 폼 */
.iq-form { display: grid; gap: 14px; }
.iq-f { display: grid; gap: 5px; }
.iq-f label { font-weight: 700; font-size: 14px; }
.iq-f label em { color: #e5484d; font-style: normal; }
.iq-f label small { font-weight: 400; opacity: .7; }
.iq-f input[type=text], .iq-f input[type=email], .iq-f input[type=tel], .iq-f select, .iq-f textarea { width: 100%; max-width: 640px; box-sizing: border-box; }
.iq-done { padding: 14px 16px; border: 1px solid var(--line, #d8dbe2); border-radius: 8px; background: rgba(15,157,143,.08); }
.iq-pick { list-style: none; padding: 0; display: grid; gap: 8px; }

/* 휴대폰 인증 (가입) */
.pv-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 8px; }
.pv-row input { flex: 1; min-width: 0; }
.pv-msg { margin: 0 0 10px; font-size: 13px; min-height: 18px; }
.pv-msg.ok { color: #16a34a; } .pv-msg.bad { color: #e5484d; }

/* 게시판 사용자 정의 필드 */
.kb-cf-form { display: grid; gap: 12px; margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line, #d8dbe2); border-radius: 8px; }
.kb-cf-row { display: grid; gap: 5px; }
.kb-cf-row label { font-weight: 700; font-size: 14px; }
.kb-cf-row label em { color: #e5484d; font-style: normal; }
.kb-cf-row input[type=text], .kb-cf-row input[type=date], .kb-cf-row select, .kb-cf-row textarea { width: 100%; max-width: 640px; box-sizing: border-box; }
.kb-cf-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 18px; margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line, #d8dbe2); border-radius: 8px; }
.kb-cf-item dt { font-size: 12px; opacity: .7; } .kb-cf-item dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }

/* 언어 선택 (다국어) */
.kb-lang { position: fixed; left: 12px; bottom: 12px; z-index: 50; display: flex; flex-wrap: wrap; max-width: calc(100vw - 24px); gap: 2px; padding: 3px; border: 1px solid var(--line, #d8dbe2); border-radius: 18px; background: var(--bg, #fff); box-shadow: 0 2px 8px rgba(0,0,0,.12); font-size: 12px; }
.kb-lang a { padding: 3px 10px; border-radius: 999px; white-space: nowrap; color: inherit; text-decoration: none; }
.kb-lang a.on { background: #3b82f6; color: #fff; }
