/* ═══════════════════════════════════════════════════════════════════════════
   하토담 앱 셸 스킨 — 2026-11-17 (시제품 hagora.kr/app-preview 를 실사이트 폰 화면에 입힌다)
   설계: C:\HansaengGames\docs\하토담\하토담_모바일_UXUI_설계.md · 원본 시제품 docs\하토담\mobile\app.css
   - 폰(≤767px)에서만. PC 는 그대로.
   - config.php 출력 훅이 모든 HTML <head> 끝(다크 v2 다음)에 넣는다. 끄려면 <html class="hd-off">.
   - 본문 · 제목은 Pretendard. 픽셀 글꼴(Galmuri)은 로고(그림)와 터미널 모드(#hsdos)에만 남긴다.
   - 몸통 안 인라인 <style>(예: m_qna_home.php)이 이 파일보다 뒤에 오므로, 규칙마다 앞에 `html:not(.hd-off)` 를 붙여 특이도로 이긴다.
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 0px) {
  html:not(.hd-off) {
    --hd-bg: #f4f5f7; --hd-surface: #fff; --hd-surface2: #f7f8fa;
    --hd-ink: #121417; --hd-ink2: #4b5260; --hd-ink3: #8a919e;
    --hd-line: #e8eaee; --hd-line2: #dfe2e7;
    --hd-acc: #ff6a3d; --hd-acc-ink: #e2501f; --hd-acc-soft: #fff1ea;
    --hd-con: #3d7bff; --hd-con-soft: #edf3ff; --hd-ok: #18a058;
    --hd-shadow: 0 10px 30px rgba(18,20,23,.08); --hd-shadow-up: 0 -8px 30px rgba(18,20,23,.08);
    --hd-r-s: 10px; --hd-r-m: 14px; --hd-r-l: 20px; --hd-r-xl: 28px;
    --hd-ease: cubic-bezier(.2,.8,.2,1); --hd-ease-out: cubic-bezier(.16,1,.3,1);
    --hd-font: 'HSPretendard', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
    /* 기존 m2 디자인 체계(mobile-redesign.css)도 같은 값으로 맞춘다 — 다른 화면이 같은 색으로 따라온다 */
    --m2-canvas: var(--hd-bg); --m2-surface: var(--hd-surface); --m2-surface-soft: var(--hd-surface2);
    --m2-ink: var(--hd-ink); --m2-ink-2: var(--hd-ink2); --m2-ink-3: var(--hd-ink3);
    --m2-line: var(--hd-line); --m2-line-strong: var(--hd-line2);
    --m2-accent: var(--hd-acc); --m2-accent-strong: var(--hd-acc-ink); --m2-accent-soft: var(--hd-acc-soft); --m2-accent-ink: var(--hd-acc-ink);
    --m2-radius: 20px; --m2-radius-lg: 28px;
    /* 옛 테마 변수(style.css :root · 따뜻한 베이지 판)도 폰에서는 같은 값으로 — 선 · 종이 · 글자색이 한 벌이 된다 */
    --bg: var(--hd-bg); --bg-0: var(--hd-bg); --hs-bg: var(--hd-bg);
    --bg-1: var(--hd-surface); --bg-card: var(--hd-surface); --card-bg: var(--hd-surface); --px-paper: var(--hd-surface); --hs-panel: var(--hd-surface);
    --bg-2: var(--hd-surface2); --bg-hover: var(--hd-surface2); --hover-row: var(--hd-surface2);
    --border: var(--hd-line); --border-light: var(--hd-line); --hs-line: var(--hd-line); --px-line: var(--hd-line2);
    --text: var(--hd-ink); --text-0: var(--hd-ink); --text-1: var(--hd-ink); --px-ink: var(--hd-ink);
    --text-2: var(--hd-ink2); --text-secondary: var(--hd-ink2); --text-3: var(--hd-ink3); --text-muted: var(--hd-ink3);
  }
  html.dark:not(.hd-off) {
    --hd-bg: #0e0f11; --hd-surface: #17181b; --hd-surface2: #1d1f23;
    --hd-ink: #f1f2f4; --hd-ink2: #b4bac4; --hd-ink3: #7c838f;
    --hd-line: #25272c; --hd-line2: #2e3137;
    --hd-acc-ink: #ff8a62; --hd-acc-soft: #2a1a14; --hd-con-soft: #16213a;
    --hd-shadow: 0 10px 30px rgba(0,0,0,.4); --hd-shadow-up: 0 -8px 30px rgba(0,0,0,.4);
  }

  /* ── 바탕 · 글꼴 ───────────────────────────────────────────────────── */
  html:not(.hd-off), html:not(.hd-off) body:not(#_hd) { background: var(--hd-bg) !important; }
  html:not(.hd-off) body:not(#_hd) { color: var(--hd-ink); word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
  html:not(.hd-off) body::before { display: none !important; }
  html:not(.hd-off) body:not(#_hd),
  html:not(.hd-off) body :where(:not(#hsdos, #hsdos *, code, pre, kbd, samp, .material-icons)):not(#_hd) {
    font-family: var(--hd-font) !important;
    letter-spacing: -.01em;
  }

  /* ── 위 앱바(홈 .app-mobile-topbar · 다른 화면 .m-topbar) ─────────────── */
  html:not(.hd-off) .app-mobile-topbar,
  html:not(.hd-off) .m-topbar {
    background: color-mix(in srgb, var(--hd-bg) 86%, transparent) !important;
    border-bottom: 1px solid var(--hd-line) !important;
    box-shadow: none !important;
    backdrop-filter: blur(14px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.5) !important;
  }
  html:not(.hd-off) .app-mobile-logo,
  html:not(.hd-off) .m-topbar-logo img { height: 26px !important; width: auto !important; }
  html.dark:not(.hd-off) .app-mobile-logo,
  html.dark:not(.hd-off) .m-topbar-logo img { filter: invert(1) hue-rotate(180deg) brightness(1.4); }
  html:not(.hd-off) .app-mobile-search {
    height: 40px !important; border: 0 !important; border-radius: 12px !important;
    background: var(--hd-surface2) !important; box-shadow: inset 0 0 0 1px var(--hd-line) !important;
    padding: 0 6px 0 12px !important; gap: 6px !important; color: var(--hd-ink3) !important;
  }
  html:not(.hd-off) .app-mobile-search input:not(#_hd) {
    height: 100% !important; padding: 0 !important; border: 0 !important; outline: 0 !important; border-radius: 0 !important;
    background: transparent !important; box-shadow: none !important;
    font-size: 15px !important; color: var(--hd-ink) !important;
  }
  html:not(.hd-off) .app-mobile-search input::placeholder { color: var(--hd-ink3) !important; }
  /* 오른쪽 주황 '검색' 단추는 뺀다 — 키보드의 검색(enterkeyhint=search)으로 보낸다 */
  html:not(.hd-off) .app-mobile-search button[type="submit"] { display: none !important; }
  html:not(.hd-off) .app-mobile-icon {
    width: 44px !important; height: 44px !important; border: 0 !important; border-radius: 14px !important;
    background: transparent !important; box-shadow: none !important; color: var(--hd-ink) !important;
    display: grid !important; place-items: center !important;
  }
  html:not(.hd-off) .app-mobile-icon svg { width: 22px; height: 22px; stroke: currentColor; }
  html:not(.hd-off) .app-mobile-icon:active,
  html:not(.hd-off) .m-topbar-btn:active,
  html:not(.hd-off) .m-topbar-back:active { background: var(--hd-line) !important; transform: scale(.94); }
  html:not(.hd-off) .m-topbar-btn, html:not(.hd-off) .m-topbar-back, html:not(.hd-off) .m-topbar-icon { border-radius: 14px !important; }
  html:not(.hd-off) .m-topbar-title { font-size: 17px !important; font-weight: 800 !important; letter-spacing: -.02em !important; }
  html:not(.hd-off) .m-topbar-login {
    border-radius: 12px !important; background: var(--hd-ink) !important; color: var(--hd-surface) !important; font-weight: 800 !important;
  }

  /* ── 아래 탭(.m2-tabbar) — 주소 · 배지 계약은 그대로, 모양만 ────────────── */
  html:not(.hd-off) .m2-tabbar {
    background: color-mix(in srgb, var(--hd-surface) 92%, transparent) !important;
    border-top: 1px solid var(--hd-line) !important;
    box-shadow: none !important;
    backdrop-filter: blur(18px) saturate(1.6) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.6) !important;
    padding-left: 4px !important; padding-right: 4px !important;
  }
  html:not(.hd-off) .m2-tabbar-item {
    color: var(--hd-ink3) !important; background: transparent !important; gap: 3px !important; border-radius: 14px !important;
  }
  html:not(.hd-off) .m2-tabbar-item::before { display: none !important; }
  html:not(.hd-off) .m2-tabbar-item.is-active { color: var(--hd-ink) !important; }
  html:not(.hd-off) .m2-tabbar-icon { width: 24px !important; height: 24px !important; }
  html:not(.hd-off) .m2-tabbar-label { font-size: 11px !important; font-weight: 700 !important; letter-spacing: -.01em !important; }
  html:not(.hd-off) .m2-tabbar-compose-icon {
    width: 46px !important; height: 40px !important; border-radius: 14px !important;
    background: var(--hd-ink) !important; color: var(--hd-surface) !important;
    box-shadow: var(--hd-shadow) !important; display: grid !important; place-items: center !important;
    transform: none !important;
  }
  html:not(.hd-off) .m2-tabbar-compose-icon svg { stroke: currentColor !important; }
  html:not(.hd-off) .m2-tabbar-compose .m2-tabbar-label { color: var(--hd-ink2) !important; }
  html:not(.hd-off) .m2-tabbar-compose:active .m2-tabbar-compose-icon { transform: scale(.92) !important; }
  html:not(.hd-off) .m2-tabbar-badge {
    background: var(--hd-acc) !important; color: #fff !important; border: 2px solid var(--hd-surface) !important;
    min-width: 18px !important; height: 18px !important; font-size: 10px !important; font-weight: 800 !important;
  }
  /* 손님 '가입' 은 이 줄의 유일한 버튼 — 주황 글자로만 구분 */
  html:not(.hd-off) .m2-tabbar-signup, html:not(.hd-off) .m2-tabbar-signup.is-active { color: var(--hd-acc-ink) !important; }

  /* ── 폰 홈(묻고 답하기 · partials/m_qna_home.php) ──────────────────────── */
  html:not(.hd-off) .m2-home-page .main .content { padding: 8px 12px 0 !important; }
  html:not(.hd-off) .qa-home {
    --qa-ink: var(--hd-ink); --qa-sub: var(--hd-ink3); --qa-line: var(--hd-line); --qa-card: var(--hd-surface);
    --qa-acc: var(--hd-acc); --qa-acc-soft: var(--hd-acc-soft); --qa-bg: var(--hd-bg);
    padding: 2px 0 8px;
  }
  html:not(.hd-off) .qa-intro { margin: 6px 4px 12px; font-size: 14px; line-height: 1.6; color: var(--hd-ink2); }
  html:not(.hd-off) .qa-intro b { color: var(--hd-acc-ink); font-weight: 900; }

  /* 질문 상자 — 화면의 주 행동 하나 */
  html:not(.hd-off) .qa-ask {
    padding: 18px 16px 14px; border: 1px solid var(--hd-line); border-radius: var(--hd-r-l);
    background: var(--hd-surface); box-shadow: none;
  }
  html:not(.hd-off) .qa-ask h2 { margin: 0 0 12px; font-size: 21px; font-weight: 900; letter-spacing: -.03em; color: var(--hd-ink); }
  html:not(.hd-off) .qa-ask h2 span { color: var(--hd-acc); }
  html:not(.hd-off) .qa-ask-row { gap: 8px; }
  html:not(.hd-off) .qa-ask-input:not(#_hd) {
    height: 50px; border: 1.5px solid var(--hd-line) !important; border-radius: var(--hd-r-m) !important;
    background: var(--hd-surface2) !important; box-shadow: none !important;
    padding: 0 14px; font-size: 16px; color: var(--hd-ink); transition: border-color .2s, background .2s;
  }
  html:not(.hd-off) .qa-ask-input::placeholder { color: var(--hd-ink3); }
  html:not(.hd-off) .qa-ask-input:not(#_hd):focus { border-color: var(--hd-acc) !important; background: var(--hd-surface) !important; outline: 0 !important; }
  /* 다른 입력 칸들 — 테두리 굵기는 두고, 초점만 주황으로 */
  html:not(.hd-off) body :is(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=color],[type=submit],[type=button],[type=hidden]), textarea, select):not(#_hd):focus {
    border-color: var(--hd-acc) !important;
  }
  html:not(.hd-off) .qa-ask-go {
    height: 50px; padding: 0 16px; border-radius: var(--hd-r-m); background: var(--hd-acc); color: #fff;
    font-size: 15.5px; font-weight: 800; transition: transform .15s;
  }
  html:not(.hd-off) .qa-ask-go:active { transform: scale(.97); }
  html:not(.hd-off) .qa-ask-label { margin: 14px 0 8px; font-size: 13px; font-weight: 800; color: var(--hd-ink3); }
  html:not(.hd-off) .qa-topics { gap: 8px; margin: 0 -16px; padding: 0 16px 2px; }
  html:not(.hd-off) .qa-topic {
    height: 34px; min-height: 34px; padding: 0 13px; border: 1px solid var(--hd-line); border-radius: 99px;
    background: var(--hd-surface); color: var(--hd-ink2); font-size: 13.5px; font-weight: 600; transition: transform .15s;
  }
  html:not(.hd-off) .qa-topic:active { transform: scale(.96); }
  html:not(.hd-off) .qa-topic[aria-pressed="true"] { border-color: var(--hd-acc); background: var(--hd-acc-soft); color: var(--hd-acc-ink); font-weight: 700; }
  html:not(.hd-off) .qa-ask-note { margin: 10px 0 0; font-size: 12.5px; color: var(--hd-ink3); }

  /* 세그먼트 탭 */
  html:not(.hd-off) .qa-tabs {
    gap: 2px; margin: 16px -12px 8px; padding: 6px 12px 10px;
    background: color-mix(in srgb, var(--hd-bg) 88%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  html:not(.hd-off) .qa-tab {
    flex: 0 0 auto; min-height: 36px; padding: 8px 13px; border-radius: 99px;
    background: transparent; box-shadow: none; color: var(--hd-ink3); font-size: 15px; font-weight: 700;
    transition: color .2s, background .2s;
  }
  html:not(.hd-off) .qa-tab[aria-selected="true"] { background: var(--hd-ink); color: var(--hd-surface); box-shadow: none; }
  html:not(.hd-off) .qa-tab em { margin-left: 4px; font-size: 12px; font-weight: 800; color: var(--hd-acc); }
  html:not(.hd-off) .qa-tab[aria-selected="true"] em { color: #ffb69c; }
  html.dark:not(.hd-off) .qa-tab[aria-selected="true"]:not(#_hd) { background: var(--hd-ink) !important; color: var(--hd-surface) !important; }
  html.dark:not(.hd-off) .qa-tab[aria-selected="true"] em { color: var(--hd-acc-ink); }

  /* 카드 */
  html:not(.hd-off) .qa-card {
    margin: 0 0 10px; border: 1px solid var(--hd-line); border-radius: var(--hd-r-l);
    background: var(--hd-surface); box-shadow: none; transition: transform .15s var(--hd-ease);
  }
  html:not(.hd-off) .qa-card:active { transform: scale(.985); }
  html:not(.hd-off) .qa-card-link { gap: 12px; padding: 16px 16px 14px; }
  html:not(.hd-off) .qa-q {
    flex: 0 0 26px; height: 26px; border-radius: 8px; margin-top: 1px;
    background: var(--hd-acc); color: #fff; font-size: 13px; font-weight: 900;
  }
  html:not(.hd-off) .qa-q--post { background: var(--hd-surface2); color: var(--hd-ink3); font-size: 11.5px; box-shadow: inset 0 0 0 1px var(--hd-line); }
  html:not(.hd-off) .qa-card-body { gap: 4px; }
  html:not(.hd-off) .qa-card-title { font-size: 17px; line-height: 1.42; font-weight: 800; letter-spacing: -.02em; color: var(--hd-ink); }
  html:not(.hd-off) .qa-card-ex { font-size: 14.5px; line-height: 1.6; color: var(--hd-ink2); }
  html:not(.hd-off) .qa-card-meta { margin-top: 6px; gap: 4px 6px; font-size: 12.5px; color: var(--hd-ink3); align-items: center; }
  html:not(.hd-off) .qa-card-meta > span + span::before { content: "·"; margin-right: 6px; opacity: .5; }
  html:not(.hd-off) .qa-card-meta > span:first-child {
    padding: 2px 8px; border-radius: 8px; background: var(--hd-surface2); color: var(--hd-ink2); font-weight: 700;
  }
  html:not(.hd-off) .qa-card-meta > span:first-child + span::before { content: none; }
  html:not(.hd-off) .qa-ans { font-weight: 700; }
  html:not(.hd-off) .qa-ans--yes { color: var(--hd-ok); }
  html:not(.hd-off) .qa-card--open .qa-ans { color: var(--hd-acc-ink); }
  html:not(.hd-off) .qa-answer-btn {
    min-height: 44px; margin: 0 16px; border-top: 1px solid var(--hd-line); background: transparent;
    color: var(--hd-acc-ink); font-size: 14px; font-weight: 800; justify-content: flex-start; gap: 6px;
  }
  html:not(.hd-off) .qa-answer-btn::before { content: "✎"; font-weight: 400; }
  html:not(.hd-off) .qa-empty { border-radius: var(--hd-r-l); border: 1px dashed var(--hd-line2); background: var(--hd-surface); color: var(--hd-ink3); }
  html:not(.hd-off) .qa-more {
    margin: 4px 0 8px; padding: 13px; border-radius: var(--hd-r-m); border: 1px solid var(--hd-line);
    background: var(--hd-surface); color: var(--hd-ink2); font-size: 14px; font-weight: 700;
  }

  /* 아래 묶음(답변왕 · 분야별) */
  html:not(.hd-off) .qa-sec { margin: 26px 4px 10px; }
  html:not(.hd-off) .qa-sec h2 { font-size: 18px; font-weight: 900; letter-spacing: -.02em; color: var(--hd-ink); }
  html:not(.hd-off) .qa-sec a { font-size: 13px; color: var(--hd-ink3); font-weight: 600; }
  html:not(.hd-off) .qa-king, html:not(.hd-off) .qa-field {
    border: 1px solid var(--hd-line); border-radius: var(--hd-r-m); background: var(--hd-surface); color: var(--hd-ink);
  }
  html:not(.hd-off) .qa-king i { background: var(--hd-acc-soft); color: var(--hd-acc-ink); border-radius: 10px; }
  html:not(.hd-off) .qa-king small { color: var(--hd-ink3); }
  html:not(.hd-off) .qa-field { padding: 14px 6px; font-size: 13px; font-weight: 700; }
  html:not(.hd-off) .qa-home .mh-ad { border: 1px solid var(--hd-line); border-radius: var(--hd-r-l); background: var(--hd-surface); }
  html:not(.hd-off) .qa-home .mh-ad-label { color: var(--hd-ink3); }
  html:not(.hd-off) .m2-home-page .home-notice { border-radius: var(--hd-r-l) !important; }

  /* ── 글 화면(post_detail · .m-post-detail) — 카드 안 카드를 걷고 한 장의 읽는 면으로 ─────── */
  html:not(.hd-off) .post-detail-page .m-post-detail:not(#_hd) {
    margin: 0 !important; padding: 0 0 150px !important; border: 0 !important; border-radius: 0 !important;
    background: transparent !important; box-shadow: none !important;
  }
  html:not(.hd-off) .m-post-detail-header:not(#_hd) {
    margin: 0 !important; padding: 18px 20px 16px !important; border: 0 !important; border-radius: 0 !important;
    border-bottom: 1px solid var(--hd-line) !important; background: var(--hd-surface) !important; box-shadow: none !important;
  }
  html:not(.hd-off) .m-post-detail-title:not(#_hd) {
    margin: 0 0 14px !important; font-size: 24px !important; line-height: 1.36 !important; font-weight: 900 !important;
    letter-spacing: -.03em !important; color: var(--hd-ink) !important;
  }
  html:not(.hd-off) .m-post-detail-meta { gap: 10px; }
  html:not(.hd-off) .m-post-detail-author { gap: 10px; }
  html:not(.hd-off) .m-post-detail-author img { width: 36px !important; height: 36px !important; border-radius: 12px !important; }
  html:not(.hd-off) .m-post-detail-author span { font-size: 14.5px !important; font-weight: 800 !important; color: var(--hd-ink) !important; }
  html:not(.hd-off) .m-post-detail-date { font-size: 12.5px !important; color: var(--hd-ink3) !important; }
  html:not(.hd-off) .m-post-detail-context { gap: 6px !important; margin-top: 12px !important; }
  html:not(.hd-off) .m-post-detail-chip:not(#_hd) {
    padding: 3px 8px !important; border-radius: 8px !important; font-size: 12px !important; font-weight: 700 !important;
    background: var(--hd-surface2) !important; color: var(--hd-ink2) !important; box-shadow: inset 0 0 0 1px var(--hd-line) !important;
  }
  html:not(.hd-off) .m-post-detail-chip:first-child:not(#_hd) { background: var(--hd-acc-soft) !important; color: var(--hd-acc-ink) !important; box-shadow: none !important; }
  html:not(.hd-off) .m-post-detail-body:not(#_hd) {
    margin: 0 !important; padding: 18px 20px 20px !important; border: 0 !important; border-radius: 0 !important;
    background: var(--hd-surface) !important; box-shadow: none !important;
    font-size: 16.5px !important; line-height: 1.8 !important; color: var(--hd-ink) !important;
  }
  html:not(.hd-off) .m-post-detail-body :is(p, div, li, span):not(#_hd) { font-size: inherit !important; line-height: inherit !important; }
  html:not(.hd-off) .m-post-detail-body img { border-radius: var(--hd-r-m); }
  html:not(.hd-off) .post-detail-page .m-post-detail > .translate-btn-wrap:not(#_hd) { margin: 0 !important; padding: 0 20px 4px !important; background: var(--hd-surface) !important; }
  html:not(.hd-off) .post-detail-page .translate-btn:not(#_hd) {
    height: 34px !important; min-height: 34px !important; border-radius: 99px !important; border: 1px solid var(--hd-line) !important;
    background: var(--hd-surface) !important; color: var(--hd-ink2) !important; font-size: 13px !important; font-weight: 600 !important;
  }
  html:not(.hd-off) .m-post-detail-stats:not(#_hd) {
    margin: 0 !important; padding: 10px 20px 18px !important; background: var(--hd-surface) !important;
    font-size: 13px !important; color: var(--hd-ink3) !important; gap: 12px !important;
  }
  html:not(.hd-off) .m-post-detail-inline-actions:not(#_hd) { margin: 0 !important; padding: 0 20px 14px !important; background: var(--hd-surface) !important; border: 0 !important; }
  html:not(.hd-off) .m-post-detail-inline-actions:empty:not(#_hd) { display: none !important; }

  /* 의견(댓글) — 8px 바탕 띠로 본문과 나눈다 */
  html:not(.hd-off) .post-detail-page .m-comment:not(#_hd) {
    margin: 8px 0 0 !important; padding: 0 20px 20px !important; border: 0 !important; border-radius: 0 !important;
    background: var(--hd-surface) !important; box-shadow: none !important;
  }
  html:not(.hd-off) .hs-comment-count-label:not(#_hd) { padding: 18px 0 8px !important; font-size: 17px !important; font-weight: 800 !important; color: var(--hd-ink) !important; }
  html:not(.hd-off) .hs-comment-empty:not(#_hd) {
    border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; padding: 26px 10px 10px !important;
  }
  html:not(.hd-off) .hs-comment-empty strong { font-size: 16px !important; font-weight: 800 !important; color: var(--hd-ink) !important; }
  html:not(.hd-off) .hs-comment-empty span { color: var(--hd-ink3) !important; font-size: 14px !important; }
  html:not(.hd-off) .hs-comment-empty-btn:not(#_hd) {
    height: 46px !important; padding: 0 20px !important; border: 0 !important; border-radius: var(--hd-r-m) !important;
    background: var(--hd-acc) !important; color: #fff !important; font-weight: 800 !important; font-size: 15px !important; box-shadow: none !important;
  }

  html:not(.hd-off) .post-detail-page .m-comment-item:not(#_hd) {
    margin: 0 !important; padding: 14px 0 !important; border: 0 !important; border-bottom: 1px solid var(--hd-line) !important;
    border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
  }
  html:not(.hd-off) .post-detail-page .m-comment-item:last-of-type:not(#_hd) { border-bottom: 0 !important; }
  /* 답글 — 부모 아래로 들여 옅은 상자(디시 'ㄴ' 처럼) */
  html:not(.hd-off) .post-detail-page .m-comment-item.m-comment-reply:not(#_hd) {
    margin: -6px 0 10px 40px !important; padding: 10px 12px !important; border: 0 !important; border-left: 0 !important;
    width: auto !important; max-width: calc(100% - 40px) !important; box-sizing: border-box !important;
    border-radius: var(--hd-r-s) !important; background: var(--hd-surface2) !important;
  }
  html:not(.hd-off) .post-detail-page .m-comment-reply .m-comment-avatar:not(#_hd) { width: 24px !important; height: 24px !important; min-width: 24px !important; border-radius: 8px !important; font-size: 11px !important; }
  html:not(.hd-off) .post-detail-page .m-comment-reply .m-comment-body:not(#_hd),
  html:not(.hd-off) .post-detail-page .m-comment-reply .m-comment-actions:not(#_hd) { padding-left: 32px !important; }
  html:not(.hd-off) .post-detail-page .m-comment-reply .m-comment-body:not(#_hd) { font-size: 14.5px !important; margin: 2px 0 2px !important; }
  html:not(.hd-off) .m-comment-header { gap: 8px !important; }
  html:not(.hd-off) .m-comment-avatar:not(#_hd), html:not(.hd-off) .m-comment-avatar img { width: 32px !important; height: 32px !important; min-width: 32px !important; border-radius: 11px !important; }
  html:not(.hd-off) .m-comment-author:not(#_hd) { font-size: 13.5px !important; font-weight: 800 !important; color: var(--hd-ink) !important; }
  html:not(.hd-off) .m-comment-body:not(#_hd) { margin: 4px 0 6px !important; padding-left: 40px !important; font-size: 15px !important; line-height: 1.65 !important; color: var(--hd-ink) !important; }
  html:not(.hd-off) .m-comment-actions:not(#_hd) { padding-left: 40px !important; gap: 4px !important; }
  html:not(.hd-off) .m-comment-action:not(#_hd) { font-size: 12.5px !important; font-weight: 700 !important; color: var(--hd-ink3) !important; border-radius: 10px !important; }

  /* style.css 의 전역 [class^=m-]{display:none} 에 걸려 폰에서도 안 보이던 것들(2026-11-17 점검)
     — 알림 목록이 '알림 (3)' 인데 비어 보였고, 프로필 이름 · 레벨 · 게시글 탭, 글 아래 관련 글, 바닥 사업자 정보가 숨어 있었다.
     인라인 style="display:none"(꺼 둔 탭)은 그대로 이긴다 — 그래서 !important 를 쓰지 않는다. */
  html:not(.hd-off) .m-notif-wrap,
  html:not(.hd-off) .m-profile-name-block,
  html:not(.hd-off) .m-profile-level-bar-wrap,
  html:not(.hd-off) .m-profile-tab-panel,
  html:not(.hd-off) .m-footer-biz,
  html:not(.hd-off) .m-footer-biz[open] .m-footer-biz-content { display: block; }
  html:not(.hd-off) .m-profile-badge-name,
  html:not(.hd-off) .m-profile-empty-state,
  html:not(.hd-off) .m-profile-empty-title { display: block; }
  html:not(.hd-off) .m-profile-empty-icon { display: inline-flex; }
  html:not(.hd-off) .m-profile-empty-state:not(#_hd) { padding: 18px 8px 8px; }
  /* 섹션 제목이 space-between 이라 '최근 게시글'이 오른쪽 끝으로 밀려 있었다 */
  html:not(.hd-off) .m-profile-section-title:not(#_hd) { justify-content: flex-start !important; }
  html:not(.hd-off) .m-profile-section-title > span:first-child { margin-right: auto; }
  /* 프로필 사진 윗부분이 표지 그림 밑에 깔려 잘렸다 */
  html:not(.hd-off) .m-profile-avatar-row:not(#_hd) { position: relative !important; z-index: 2 !important; }
  /* 관련 글(.m-post-detail-related)은 DOM 이 글 맨 위라 되살리면 제목보다 먼저 나온다 → 숨긴 채로 둔다 */

  /* 아래 고정 '의견 남기기' 줄(.kcmt-bar) — 입력 칸처럼 생긴 한 줄, 화면의 주 행동 */
  html:not(.hd-off) .kcmt-bar:not(#_hd) {
    left: 12px !important; right: 12px !important; width: auto !important; height: 48px !important; min-height: 48px !important;
    padding: 0 14px !important; border-radius: var(--hd-r-m) !important; border: 1px solid var(--hd-line) !important;
    background: color-mix(in srgb, var(--hd-surface) 96%, transparent) !important; color: var(--hd-ink3) !important;
    box-shadow: var(--hd-shadow) !important; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: 10px !important;
    font-size: 15px !important; font-weight: 600 !important; text-align: left !important; transform: none;
  }
  html:not(.hd-off) .kcmt-bar img { width: 18px !important; height: 18px !important; }

  /* 이용 가이드 — 목차(210px)와 본문이 나란히 서서 본문이 112px 로 짓눌리고 글자가 세로로 쌓였다 → 목차는 위 가로 줄로 */
  html:not(.hd-off) .guide-layout:not(#_hd) { display: block !important; }
  html:not(.hd-off) .guide-toc:not(#_hd) {
    position: static !important; width: auto !important; max-height: none !important; height: auto !important;
    margin: 0 0 8px !important; padding: 10px 12px !important; border: 0 !important; border-radius: 0 !important;
    background: var(--hd-surface) !important; box-shadow: none !important; overflow: visible !important;
  }
  html:not(.hd-off) .guide-toc-nav:not(#_hd) { display: flex !important; gap: 6px !important; overflow-x: auto !important; scrollbar-width: none; padding: 0 !important; max-height: none !important; }
  html:not(.hd-off) .guide-toc-nav::-webkit-scrollbar { display: none; }
  html:not(.hd-off) .guide-toc-link:not(#_hd) { flex: 0 0 auto !important; white-space: nowrap !important; min-height: 36px !important; padding: 0 12px !important; border-radius: 99px !important; border: 1px solid var(--hd-line) !important; background: var(--hd-surface) !important; }
  html:not(.hd-off) .guide-toc-link.is-active:not(#_hd) { background: var(--hd-ink) !important; color: var(--hd-surface) !important; border-color: var(--hd-ink) !important; }
  html:not(.hd-off) .guide-toc-link.is-active * { color: inherit !important; }
  html:not(.hd-off) .guide-main:not(#_hd) { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 14px !important; }
  html:not(.hd-off) .guide-hero:not(#_hd) { width: auto !important; }

  /* 전체 글 — 탭 3개가 2칸 격자에 갇혀 '개념글'이 다음 줄로 밀렸다 */
  html:not(.hd-off) .all-posts-page .tabs:not(#_hd) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }

  /* 버튼 — 옛 픽셀 판(두꺼운 테두리 · 밀린 그림자)을 앱 버튼으로 */
  html:not(.hd-off) .btn-primary:not(#_hd) {
    border: 0 !important; border-radius: var(--hd-r-m) !important; background: var(--hd-acc) !important; color: #fff !important;
    box-shadow: none !important; font-weight: 800 !important; transform: none !important;
  }
  html:not(.hd-off) .btn-ghost:not(#_hd), html:not(.hd-off) .btn-secondary:not(#_hd), html:not(.hd-off) .btn-outline:not(#_hd) {
    border: 1px solid var(--hd-line2) !important; border-radius: var(--hd-r-m) !important; background: var(--hd-surface) !important;
    color: var(--hd-ink) !important; box-shadow: none !important; font-weight: 700 !important; transform: none !important;
  }
  /* 손님 익명 댓글 '삭제'(비밀번호로 지우기) — 빨간 글씨가 댓글마다 붙어 시끄럽다 */
  html:not(.hd-off) .m-comment-action[style*="ef4444"], html:not(.hd-off) .m-comment-actions a[style*="ef4444"] { color: var(--hd-ink3) !important; }

}

/* ═══ 두 화면 공통 ══════════════════════════════════════════════════════ */
/* 빈 광고 자리 안내('이 자리의 광고주님을 찾습니다') — 분홍 점선이 공사 중처럼 보여 차분한 상자로 */
html:not(.hd-off) .adfit-house:not(#_hd) { border: 1px solid #ece4dc !important; background: #faf8f6 !important; color: #8a7a6d !important; }
html:not(.hd-off) .adfit-house:not(#_hd):hover { background: #f5f1ed !important; border-color: #e2d6cb !important; }
html:not(.hd-off) .adfit-house-t { font-weight: 700 !important; }
html.dark:not(.hd-off) .adfit-house:not(#_hd) { border-color: #2c2f35 !important; background: #1a1c20 !important; color: #8d939d !important; }
@font-face {
  font-family: "HSPretendard"; font-style: normal; font-weight: 45 920; font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/pretendard@1.3.9/dist/web/variable/woff2/PretendardVariable.woff2") format("woff2-variations");
}

/* ═══ PC(≥768px) — 2026-11-17 사용자 "PC 랑 모바일 둘 다". 배치 · 색은 그대로 두고 읽는 글꼴과 깨진 곳만 ═══ */
@media (min-width: 0px) {
  html:not(.hd-off) {
    --hd-font: 'HSPretendard', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  }
  /* 글꼴 — 폰과 같은 Pretendard. 픽셀 글꼴은 로고(그림) · 터미널 모드(#hsdos)에만 */
  html:not(.hd-off) body:not(#_hd),
  html:not(.hd-off) body :where(:not(#hsdos, #hsdos *, code, pre, kbd, samp)):not(#_hd) { font-family: var(--hd-font) !important; }
  html:not(.hd-off) body:not(#_hd) { -webkit-font-smoothing: antialiased; word-break: keep-all; }

  /* 글 화면 — 본문 · 댓글을 읽기 좋은 크기로 */
  html:not(.hd-off) .post-box-content:not(#_hd) { font-size: 16.5px !important; line-height: 1.8 !important; letter-spacing: -.01em; }
  html:not(.hd-off) .comment-text:not(#_hd) { font-size: 15px !important; line-height: 1.65 !important; }
  /* 익명 댓글 안내 — flex + space-between 이라 '로그인'이 가운데 혼자 떠 있었다 */
  html:not(.hd-off) .anon-guest-notice:not(#_hd) { display: block !important; }
  /* 댓글마다 붙은 '영어로 번역' 큰 버튼 → 작은 글자 단추 */
  html:not(.hd-off) .comment-card .translate-btn-wrap:not(#_hd) { margin-top: 2px !important; }
  html:not(.hd-off) .comment-card .translate-btn:not(#_hd) {
    height: 24px !important; min-height: 24px !important; padding: 0 6px !important; border: 0 !important; background: transparent !important;
    box-shadow: none !important; font-size: 12px !important; color: var(--text-muted, #9a8a7d) !important;
  }
  html:not(.hd-off) .comment-card .translate-btn:hover { color: var(--accent) !important; }
  /* 손님 익명 댓글 '삭제' — 빨간 글씨를 흐린 글씨로 */
  html:not(.hd-off) .comment-card a.btn-reply[style*="ef4444"] { color: var(--text-muted, #9a8a7d) !important; }
  html:not(.hd-off) .comment-card a.btn-reply[style*="ef4444"]:hover { color: #ef4444 !important; }
  /* 손님 안내 띠(글 화면 맨 위) — 꾸밈 없이 왼쪽 끝에 붙어 있었다 */
  html:not(.hd-off) .guest-banner:not(#_hd) {
    display: flex !important; align-items: center; justify-content: center; gap: 10px; height: auto !important;
    padding: 9px 16px !important; background: #fff4ee !important; border-bottom: 1px solid #f6dfd2; font-size: 13.5px !important; color: #5b4637 !important;
  }
  html:not(.hd-off) .guest-banner-btn:not(#_hd) { font-weight: 800 !important; color: var(--accent, #ff6a3d) !important; text-decoration: underline; text-underline-offset: 3px; }
  html.dark:not(.hd-off) .guest-banner:not(#_hd) { background: #22180f !important; border-bottom-color: #3a2a1d; color: #e8d8c8 !important; }
}
