/**
 * DXCMS v8.1.0 — Basic Skin Style Sheet
 * 파일명: basic_style.css
 * 위치: boards/skins/basic/basic_style.css
 *
 * ── 이 파일이 커버하는 범위 ──────────────────────────────────────
 *  1) 게시판 목록  (list.php)
 *  2) 게시글 보기  (view.php)
 *  3) 글쓰기/수정  (write.php)
 *  4) 행 렌더링   (_list_rows.php)
 *  5) 공통         (브레드크럼, 모바일 카테고리, 페이지네이션 등)
 * ────────────────────────────────────────────────────────────────
 */


/* ══════════════════════════════════════════════════════════════
   §1  게시판 목록  list.php
════════════════════════════════════════════════════════════════ */

/* ── 목록 래퍼 ── */
.dx-list-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

/* ── 목록 헤더 ── */
.dx-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}
.dx-list-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dx-list-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

/* ── 정렬 버튼 그룹 ── */
.dx-sort-btn-wrap {
  display: flex;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.dx-sort-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
}
.dx-sort-btn.active {
  background: var(--bg-card);
  color: var(--p);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* ── 관리자 툴바 ── */
.dx-adm-bar {
  padding: 9px 16px;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
body.dark .dx-adm-bar {
  background: #1c1a0a;
  border-color: #78350f;
}

/* ── 게시판 이동/복사 선택 박스 ── */
.dx-board-select-box {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  padding: 28px;
  max-width: 400px;
  margin: 0 auto;
}
.dx-board-select-box h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 8px;
}
.dx-board-select-box p {
  font-size: .875rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.dx-board-select-row {
  display: flex;
  gap: 8px;
}
.dx-board-select-cancel {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: var(--text-sub, #475569);
  font-size: .875rem;
  transition: background .14s;
}
.dx-board-select-cancel:hover { background: var(--bg-body); }
.dx-board-select-confirm {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: var(--p);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: filter .14s;
}
.dx-board-select-confirm:hover { filter: brightness(1.08); }
.dx-board-select-sel {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  margin-bottom: 16px;
  outline: none;
  display: block;
  background: var(--bg-body);
  color: var(--text-main);
  font-family: inherit;
}

/* ── 헤더 우측 메타 (총 개수) ── */
.dx-list-total-txt {
  font-size: .8rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.dx-list-total-num {
  color: var(--p);
  font-weight: 700;
}

/* ── 검색 드롭다운 ── */
.dx-search-drop {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  z-index: 300;
  padding: 12px;
}
.dx-search-drop form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dx-search-drop select,
.dx-search-drop input[type="text"] {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .82rem;
  background: var(--bg-body);
  color: var(--text-main);
  outline: none;
  font-family: inherit;
}
.dx-search-drop .dx-search-row {
  display: flex;
  gap: 6px;
}
.dx-search-drop .dx-search-row input {
  flex: 1;
}
.dx-search-submit {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: var(--p);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.dx-search-reset {
  text-align: center;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: background .14s;
}
.dx-search-reset:hover { background: var(--bg-body); }

/* ── 글쓰기 버튼 ── */
.dx-write-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: .87rem;
  font-weight: 700;
  color: #fff;
  background: var(--p);
  text-decoration: none;
  transition: filter .15s;
  box-shadow: 0 2px 8px rgba(26,115,232,.25);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.dx-write-btn:hover { filter: brightness(1.1); }

/* ── 관리자 3선 드롭다운 ── */
.dx-adm-menu-drop {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 130px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  z-index: 300;
  padding: 4px;
}
.dx-adm-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  border-radius: 7px;
  transition: background .12s;
  font-family: inherit;
}
.dx-adm-menu-item.danger  { color: #ef4444; }
.dx-adm-menu-item.move    { color: #7c3aed; }
.dx-adm-menu-item.copy    { color: #059669; }
.dx-adm-menu-item.danger:hover { background: rgba(239,68,68,.08); }
.dx-adm-menu-item.move:hover   { background: rgba(124,58,237,.08); }
.dx-adm-menu-item.copy:hover   { background: rgba(5,150,105,.08); }

/* ── 페이지네이션 ── */
.dx-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 20px 0;
}
.dx-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--bg-card);
  transition: all .12s;
}
.dx-page-btn:hover { border-color: var(--p); color: var(--p); }
.dx-page-btn.active {
  background: var(--p);
  border-color: var(--p);
  color: #fff;
  font-weight: 600;
}


/* ══════════════════════════════════════════════════════════════
   §2  행 렌더링  _list_rows.php
════════════════════════════════════════════════════════════════ */

/* ── 테이블 헤더 ── */
.dx-lt-thead {
  display: none;
  padding: 0 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  min-height: 42px;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── PC 행 ── */
.dx-lt-row-pc {
  display: none;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  min-height: 54px;
  align-items: center;
  transition: background .12s;
  cursor: pointer;
}
.dx-lt-row-pc:hover { background: var(--hover-row, rgba(0,0,0,.025)) !important; }

/* ── 모바일 행 ── */
.dx-lt-row-mo {
  display: flex;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  gap: 10px;
  transition: background .12s;
}
.dx-lt-row-mo:hover { background: var(--hover-row, rgba(0,0,0,.025)) !important; }

/* ── 현재 보기 글 강조 ── */
.dx-lt-cur .dx-lt-title-t {
  color: var(--p) !important;
  font-weight: 700 !important;
}

/* ── 검색어 하이라이트 ── */
.dx-hl { background: #fef08a; color: #78350f; border-radius: 2px; padding: 0 1px; font-weight: 800; }
body.dark .dx-hl { background: #713f12; color: #fef08a; }

/* PC 뷰 전환 (768px+) */
@media (min-width: 768px) {
  .dx-lt-thead   { display: grid; }
  .dx-lt-row-pc  { display: grid; }
  .dx-lt-row-mo  { display: none !important; }
}

/* ── PC행 내부 컬럼 헬퍼 ── */
.dx-lt-col-num {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.dx-lt-col-title {
  padding: 11px 4px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
}
.dx-lt-col-author {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding-left: 4px;
}
.dx-lt-col-date {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.dx-lt-col-view {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ── 제목 링크 ── */
.dx-lt-title-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  overflow: hidden;
}
.dx-lt-title-t {
  font-size: .92rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  transition: color .12s;
}
.dx-lt-title-link:hover .dx-lt-title-t { color: var(--p); }

/* ── HOT 뱃지 ── */
.dx-lt-hot {
  font-size: 9px;
  font-weight: 900;
  color: #f97316;
  background: rgba(249,115,22,.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-style: italic;
  flex-shrink: 0;
}
/* 모바일용 */
.dx-lt-hot-mo {
  font-size: 9px;
  font-weight: 900;
  color: #f97316;
  background: rgba(249,115,22,.1);
  padding: 2px 5px;
  border-radius: 4px;
  font-style: italic;
  flex-shrink: 0;
}

/* ── 카테고리 뱃지 ── */
.dx-lt-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--p);
  background: rgba(26,115,232,.09);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}
/* 모바일용 */
.dx-lt-cat-mo {
  font-size: 9px;
  font-weight: 700;
  color: var(--p);
  background: rgba(26,115,232,.09);
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── 댓글 수 ── */
.dx-lt-cmt {
  color: var(--p);
  font-weight: 700;
  font-size: .78rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── NEW 뱃지 ── */
.dx-lt-new {
  font-size: 9px;
  font-weight: 800;
  color: #ef4444;
  background: rgba(239,68,68,.08);
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ── 아바타 (PC 26px / 모바일 16px) ── */
.dx-lt-ava {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  pointer-events: none;
}
.dx-lt-ava-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  pointer-events: none;
}
.dx-lt-ava-sm { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; flex-shrink: 0; pointer-events: none; }
.dx-lt-ava-sm-span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  pointer-events: none;
}

/* ── 공지 뱃지 ── */
.dx-lt-notice-badge {
  display: inline-block;
  padding: 2px 7px;
  background: #1e293b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 5px;
}
.dx-lt-notice-badge-mo {
  display: inline-block;
  padding: 1px 6px;
  background: #1e293b;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ── 모바일 행 내부 ── */
.dx-lt-mo-body { flex: 1; min-width: 0; }
.dx-lt-mo-title-row {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  min-width: 0;
}
.dx-lt-mo-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  font-size: .74rem;
  color: var(--text-muted);
}
.dx-lt-mo-date {
  font-size: .72rem;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}
.dx-lt-mo-dot { color: var(--border); }

/* ── 빈 목록 ── */
.dx-lt-empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: .875rem;
}
.dx-lt-empty i {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
  opacity: .25;
}

/* ── 전체 공지 ── */
.dx-global-notice-wrap {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-card, #fff);
}
.dx-gn-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  transition: background .12s;
}
.dx-gn-row:last-child { border-bottom: none; }
.dx-gn-row:hover { background: rgba(239,68,68,.04); }
.dx-gn-badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 2px 7px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 5px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.dx-gn-title {
  flex: 1;
  min-width: 0;
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-main, #1e293b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dx-gn-link { text-decoration: none; transition: opacity .12s; }
.dx-gn-link:hover { opacity: .75; }
body.dark .dx-global-notice-wrap { background: var(--bg-card); border-color: var(--border); }
body.dark .dx-gn-row:hover { background: rgba(239,68,68,.08); }

/* ── 뷰 페이지 목록 내 페이지네이션 ── */
.dx-view-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.dx-view-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all .12s;
  background: var(--bg-card);
}
.dx-view-page-btn:hover    { border-color: var(--p); color: var(--p); }
.dx-view-page-btn.active   { background: var(--p); border-color: var(--p); color: #fff; font-weight: 700; }


/* ══════════════════════════════════════════════════════════════
   §3  게시글 보기  view.php
════════════════════════════════════════════════════════════════ */

/* ── 본문 콘텐츠 ── */
.dx-post-body { min-height: 100px; }
.dx-post-body img             { max-width: 100%; border-radius: 8px; }
.dx-post-body .dx-yt-card     { max-width: 100% !important; }
.dx-post-body iframe          { max-width: 100%; border-radius: 8px; }
.dx-post-body a               { color: #2563eb; text-decoration: underline; }
.dx-post-body pre             { background: #1e293b; color: #e2e8f0; padding: 16px; border-radius: 8px; overflow-x: auto; font-size: .85rem; }
.dx-post-body blockquote      { border-left: 3px solid #93c5fd; margin: 12px 0; padding: .5em 1em; color: #475569; background: #f8fafc; border-radius: 0 6px 6px 0; }
.dx-post-body table           { width: 100%; border-collapse: collapse; }
.dx-post-body table td,
.dx-post-body table th        { border: 1px solid #e2e8f0; padding: 8px 12px; font-size: .875rem; }
/* 리스트 불릿/번호 */
.dx-post-body ul              { list-style: disc outside; margin: 10px 0 10px 1.6em; padding: 0; }
.dx-post-body ol              { list-style: decimal outside; margin: 10px 0 10px 1.6em; padding: 0; }
.dx-post-body ul ul,
.dx-post-body ul ol           { list-style: circle; margin-top: 4px; margin-bottom: 4px; }
.dx-post-body ol ol,
.dx-post-body ol ul           { list-style: lower-alpha; margin-top: 4px; margin-bottom: 4px; }
.dx-post-body li              { display: list-item; margin-bottom: 4px; line-height: 1.75; }
/* 댓글 본문 링크 */
.dx-cmt-body a                { color: #2563eb; text-decoration: underline; }
.dx-cmt-body a:hover          { color: #1d4ed8; text-decoration: underline; }

/* 본문 테이블 반응형 스크롤 */
@media (max-width: 768px) {
  .dx-post-body table,
  .dx-post-content table,
  .post-content table,
  .ck-content table           { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; max-width: 100%; }
  .dx-post-body figure.table,
  .dx-post-content figure.table,
  .post-content figure.table  { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
}

/* ── 이미지 라이트박스 ── */
.dx-post-body img,
.dx-post-body figure img,
.dx-post-body figure.image img { cursor: zoom-in !important; }
.dx-post-body a > img          { cursor: zoom-in !important; pointer-events: auto !important; }

#dx-lb-ov {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.95);
  z-index: 999999;
}
#dx-lb-ov.on { display: block; }
#dx-lb-track {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  display: flex;
  align-items: center;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.dx-lb-slide {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 12px 72px;
  box-sizing: border-box;
}
.dx-lb-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}
#dx-lb-close {
  position: fixed;
  top: 12px; right: 14px;
  z-index: 10;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
}
.dx-lb-arr {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.22);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#dx-lb-prev { left: 12px; }
#dx-lb-next { right: 12px; }
#dx-lb-counter {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  font-weight: 600;
  background: rgba(0,0,0,.55);
  padding: 5px 16px;
  border-radius: 99px;
  pointer-events: none;
  white-space: nowrap;
}
#dx-lb-dots {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  align-items: center;
  pointer-events: none;
}
.dx-lb-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); transition: all .2s; }
.dx-lb-dot.on { background: #fff; width: 16px; border-radius: 3px; }
@media (max-width: 640px) { .dx-lb-arr { display: none !important; } }

/* ── 뷰 카드 ── */
.dx-view-card { /* Tailwind bg-white rounded-2xl border shadow-sm mb-4 overflow-hidden */ }

/* ── 태그 아이템 ── */
.dx-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all .15s;
}
.dx-tag-item:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

/* ── 첨부파일 박스 ── */
.dx-file-box {
  margin: 0 28px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  overflow: hidden;
}
.dx-file-box-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}
.dx-file-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.dx-file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all .15s;
}
.dx-file-item:hover { border-color: #93c5fd; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.dx-file-icon-wrap {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dx-file-name {
  font-size: .875rem;
  font-weight: 500;
  color: #334155;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  transition: color .14s;
}
.dx-file-item:hover .dx-file-name { color: #2563eb; }
.dx-file-meta { font-size: .72rem; color: #94a3b8; margin-top: 2px; }
.dx-file-dl-count { margin-left: 8px; }

/* ── 링크 박스 ── */
.dx-link-box {
  margin: 0 28px 20px;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  background: #f8fafc;
  overflow: hidden;
}
.dx-link-box-inner { padding: 12px 16px; }
.dx-link-box-label {
  font-size: .7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 10px;
}
.dx-link-list { display: flex; flex-direction: column; gap: 8px; }
.dx-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  transition: all .15s;
}
.dx-link-item:hover { border-color: #93c5fd; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.dx-link-icon-wrap {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #eff6ff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dx-link-label-txt { font-size: .875rem; font-weight: 600; color: #334155; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: color .14s; }
.dx-link-item:hover .dx-link-label-txt { color: #2563eb; }
.dx-link-url-txt { font-size: .75rem; color: #94a3b8; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dx-link-url-only { font-size: .875rem; font-weight: 500; color: #2563eb; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dx-link-clicks { font-size: .65rem; font-weight: 600; color: #94a3b8; flex-shrink: 0; }

/* ── 액션 버튼 바 ── */
.dx-action-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 28px;
  border-top: 1px solid #f1f5f9;
  background: rgba(248,250,252,.5);
}
.dx-action-bar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 6px;
}
.dx-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: .75rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  font-family: inherit;
  white-space: nowrap;
}
.dx-action-btn:hover         { background: #f1f5f9; }
.dx-action-btn.like:hover    { background: #fff1f2; color: #f43f5e; border-color: #fecdd3; }
.dx-action-btn.scrap:hover   { background: #fffbeb; color: #d97706; border-color: #fde68a; }
.dx-action-btn.friend:hover  { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.dx-action-btn.edit          { border-radius: 8px; }
.dx-action-btn.edit:hover    { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.dx-action-btn.delete        { border-radius: 8px; }
.dx-action-btn.delete:hover  { background: #fef2f2; color: #ef4444; border-color: #fecaca; }
.dx-action-btn.write-btn     { border-radius: 8px; color: #fff; border: none; box-shadow: 0 2px 8px rgba(26,115,232,.25); }
.dx-action-btn.list-btn      { border-radius: 8px; }
.dx-action-btn.list-btn:hover { background: #f1f5f9; }
.dx-action-btn.filter-btn    { border-radius: 8px; }
.dx-btn-txt { white-space: nowrap; }

/* 모바일 액션 버튼 */
@media (max-width: 480px) {
  .dx-action-btn { padding: 7px 10px !important; font-size: .72rem !important; gap: 4px !important; }
  .dx-btn-txt    { display: none; }
}

/* ── 댓글 섹션 ── */
.dx-cmt-section {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  overflow: hidden;
  margin-bottom: 16px;
}
.dx-cmt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #f1f5f9;
}
.dx-cmt-head h2 {
  font-size: .875rem;
  font-weight: 700;
  color: #334155;
  margin: 0;
}
/* 댓글 아이템 */
.dx-cmt-item {
  padding: 16px 24px;
  border-bottom: 1px solid #f1f5f9;
}
.dx-cmt-item:last-child { border-bottom: none; }
.dx-cmt-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.dx-cmt-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dx-cmt-body {
  font-size: .875rem;
  color: #475569;
  line-height: 1.65;
  padding-left: 36px;
}
/* 댓글 입력 폼 */
.dx-cmt-form-wrap {
  padding: 20px 24px;
  background: rgba(248,250,252,.5);
  border-top: 1px solid #f1f5f9;
}
.dx-cmt-ta,
.dx-reply-ta,
.dx-edit-ta {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: .875rem;
  font-family: inherit;
  outline: none;
  resize: vertical;
  background: #fff;
  color: var(--text-main);
  transition: border-color .14s;
  box-sizing: border-box;
}
.dx-cmt-ta:focus,
.dx-reply-ta:focus,
.dx-edit-ta:focus { border-color: #60a5fa; }
.dx-cmt-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: none;
  border-radius: 8px;
  background: var(--p);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: filter .14s;
}
.dx-cmt-submit-btn:hover { filter: brightness(1.08); }

/* 설문 섹션 */
.dx-survey-section {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  overflow: hidden;
  margin-bottom: 16px;
}

/* ── 다크모드 ── */
body.dark .dx-view-card     { background-color: var(--bg-card) !important; border-color: var(--border) !important; color: var(--text-main) !important; }
body.dark .dx-view-card *:not(a):not(i):not(button):not(span[style]):not(.dx-post-body *) { color: inherit; }
body.dark .dx-view-header   { border-color: var(--border) !important; }
body.dark .dx-post-title    { color: var(--text-main) !important; }
body.dark .dx-post-meta     { color: var(--text-muted) !important; }
body.dark .dx-post-body     { color: var(--text-main) !important; background-color: var(--bg-card) !important; }
body.dark .dx-post-body a   { color: #60a5fa; }
body.dark .dx-post-body blockquote { background: rgba(255,255,255,.05); color: var(--text-muted); border-left-color: #60a5fa; }
body.dark .dx-post-body table td,
body.dark .dx-post-body table th { border-color: var(--border); }
body.dark .dx-post-body ul  { list-style: disc outside; }
body.dark .dx-post-body ol  { list-style: decimal outside; }
body.dark .dx-post-body li  { color: var(--text-main); }
body.dark .dx-action-bar    { background-color: rgba(255,255,255,.03) !important; border-color: var(--border) !important; }
body.dark .dx-action-btn    { background-color: var(--bg-card) !important; border-color: var(--border) !important; color: var(--text-muted) !important; }
body.dark .dx-file-box      { background-color: var(--bg-body) !important; border-color: var(--border) !important; }
body.dark .dx-file-box-head { background-color: var(--bg-card) !important; border-color: var(--border) !important; }
body.dark .dx-file-item     { background-color: var(--bg-card) !important; border-color: var(--border) !important; }
body.dark .dx-file-name     { color: var(--text-main) !important; }
body.dark .dx-cmt-section   { background-color: var(--bg-card) !important; border-color: var(--border) !important; }
body.dark .dx-cmt-head      { border-color: var(--border) !important; }
body.dark .dx-cmt-item      { border-color: var(--border) !important; }
body.dark .dx-cmt-body      { color: var(--text-main) !important; }
body.dark .dx-cmt-body a    { color: #60a5fa; text-decoration: underline; }
body.dark .dx-cmt-body a:hover { color: #93c5fd; text-decoration: underline; }
body.dark .dx-cmt-form-wrap { background-color: rgba(255,255,255,.03) !important; border-color: var(--border) !important; }
body.dark .dx-cmt-ta,
body.dark .dx-reply-ta,
body.dark .dx-edit-ta       { background-color: var(--bg-body) !important; border-color: var(--border) !important; color: var(--text-main) !important; }
body.dark .dx-tag-item      { background-color: var(--bg-body) !important; border-color: var(--border) !important; color: var(--text-muted) !important; }
body.dark .dx-link-box      { background-color: var(--bg-body) !important; border-color: var(--border) !important; }
body.dark .dx-link-item     { background-color: var(--bg-card) !important; border-color: var(--border) !important; }
body.dark .dx-survey-section{ background-color: var(--bg-card) !important; border-color: var(--border) !important; }


/* ══════════════════════════════════════════════════════════════
   §4  글쓰기  write.php
════════════════════════════════════════════════════════════════ */

/* ── 에러 박스 ── */
.dx-write-error {
  margin-bottom: 12px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #dc2626;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── 폼 카드 ── */
.dx-write-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  overflow: hidden;
}

/* ── 폼 헤더 ── */
.dx-write-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(12px,3vw,20px) clamp(16px,4vw,28px);
  border-bottom: 1px solid #f1f5f9;
}
.dx-write-back-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  text-decoration: none;
  flex-shrink: 0;
  transition: all .14s;
}
.dx-write-back-btn:hover { background: #eff6ff; color: #3b82f6; }
.dx-write-header-title  { font-size: .95rem; font-weight: 800; color: #1e293b; }
.dx-write-header-board  { font-size: .75rem; color: #94a3b8; margin-left: 8px; }

/* ── 폼 본문 ── */
.dx-write-body {
  padding: clamp(16px,4vw,28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── 라벨 ── */
.dx-write-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.dx-write-label-req { color: #f87171; }

/* ── 입력 필드 공통 ── */
.dx-write-input,
.dx-write-select {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: .875rem;
  outline: none;
  font-family: inherit;
  color: var(--text-main);
  background: #fff;
  transition: border-color .14s, box-shadow .14s;
  box-sizing: border-box;
}
.dx-write-input:focus,
.dx-write-select:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(99,102,241,.1); }

/* ── 비회원 그리드 ── */
.dx-write-guest-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

/* ── 힌트 텍스트 ── */
.dx-write-hint { font-size: .72rem; color: #94a3b8; margin-top: 4px; }

/* ── 링크 행 ── */
.dx-link-row { display: flex; gap: 6px; align-items: center; }
.dx-link-label { width: 128px; flex-shrink: 0; }
.dx-link-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px dashed #93c5fd;
  font-size: .75rem;
  font-weight: 600;
  color: #3b82f6;
  background: transparent;
  cursor: pointer;
  transition: background .14s;
  font-family: inherit;
}
.dx-link-add-btn:hover { background: #eff6ff; }
.dx-link-remove-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #94a3b8;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .14s;
  font-family: inherit;
}
.dx-link-remove-btn:hover { color: #ef4444; border-color: #fecaca; background: #fef2f2; }

/* ── 파일 업로드 존 ── */
#dx-file-zone p { word-break: break-all; white-space: normal; }

/* ── 폼 액션 버튼 영역 ── */
.dx-write-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: clamp(12px,3vw,20px) clamp(16px,4vw,28px);
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}
.dx-write-cancel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: .875rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  cursor: pointer;
  transition: background .14s;
  font-family: inherit;
}
.dx-write-cancel-btn:hover { background: #f1f5f9; }
.dx-write-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 24px;
  border-radius: 10px;
  border: none;
  background: var(--p);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26,115,232,.25);
  transition: filter .14s;
  font-family: inherit;
}
.dx-write-submit-btn:hover { filter: brightness(1.1); }

/* 링크 행 모바일 */
@media (max-width: 540px) {
  .dx-link-row { flex-wrap: wrap; }
  .dx-link-row input[type="url"] { width: 100% !important; flex: none !important; min-width: 0; }
  .dx-link-label { flex: 1 !important; width: auto !important; min-width: 0; }
  input[name="tags"]::placeholder { font-size: .78rem; }
}

/* 버튼 영역 모바일 전체 너비 */
@media (max-width: 480px) {
  .dx-write-actions { justify-content: stretch; }
  .dx-write-actions > * { flex: 1; text-align: center; justify-content: center; }
  .dx-sq-row > div[style*="grid-template-columns:1fr auto"] { grid-template-columns: 1fr !important; }
}


/* ══════════════════════════════════════════════════════════════
   §5  공통  (브레드크럼, 모바일 카테고리, 애니메이션)
════════════════════════════════════════════════════════════════ */

/* ── 브레드크럼 ── */
.dx-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 0 2px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.dx-breadcrumb-home {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  flex-shrink: 0;
  transition: color .12s;
}
.dx-breadcrumb-home:hover  { color: var(--p); }
.dx-breadcrumb-sep         { font-size: .55rem; color: var(--border); flex-shrink: 0; }
.dx-breadcrumb-link        { color: var(--text-muted); text-decoration: none; font-weight: 600; flex-shrink: 0; transition: color .12s; white-space: nowrap; }
.dx-breadcrumb-link:hover  { color: var(--p); }
.dx-breadcrumb-current     { color: var(--text-main); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ── 모바일 카테고리 바 (list용) ── */
#dx-mob-cat-bar { display: none; margin-bottom: 14px; }
.dx-mob-cat-nav {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.dx-mob-cat-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: inherit;
}
.dx-mob-cat-active-badge {
  margin-left: 6px;
  padding: 1px 8px;
  background: rgba(26,115,232,.1);
  color: var(--p);
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
}
.dx-mob-cat-chevron {
  font-size: .7rem;
  color: var(--text-muted);
  transition: transform .2s;
}
.dx-mob-cat-list {
  list-style: none;
  padding: 4px 0;
  margin: 0;
}
.dx-mob-cat-item-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: .82rem;
  text-decoration: none;
  transition: background .12s;
}
.dx-mob-cat-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--p);
  flex-shrink: 0;
}
.dx-mob-cat-dot-sm {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--p);
  flex-shrink: 0;
  opacity: .6;
}
.dx-mob-cat-indent { color: #cbd5e1; font-size: .6rem; flex-shrink: 0; }

/* ── 모바일 카테고리 슬라이더 (view용) ── */
.dx-mob-cat-wrap { display: none; margin-bottom: 10px; }
@media (max-width: 1023px) { .dx-mob-cat-wrap { display: block; } }
.dx-mob-cat-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.dx-mob-cat-toggle:hover { border-color: var(--p); color: var(--p); }
.dx-mob-cat-toggle-arrow { margin-left: auto; font-size: .65rem; transition: transform .22s; }
.dx-mob-cat-toggle.open .dx-mob-cat-toggle-arrow { transform: rotate(180deg); }
.dx-mob-cat-slider { display: none; overflow: hidden; padding: 8px 0 4px; }
.dx-mob-cat-slider.open { display: block; }
.dx-mob-cat-inner {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.dx-mob-cat-inner::-webkit-scrollbar { display: none; }
.dx-mob-cat-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  text-decoration: none;
  transition: all .15s;
}
.dx-mob-cat-pill:hover  { border-color: var(--p); color: var(--p); }
.dx-mob-cat-pill.active { background: var(--p); color: #fff; border-color: var(--p); font-weight: 700; }

/* ── 애니메이션 ── */
@keyframes dxDelIn {
  from { opacity: 0; transform: scale(.94) translateY(8px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}


/* ── 추가: 잔존 동적/고정 인라인 보완 클래스 ── */

/* 검색 버튼 (동적 배경/테두리는 PHP 인라인 유지, 형태만 클래스화) */
.dx-search-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s;
  background: none;
  border: 1px solid var(--border);
  font-family: inherit;
}
/* 관리자 3선 버튼 */
.dx-adm-trigger {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-body);
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
}
.dx-adm-trigger:hover { background: var(--border); }

/* 모바일 카테고리 목록 링크 (동적 color/bg/border는 PHP 인라인 불가피) */
.dx-mob-cat-item-a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  text-decoration: none;
  transition: background .12s;
  border-left: 3px solid transparent;
}
.dx-mob-cat-item-a.active {
  font-weight: 700;
  color: var(--p);
  background: rgba(26,115,232,.07);
  border-left-color: var(--p);
}

/* bulk form */
.dx-bulk-form-hidden { display: none; position: absolute; }

/* 헤더 우측 flex 컨테이너 */
.dx-list-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* _list_rows 공지 PC 제목 div */
.dx-notice-title-div {
  padding: 12px 4px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}
/* 공지 제목 링크 */
.dx-notice-title-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  overflow: hidden;
}
/* 공지 제목 span (공지 PC) */
.dx-notice-title-t {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  transition: color .12s;
}
/* 공지 작성자 div */
.dx-notice-author-div {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 4px;
}
/* 공지 모바일 링크 */
.dx-notice-mo-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  overflow: hidden;
}
/* 공지 모바일 제목 span */
.dx-notice-mo-title {
  flex: 1;
  min-width: 0;
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 공지 모바일 날짜 */
.dx-notice-mo-date {
  font-size: .72rem;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: 4px;
}
/* 댓글수 공지 */
.dx-notice-cmt {
  color: var(--p);
  font-weight: 700;
  font-size: .78rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* 작성자 이름 */
.dx-lt-author-name {
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
  pointer-events: none;
}
.dx-lt-author-name.text-main  { color: var(--text-main); }
.dx-lt-author-name.text-muted { color: var(--text-muted); }

/* 현재 글 제목 컬러 강제 */
.dx-lt-cur-title { color: var(--p) !important; }
/* clickable */
.dx-lt-clickable { cursor: pointer; }

/* PC행 현재 글 인라인 bg/shadow는 PHP 동적 → 클래스 */
.dx-lt-row-cur-pc {
  background: rgba(26,115,232,.08) !important;
  box-shadow: inset 3px 0 0 var(--p);
}

/* write outer */
.dx-write-outer { min-width: 0; flex: 1; }

/* 설문 마감 뱃지 */
.dx-survey-closed-badge {
  font-size: .72rem;
  background: #fee2e2;
  color: #dc2626;
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 700;
}
