
/* 표본실 405호 — Frutiger Aero 흑백 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 12px; }

body {
  font-family: 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  background: #f0f0f0;
  color: #111;
  font-size: 12px;
  -webkit-font-smoothing: antialiased;
  transition: background 0.6s;
}
body.mode-406 { background: #111; }

a { color: #222; text-decoration: none; }
a:hover { text-decoration: underline; color: #000; }
a:visited { color: #555; }

/* ── 스파클 캔버스 ── */
#sparkle-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 99998;
}

/* ── 406 팝업 ── */
#overlay-406 {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9999;
  align-items: center; justify-content: center;
}

/* ── 창 프레임 ── */
#wrap {
  max-width: 780px;
  margin: 10px auto;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 8px 8px 6px 6px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18), 0 1px 0 rgba(255,255,255,0.9) inset;
  overflow: hidden;
  transition: all 0.6s;
}
body.mode-406 #wrap {
  background: rgba(10,10,10,0.92);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 4px 40px rgba(0,0,0,0.8);
}

/* ── 타이틀바 ── */
#titlebar {
  height: 32px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.92) 0%,
    rgba(210,210,210,0.88) 45%,
    rgba(180,180,180,0.82) 50%,
    rgba(200,200,200,0.85) 100%);
  border-bottom: 1px solid rgba(0,0,0,0.15);
  display: flex; align-items: center; padding: 0 8px; gap: 6px;
  position: relative; user-select: none; transition: background 0.6s;
}
#titlebar::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0));
  border-radius: 7px 7px 0 0; pointer-events: none;
}
body.mode-406 #titlebar {
  background: linear-gradient(180deg,
    rgba(40,0,0,0.95) 0%, rgba(20,0,0,0.95) 50%, rgba(30,0,0,0.95) 100%);
  border-bottom-color: rgba(255,0,0,0.15);
}
.tb-icon {
  width: 16px; height: 16px;
  background: radial-gradient(circle at 40% 35%, #fff, #aaa);
  border-radius: 3px; border: 1px solid rgba(0,0,0,0.2);
  flex-shrink: 0; transition: background 0.6s;
}
body.mode-406 .tb-icon { background: radial-gradient(circle at 40% 35%, #ff4444, #800000); }
.tb-title {
  flex: 1; font-size: 11px; font-weight: 400; color: #222;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8); transition: all 0.4s;
}
body.mode-406 .tb-title { color: #ff6666; text-shadow: 0 0 8px rgba(255,0,0,0.4); }
.vista-btns { display: flex; gap: 2px; }
.vbtn {
  width: 26px; height: 20px; border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.2);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(200,200,200,0.7));
  font-size: 10px; color: #333;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: url('https://cdn.cursors-4u.net/css-previews/multicursor-busy-55aec32d-css.webp') 0 0, pointer !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset;
}

/* ── 주소창 ── */
#address-bar {
  display: flex; align-items: center; gap: 6px; padding: 5px 10px;
  background: linear-gradient(180deg, rgba(240,240,240,0.95), rgba(225,225,225,0.9));
  border-bottom: 1px solid rgba(0,0,0,0.1); transition: all 0.6s;
}
body.mode-406 #address-bar {
  background: linear-gradient(180deg, rgba(20,0,0,0.95), rgba(15,0,0,0.95));
  border-bottom-color: rgba(255,0,0,0.1);
}
.addr-nav {
  width: 24px; height: 22px; border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(210,210,210,0.7));
  font-size: 10px; color: #444;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: url('https://cdn.cursors-4u.net/css-previews/multicursor-busy-55aec32d-css.webp') 0 0, pointer !important;
  transition: all 0.4s;
}
body.mode-406 .addr-nav {
  background: linear-gradient(180deg, rgba(60,0,0,0.8), rgba(40,0,0,0.8));
  color: #666; border-color: rgba(255,0,0,0.2);
}
#address-input {
  flex: 1; height: 22px; border: 1px solid rgba(0,0,0,0.25); border-radius: 10px;
  background: rgba(255,255,255,0.9); padding: 0 10px; font-size: 11px;
  font-family: inherit; outline: none; color: #333;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) inset; transition: all 0.4s;
}
body.mode-406 #address-input {
  background: rgba(20,0,0,0.8); color: #ff6666; border-color: rgba(255,0,0,0.3);
}

/* ── 레이아웃 ── */
#content-area { display: flex; background: #fff; min-height: 420px; transition: background 0.6s; }
body.mode-406 #content-area { background: #0a0a0a; }

/* ── 사이드바 ── */
#aside {
  width: 140px; min-width: 140px;
  background: linear-gradient(180deg, rgba(245,245,245,0.98), rgba(235,235,235,0.95));
  border-right: 1px solid rgba(0,0,0,0.08); padding: 10px 0; transition: all 0.6s;
}
body.mode-406 #aside {
  background: linear-gradient(180deg, rgba(15,0,0,0.98), rgba(10,0,0,0.95));
  border-right-color: rgba(255,0,0,0.08);
}
.sb-group-title {
  font-size: 10px; font-weight: 600; color: #999;
  padding: 6px 12px 3px; letter-spacing: 0.5px; text-transform: uppercase; transition: color 0.4s;
}
body.mode-406 .sb-group-title { color: #550000; }
#aside a { display: block; padding: 5px 14px; font-size: 11px; color: #333; text-decoration: none; transition: all 0.2s; }
#aside a:hover { background: rgba(0,0,0,0.06); color: #111; text-decoration: none; }
body.mode-406 #aside a { color: #555; }
body.mode-406 #aside a:hover { background: rgba(255,0,0,0.06); color: #cc3333; }
.sb-panel {
  margin: 12px 8px 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.9), rgba(230,230,230,0.7));
  border: 1px solid rgba(0,0,0,0.12); border-radius: 6px; padding: 8px;
  font-size: 10px; color: #555; line-height: 1.6; text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 1px 0 rgba(255,255,255,0.9) inset;
  transition: all 0.4s;
}
body.mode-406 .sb-panel {
  background: linear-gradient(160deg, rgba(40,0,0,0.9), rgba(20,0,0,0.7));
  border-color: rgba(255,0,0,0.2); color: #550000;
}
.sb-panel strong { display: block; font-size: 11px; color: #222; margin-bottom: 3px; transition: color 0.4s; }
body.mode-406 .sb-panel strong { color: #cc3333; }
.sb-counter { margin: 10px 12px 0; font-size: 9px; color: #aaa; line-height: 1.8; transition: color 0.4s; }
body.mode-406 .sb-counter { color: #440000; }

/* ── 메인 ── */
#main { flex: 1; padding: 14px 16px; min-width: 0; }

/* ── 검색바 ── */
#search-area {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(248,248,248,0.95), rgba(238,238,238,0.9));
  border: 1px solid rgba(0,0,0,0.14); border-radius: 8px; padding: 6px 10px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 1px 0 rgba(255,255,255,0.9) inset;
  transition: all 0.4s;
}
body.mode-406 #search-area {
  background: linear-gradient(180deg, rgba(20,0,0,0.9), rgba(15,0,0,0.9));
  border-color: rgba(255,0,0,0.15);
}
#search-area label { font-size: 11px; color: #666; white-space: nowrap; }
#search-area input[type="text"] {
  flex: 1; min-width: 120px; border: 1px solid rgba(0,0,0,0.18); border-radius: 10px;
  background: rgba(255,255,255,0.95); padding: 4px 10px; font-size: 11px;
  font-family: inherit; outline: none; color: #111;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08) inset; transition: all 0.4s;
}
body.mode-406 #search-area input[type="text"] {
  background: rgba(30,0,0,0.8); color: #ff6666; border-color: rgba(255,0,0,0.2);
}
#search-area button {
  height: 26px; padding: 0 14px; border-radius: 5px;
  border: 1px solid rgba(0,0,0,0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(210,210,210,0.85));
  font-size: 11px; font-family: inherit; color: #222; transition: all 0.4s;
}
body.mode-406 #search-area button {
  background: linear-gradient(180deg, rgba(80,0,0,0.9), rgba(50,0,0,0.9));
  color: #cc3333; border-color: rgba(255,0,0,0.2);
}
.search-hint { font-size: 10px; color: #bbb; width: 100%; transition: color 0.4s; }
body.mode-406 .search-hint { color: #330000; }

/* ── 게시판 헤더 ── */
.board-header {
  background: linear-gradient(180deg, rgba(80,80,80,0.92), rgba(40,40,40,0.95));
  border-radius: 6px 6px 0 0; padding: 6px 10px;
  display: flex; align-items: baseline; justify-content: space-between;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset; transition: background 0.6s;
}
body.mode-406 .board-header {
  background: linear-gradient(180deg, rgba(100,0,0,0.92), rgba(60,0,0,0.95));
}
.board-header h1 { font-size: 12px; font-weight: 600; color: #fff; letter-spacing: -0.2px; }
.board-header span { font-size: 10px; color: #aaa; transition: color 0.4s; }
body.mode-406 .board-header span { color: #660000; }

/* ── 공지 ── */
.notice-bar {
  background: linear-gradient(90deg, rgba(240,240,240,0.9), rgba(248,248,248,0.8));
  border: 1px solid rgba(0,0,0,0.08); border-top: none; padding: 4px 10px;
  font-size: 10px; color: #666; margin-bottom: 8px; transition: all 0.4s;
}
body.mode-406 .notice-bar {
  background: linear-gradient(90deg, rgba(30,0,0,0.9), rgba(20,0,0,0.8));
  border-color: rgba(255,0,0,0.08); color: #550000;
}

/* ── 페이징 ── */
#paging { text-align: center; padding: 8px 0; font-size: 11px; color: #888; }
#paging a {
  display: inline-block; padding: 2px 8px; border: 1px solid rgba(0,0,0,0.15);
  border-radius: 4px; background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(230,230,230,0.8));
  color: #333; margin: 0 1px;
}
#paging a:hover { background: linear-gradient(180deg, rgba(240,240,240,0.95), rgba(210,210,210,0.85)); text-decoration: none; }
#paging .selected { background: linear-gradient(180deg, rgba(80,80,80,0.9), rgba(50,50,50,0.95)); color: #fff; border-color: transparent; }

/* ── 글 상세 ── */
.article-header {
  background: linear-gradient(180deg, rgba(70,70,70,0.9), rgba(40,40,40,0.95));
  border-radius: 6px 6px 0 0; padding: 10px 12px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset; transition: background 0.6s;
}
body.mode-406 .article-header {
  background: linear-gradient(180deg, rgba(80,0,0,0.9), rgba(50,0,0,0.95));
}
.article-title { font-size: 14px; font-weight: 600; color: #fff; line-height: 1.4; }
.article-meta { font-size: 10px; color: #aaa; margin-top: 4px; transition: color 0.4s; }
body.mode-406 .article-meta { color: #660000; }
.article-body {
  background: #fff; border: 1px solid rgba(0,0,0,0.08); border-top: none;
  padding: 14px; font-size: 12px; line-height: 1.9; color: #222; transition: all 0.6s;
}
body.mode-406 .article-body { background: #0d0000; color: #555; border-color: rgba(255,0,0,0.06); }
.article-body p { margin-bottom: 0.8em; }

.kw {
  background: rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.15); border-radius: 3px;
  padding: 1px 5px; font-weight: 600; color: #111;
}
.kw:hover { background: rgba(0,0,0,0.85); color: #fff; }

.article-tags {
  background: rgba(245,245,245,0.9); border: 1px solid rgba(0,0,0,0.08);
  border-top: none; padding: 6px 12px; font-size: 10px; color: #888;
}
.article-nav {
  background: linear-gradient(180deg, rgba(248,248,248,0.95), rgba(238,238,238,0.9));
  border: 1px solid rgba(0,0,0,0.08); border-top: none; padding: 8px 12px;
  font-size: 11px; color: #666; display: flex; flex-direction: column; gap: 4px;
}
.article-nav a { color: #333; }
.admin-bar {
  font-size: 10px; color: #aaa; padding: 4px 12px;
  border: 1px solid rgba(0,0,0,0.06); border-top: none; background: rgba(250,250,250,0.8);
}
.admin-bar a { color: #aaa; }

/* ── 팝업 ── */
.popup-win {
  width: 400px; max-width: 92vw;
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(245,245,245,0.95));
  border: 1px solid rgba(0,0,0,0.25); border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25), 0 1px 0 rgba(255,255,255,0.9) inset;
  overflow: hidden;
}
.popup-titlebar {
  height: 30px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.9) 0%, rgba(200,200,200,0.85) 45%,
    rgba(170,170,170,0.82) 50%, rgba(190,190,190,0.85) 100%);
  border-bottom: 1px solid rgba(0,0,0,0.12);
  display: flex; align-items: center; padding: 0 8px; gap: 6px; position: relative;
}
.popup-titlebar::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  pointer-events: none;
}
.popup-icon {
  width: 14px; height: 14px;
  background: radial-gradient(circle at 35% 30%, #fff, #888);
  border-radius: 50%; border: 1px solid rgba(0,0,0,0.2); flex-shrink: 0;
}
.popup-titlebar-text { flex: 1; font-size: 11px; color: #222; text-shadow: 0 1px 0 rgba(255,255,255,0.8); }
.popup-body { padding: 16px 18px; }
.popup-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.popup-warning-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255,255,255,0.9), rgba(150,150,150,0.7));
  border: 2px solid rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #222;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15), 0 1px 0 rgba(255,255,255,0.9) inset;
  flex-shrink: 0;
}
.popup-msg { font-size: 12px; color: #222; line-height: 1.6; }
.popup-msg strong { font-size: 13px; display: block; margin-bottom: 6px; color: #111; }
.popup-record {
  background: rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.1); border-radius: 5px;
  padding: 10px 12px; font-size: 11px; font-family: 'Consolas','Courier New',monospace;
  line-height: 2; color: #333; margin-bottom: 12px;
}
.p-label { color: #111; font-weight: 600; }
.p-redact { background: #333; color: #333; border-radius: 2px; padding: 0 4px; cursor: default; }
.p-redact:hover { color: #888; }
.p-deleted { color: #111; font-weight: 700; text-decoration: line-through; }
.popup-ghost { font-size: 10px; color: #bbb; font-family: monospace; line-height: 1.8; margin-bottom: 12px; }
.popup-btns { display: flex; justify-content: flex-end; gap: 8px; }
.popup-btn {
  height: 26px; padding: 0 20px; border-radius: 5px; border: 1px solid rgba(0,0,0,0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(210,210,210,0.85));
  font-size: 11px; font-family: inherit; color: #222;
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 1px 2px rgba(0,0,0,0.1);
}
.popup-btn:active { background: linear-gradient(180deg, rgba(200,200,200,0.9), rgba(230,230,230,0.85)); }

/* ── 상태바 ── */
#statusbar {
  background: linear-gradient(180deg, rgba(235,235,235,0.95), rgba(225,225,225,0.9));
  border-top: 1px solid rgba(0,0,0,0.08); padding: 3px 10px;
  font-size: 10px; color: #666; display: flex; gap: 8px; align-items: center; transition: all 0.6s;
}
body.mode-406 #statusbar {
  background: linear-gradient(180deg, rgba(20,0,0,0.95), rgba(15,0,0,0.95));
  color: #550000; border-top-color: rgba(255,0,0,0.08);
}
.status-sep { width: 1px; height: 10px; background: rgba(0,0,0,0.15); transition: background 0.4s; }
body.mode-406 .status-sep { background: rgba(255,0,0,0.15); }

/* ── 모바일 ── */
@media (max-width: 600px) {
  #wrap { margin: 0; border-radius: 0; }
  #content-area { flex-direction: column; }
  #aside {
    width: 100%; min-width: unset; border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 4px 0; display: flex; flex-wrap: wrap;
  }
  #aside a { display: inline-block; padding: 3px 10px; }
  .sb-panel, .sb-counter, .sb-group-title { display: none; }
  #main { padding: 10px; }
  .board-table th:nth-child(4), .board-table td:nth-child(4) { display: none; }
  #overlay-406 { align-items: flex-end; }
  .popup-win { border-radius: 12px 12px 0 0; max-width: 100vw; width: 100%; }
}

/* ── 댓글 (React 기반 [##_comment_group_##]) ── */
[data-tistory-react-app="Comment"] {
  margin-top: 8px !important;
}

/* 댓글 전체 컨테이너 */
[data-tistory-react-app="Comment"] .tt-comment-cont {
  font-family: 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif !important;
  font-size: 11px !important;
}

/* 댓글 수 */
[data-tistory-react-app="Comment"] .tt-box-total {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #222 !important;
  padding: 10px 14px !important;
  background: linear-gradient(180deg, rgba(248,248,248,0.95), rgba(238,238,238,0.9)) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
}
body.mode-406 [data-tistory-react-app="Comment"] .tt-box-total {
  background: linear-gradient(180deg, rgba(20,0,0,0.9), rgba(15,0,0,0.9)) !important;
  color: #550000 !important;
  border-color: rgba(255,0,0,0.08) !important;
}

/* 댓글 리스트 영역 */
[data-tistory-react-app="Comment"] .tt-area-reply {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  border-top: none !important;
}
body.mode-406 [data-tistory-react-app="Comment"] .tt-area-reply {
  background: #0a0000 !important;
  border-color: rgba(255,0,0,0.06) !important;
}

[data-tistory-react-app="Comment"] .tt-list-reply {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

[data-tistory-react-app="Comment"] .tt-item-reply {
  padding: 10px 14px !important;
  border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}
body.mode-406 [data-tistory-react-app="Comment"] .tt-item-reply {
  border-bottom-color: rgba(255,0,0,0.04) !important;
}

/* 댓글 작성자 */
[data-tistory-react-app="Comment"] .tt-box-meta {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 4px !important;
}
[data-tistory-react-app="Comment"] .tt-link-user {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #333 !important;
  text-decoration: none !important;
}
body.mode-406 [data-tistory-react-app="Comment"] .tt-link-user {
  color: #660000 !important;
}

/* 댓글 날짜 */
[data-tistory-react-app="Comment"] .tt_date {
  font-size: 9px !important;
  color: #bbb !important;
}
body.mode-406 [data-tistory-react-app="Comment"] .tt_date {
  color: #440000 !important;
}

/* 댓글 내용 */
[data-tistory-react-app="Comment"] .tt_desc,
[data-tistory-react-app="Comment"] .tt-wrap-desc p {
  font-size: 11px !important;
  color: #333 !important;
  line-height: 1.7 !important;
  margin-top: 4px !important;
}
body.mode-406 [data-tistory-react-app="Comment"] .tt_desc,
body.mode-406 [data-tistory-react-app="Comment"] .tt-wrap-desc p {
  color: #555 !important;
}

/* 댓글 작성폼 */
[data-tistory-react-app="Comment"] .tt-area-write {
  padding: 12px 14px !important;
  background: linear-gradient(180deg, rgba(245,245,245,0.95), rgba(238,238,238,0.9)) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  border-top: none !important;
  border-radius: 0 0 6px 6px !important;
}
body.mode-406 [data-tistory-react-app="Comment"] .tt-area-write {
  background: linear-gradient(180deg, rgba(15,0,0,0.95), rgba(10,0,0,0.9)) !important;
  border-color: rgba(255,0,0,0.06) !important;
}

/* 등록 버튼 */
[data-tistory-react-app="Comment"] .tt-btn_register {
  height: 26px !important;
  padding: 0 16px !important;
  border-radius: 5px !important;
  border: 1px solid rgba(0,0,0,0.22) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(210,210,210,0.85)) !important;
  font-size: 11px !important;
  font-family: inherit !important;
  color: #222 !important;
}
body.mode-406 [data-tistory-react-app="Comment"] .tt-btn_register {
  background: linear-gradient(180deg, rgba(80,0,0,0.9), rgba(50,0,0,0.9)) !important;
  color: #cc3333 !important;
  border-color: rgba(255,0,0,0.2) !important;
}

/* 댓글 입력창 */
[data-tistory-react-app="Comment"] .tt-cmt {
  font-size: 11px !important;
  color: #222 !important;
  min-height: 40px !important;
  line-height: 1.6 !important;
}
body.mode-406 [data-tistory-react-app="Comment"] .tt-cmt {
  color: #888 !important;
}

/* ── 댓글 (s_rp 구조) ── */
.rp-wrap {
  margin-top: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}
body.mode-406 .rp-wrap { border-color: rgba(255,0,0,0.08); }

.rp-header {
  font-size: 12px; font-weight: 600; color: #222;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(248,248,248,0.95), rgba(238,238,238,0.9));
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
body.mode-406 .rp-header {
  background: linear-gradient(180deg, rgba(20,0,0,0.9), rgba(15,0,0,0.9));
  color: #550000; border-bottom-color: rgba(255,0,0,0.06);
}

.rp-list { background: #fff; }
body.mode-406 .rp-list { background: #0a0000; }

.rp-ol { list-style: none; padding: 0; margin: 0; }

.rp-item {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
body.mode-406 .rp-item { border-bottom-color: rgba(255,0,0,0.04); }

.rp-meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 5px; flex-wrap: wrap;
}
.rp-logo { display: inline-flex; }
.rp-logo img { width: 20px; height: 20px; border-radius: 50%; }
.rp-name { font-size: 11px; font-weight: 600; color: #333; }
body.mode-406 .rp-name { color: #660000; }
.rp-date { font-size: 9px; color: #bbb; }
body.mode-406 .rp-date { color: #440000; }
.rp-ctrl { margin-left: auto; font-size: 10px; }
.rp-ctrl a { color: #bbb; margin-left: 6px; text-decoration: none; }
.rp-ctrl a:hover { color: #666; }
body.mode-406 .rp-ctrl a { color: #330000; }

.rp-desc { font-size: 11px; color: #333; line-height: 1.7; }
body.mode-406 .rp-desc { color: #555; }

/* 대댓글 */
.rp2-ul { list-style: none; padding: 0; margin: 8px 0 0 20px; }
.rp2-item {
  padding: 8px 10px;
  border-left: 2px solid rgba(0,0,0,0.08);
  margin-bottom: 4px;
  background: rgba(0,0,0,0.015);
}
body.mode-406 .rp2-item { border-left-color: rgba(255,0,0,0.1); background: rgba(255,0,0,0.02); }

/* 댓글 입력폼 */
.rp-form {
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(245,245,245,0.95), rgba(238,238,238,0.9));
  border-top: 1px solid rgba(0,0,0,0.06);
}
body.mode-406 .rp-form {
  background: linear-gradient(180deg, rgba(15,0,0,0.95), rgba(10,0,0,0.9));
  border-top-color: rgba(255,0,0,0.06);
}

.rp-guest-fields {
  display: flex; gap: 6px; margin-bottom: 8px;
}
.rp-input-text {
  flex: 1; height: 26px; padding: 0 8px;
  border: 1px solid rgba(0,0,0,0.18); border-radius: 4px;
  background: rgba(255,255,255,0.9); font-size: 11px;
  font-family: inherit; outline: none; color: #111;
}
body.mode-406 .rp-input-text {
  background: rgba(30,0,0,0.8); color: #ff6666; border-color: rgba(255,0,0,0.2);
}

.rp-secret { font-size: 10px; color: #888; display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
body.mode-406 .rp-secret { color: #440000; }

.rp-textarea-wrap { margin-bottom: 8px; }
.rp-textarea {
  width: 100%; padding: 8px;
  border: 1px solid rgba(0,0,0,0.18); border-radius: 4px;
  background: rgba(255,255,255,0.9); font-size: 11px;
  font-family: inherit; outline: none; color: #111;
  resize: vertical; line-height: 1.6;
}
body.mode-406 .rp-textarea {
  background: rgba(30,0,0,0.8); color: #ff6666; border-color: rgba(255,0,0,0.2);
}

.rp-submit-wrap { display: flex; justify-content: flex-end; }
.rp-submit {
  height: 26px; padding: 0 20px; border-radius: 5px;
  border: 1px solid rgba(0,0,0,0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(210,210,210,0.85));
  font-size: 11px; font-family: inherit; color: #222;
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset;
}
body.mode-406 .rp-submit {
  background: linear-gradient(180deg, rgba(80,0,0,0.9), rgba(50,0,0,0.9));
  color: #cc3333; border-color: rgba(255,0,0,0.2);
}

/* ── 게시판 행 (div 기반) ── */
.board-list-header {
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(70,70,70,0.9), rgba(50,50,50,0.95));
  color: #ddd; font-size: 10px; font-weight: 500;
  padding: 4px 0; transition: background 0.6s;
}
body.mode-406 .board-list-header {
  background: linear-gradient(180deg, rgba(80,0,0,0.9), rgba(50,0,0,0.95));
  color: #cc4444;
}
.blh-no  { width: 36px; text-align: center; flex-shrink: 0; padding: 0 4px; }
.blh-title  { flex: 1; padding: 0 6px; }
.blh-author { width: 60px; flex-shrink: 0; padding: 0 4px; }
.blh-date   { width: 70px; flex-shrink: 0; padding: 0 4px; }
.blh-rp     { width: 30px; text-align: center; flex-shrink: 0; padding: 0 4px; }

.board-row {
  display: flex; align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: #fff; font-size: 11px;
  transition: background 0.1s;
}
.board-row:hover { background: rgba(0,0,0,0.025); }
.board-row:nth-child(even) { background: rgba(0,0,0,0.012); }
.board-row:nth-child(even):hover { background: rgba(0,0,0,0.025); }
body.mode-406 .board-row { background: #0a0a0a; border-bottom-color: rgba(255,0,0,0.04); }
body.mode-406 .board-row:hover { background: rgba(255,0,0,0.03); }
body.mode-406 .board-row:nth-child(even) { background: rgba(255,0,0,0.015); }

.br-no     { width: 36px; text-align: center; flex-shrink: 0; color: #bbb; padding: 0 4px; }
.br-title  { flex: 1; padding: 0 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.br-author { width: 60px; flex-shrink: 0; color: #888; font-size: 10px; padding: 0 4px; }
.br-date   { width: 70px; flex-shrink: 0; color: #aaa; font-size: 10px; padding: 0 4px; }
.br-rp     { width: 30px; text-align: center; flex-shrink: 0; color: #888; padding: 0 4px; }
body.mode-406 .br-no     { color: #440000; }
body.mode-406 .br-author { color: #440000; }
body.mode-406 .br-date   { color: #330000; }
body.mode-406 .br-rp     { color: #440000; }

.board-empty {
  padding: 30px; text-align: center; font-size: 11px; color: #aaa;
  background: #fff; border-bottom: 1px solid rgba(0,0,0,0.05);
}

.post-link { color: #222; }
.post-link:hover { color: #000; text-decoration: underline; }
body.mode-406 .post-link { color: #555; }
body.mode-406 .post-link:hover { color: #cc3333; }
.cat-pill {
  display: inline-block; background: rgba(0,0,0,0.07); color: #555;
  border-radius: 10px; padding: 1px 7px; font-size: 9px; margin-right: 4px;
  border: 1px solid rgba(0,0,0,0.1);
}
body.mode-406 .cat-pill { background: rgba(100,0,0,0.2); color: #660000; border-color: rgba(255,0,0,0.15); }

/* ── 글 목록 (div 기반) ── */
.board-list-header {
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(70,70,70,0.9), rgba(50,50,50,0.95));
  color: #ddd; font-size: 10px; font-weight: 500;
  padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.6s;
}
body.mode-406 .board-list-header {
  background: linear-gradient(180deg, rgba(80,0,0,0.9), rgba(50,0,0,0.95)); color: #cc4444;
}

.board-list-item {
  display: flex; align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: #fff; font-size: 11px;
  transition: background 0.1s;
}
.board-list-item:hover { background: rgba(0,0,0,0.02); }
.board-list-item:nth-child(even) { background: rgba(0,0,0,0.012); }
body.mode-406 .board-list-item { background: #0a0a0a; color: #444; border-bottom-color: rgba(255,0,0,0.04); }
body.mode-406 .board-list-item:hover { background: rgba(255,0,0,0.03); }

.bl-num  { width: 36px; min-width: 36px; text-align: center; color: #bbb; padding: 0 4px; }
.bl-title { flex: 1; padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bl-author { width: 64px; min-width: 64px; text-align: center; color: #666; }
.bl-date   { width: 70px; min-width: 70px; text-align: center; color: #aaa; }
.bl-rp     { width: 36px; min-width: 36px; text-align: center; color: #666; }

body.mode-406 .bl-author { color: #440000; }
body.mode-406 .bl-date   { color: #330000; }
body.mode-406 .bl-rp     { color: #440000; }

.board-empty {
  padding: 30px; text-align: center; font-size: 11px; color: #aaa;
  background: #fff; border-bottom: 1px solid rgba(0,0,0,0.05);
}
body.mode-406 .board-empty { background: #0a0a0a; color: #440000; }

/* ── 구독하기 버튼 숨김 ── */
.revenue_button_subscribe,
.subscribe-button,
[class*="subscribe"],
.tt-subscribe { display: none !important; }

/* ── 406호 가독성 개선 ── */
body.mode-406 .board-list-item { background: #0f0000; color: #cc9999; border-bottom-color: rgba(255,0,0,0.08); }
body.mode-406 .board-list-item:hover { background: rgba(255,0,0,0.06); }
body.mode-406 .bl-num   { color: #553333; }
body.mode-406 .bl-author{ color: #884444; }
body.mode-406 .bl-date  { color: #663333; }
body.mode-406 .bl-rp    { color: #884444; }
body.mode-406 .post-link { color: #cc8888; }
body.mode-406 .post-link:hover { color: #ff9999; }
body.mode-406 .cat-pill { background: rgba(180,0,0,0.3); color: #cc6666; border-color: rgba(255,0,0,0.25); }
body.mode-406 .board-list-header { color: #cc4444; }

/* 406호 본문 */
body.mode-406 .article-body { background: #0f0000; color: #cc9999; }
body.mode-406 .article-nav { background: #0a0000; color: #774444; border-color: rgba(255,0,0,0.08); }
body.mode-406 .article-nav a { color: #cc7777; }
body.mode-406 .article-tags { background: #0a0000; color: #664444; }

/* 406호 댓글 */
body.mode-406 .rp-list { background: #0f0000; }
body.mode-406 .rp-item { border-bottom-color: rgba(255,0,0,0.06); }
body.mode-406 .rp-name { color: #cc6666; }
body.mode-406 .rp-date { color: #662222; }
body.mode-406 .rp-desc { color: #cc9999; }
body.mode-406 .rp-ctrl a { color: #552222; }
body.mode-406 .rp-ctrl a:hover { color: #884444; }
body.mode-406 .rp-form { background: #0a0000; border-top-color: rgba(255,0,0,0.08); }
body.mode-406 .rp-secret { color: #664444; }

/* ── 구독하기/네임카드 숨김 ── */
.tt_box_namecard { display: none !important; }

/* ── 네임카드/구독 버튼 강제 숨김 ── */
.tt_box_namecard,
.tt_box_namecard *,
.tt_btn_subscribe,
.tt_tit_cont,
.tt_wrap_thumb,
.tt_thumb_g { display: none !important; visibility: hidden !important; height: 0 !important; overflow: hidden !important; }

/* ── Blinkie (406호 전용) ── */
.sb-blinkies {
  display: none;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
/* 기본(405호)에서는 숨김 */
#sb-blinkies { display: none !important; }
/* 406호 전환 시 표시 */
body.mode-406 #sb-blinkies { display: flex !important; }

.blinkie-img {
  max-width: 120px;
  border: none;
  image-rendering: pixelated;
}

/* ── 페이지 중앙 정렬 ── */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#wrap {
  margin: auto;
}
