/* 공용 화면의 블랙 모드 (lib/scheme.php, 2026-10-27)
   게시판 · 회원 · 매물 · 검색 · 팝업 같은 코어 화면이 따르는 토큰(--c-* · --sot-* · --ls-*)의 어두운 값.
   테마는 body.theme-<id> 에 자기 토큰을 다시 정하므로, 여기 값은 테마가 덮지 않은 곳의 바탕값이다.
   밝은 모드는 각 CSS 의 :root 값(지금까지와 같음)을 그대로 쓴다. */
html[data-scheme="dark"]{color-scheme:dark;
  --sot-bg:#0f1115; --sot-surface:#171a1f; --sot-line:#2a2f37; --sot-ink:#e9ecf1; --sot-ink-2:#b4bac4; --sot-ink-3:#8b929d;
  --c-primary:#f1f3f6; --c-primary-text:#111317; --c-bg:#0f1115; --c-bg-soft:#171a1f; --c-surface:#14171c;
  --c-text:#e9ecf1; --c-text-sub:#b4bac4; --c-muted:#8b929d; --c-line:#2a2f37; --c-line-strong:#3b414b;
  --c-overlay:rgba(0,0,0,.62); --shadow:0 2px 10px rgba(0,0,0,.35); --shadow-lg:0 18px 48px rgba(0,0,0,.55);
  --ls-ink:#e9ecf1; --ls-ink-2:#b4bac4; --ls-ink-3:#8b929d; --ls-line:#2a2f37; --ls-bg-2:#1a1d23; --ls-surface:#14171c;
}
html[data-scheme="dark"] input,html[data-scheme="dark"] select,html[data-scheme="dark"] textarea{color-scheme:dark}

/* 바탕이 정해진 안내 상자 · 표 · 딱지 */
html[data-scheme="dark"] .alert-info{background:#132238;border-color:#22385a;color:#a9c8f2}
html[data-scheme="dark"] .alert-success{background:#10261a;border-color:#1e4a31;color:#8fd8ac}
html[data-scheme="dark"] .alert-warning{background:#2a2010;border-color:#4d3a17;color:#f2c879}
html[data-scheme="dark"] .alert-danger{background:#2c1414;border-color:#552323;color:#f4a8a2}
html[data-scheme="dark"] .tbl tbody tr:hover > td{background:rgba(255,255,255,.035)}
html[data-scheme="dark"] .my-tag.is-lock,html[data-scheme="dark"] .bz-alert{background:#3a1520;color:#f5a3b3}
html[data-scheme="dark"] .fm-cert.is-done{border-color:#1f4d33;background:#11241a}
html[data-scheme="dark"] .fb-state.is-done,html[data-scheme="dark"] .fm-status.is-done,html[data-scheme="dark"] .fm-point-row.is-earn .fm-point-kind{background:#11301f;color:#7fd6a2}
html[data-scheme="dark"] .fm-status.is-wait{background:#33240e;color:#f0bf6e}
html[data-scheme="dark"] .fm-status.is-paid,html[data-scheme="dark"] .fm-point-row.is-use .fm-point-kind{background:#13243f;color:#9cc0f5}
html[data-scheme="dark"] .fm-status.is-return,html[data-scheme="dark"] .fm-point-row.is-expire .fm-point-kind{background:#3a1717;color:#f4a8a2}
html[data-scheme="dark"] .fm-point-row.is-cancel .fm-point-kind{background:#22262d;color:#aab1bc}
html[data-scheme="dark"] .bz-badge.is-on{background:#11301f;color:#7fd6a2}
html[data-scheme="dark"] .bz-badge.is-wait{background:#33240e;color:#f0bf6e}
html[data-scheme="dark"] .ls-form-closed{background:#3a1515;color:#fca5a5}
html[data-scheme="dark"] .ls-form-tabs a.on{box-shadow:0 1px 3px rgba(0,0,0,.4)}
@keyframes fb-flash-dark{0%,30%{background:#3a3214}100%{background:transparent}}
html[data-scheme="dark"] .is-flash{animation-name:fb-flash-dark}

/* 글쓴이가 넣은 본문 그림 · 표: 흰 바탕 그림이 눈부시지 않게 살짝 낮춘다 (사진은 그대로) */
html[data-scheme="dark"] .prose table td,html[data-scheme="dark"] .prose table th{border-color:var(--c-line)}
html[data-scheme="dark"] .prose [style*="background-color: rgb(255, 255, 255)"],html[data-scheme="dark"] .prose [style*="background:#fff"]{background-color:transparent!important}
html[data-scheme="dark"] .prose [style*="color: rgb(0, 0, 0)"],html[data-scheme="dark"] .prose [style*="color:#000"]{color:inherit!important}
