@charset "utf-8";
/* =========================================================
   알림판 스킨 (notice_memo) v2
   색, 투명도, 한줄 공지 글씨를 바꾸고 싶으면 아래 .nm-board { } 안의 값만 바꾸면 돼요.
   본문·제목·메뉴 글씨는 홈페이지 폰트를 그대로 따라가요.
   ========================================================= */

/* 스킨에 들어 있는 무료 폰트 (SIL OFL) */
@font-face { font-family: "NM Silkscreen"; src: url("fonts/silkscreen-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NM Plex Mono"; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NM Plex Mono"; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

.nm-board {
    --nm-ink: #26303d;            /* 기본 글자색 */
    --nm-ink2: #3a4656;           /* 조금 옅은 글자색 */
    --nm-soft: #4f5d6e;           /* 날짜·작은 글자색 */
    --nm-pink: #eea0b4;           /* 분홍 포인트 (점, 막대, 테두리) */
    --nm-pink-ink: #e48ba3;       /* 분홍 글자 */
    --nm-sky: #8fb3dc;            /* 지직거릴 때 하늘색 */
    --nm-blue: #3d5a80;           /* 아이콘 색 */
    --nm-glass: 0.24;             /* 창 투명도 (0 = 완전 투명, 1 = 불투명) */
    --nm-edge: rgba(255, 255, 255, 0.85);   /* 창 테두리 */
    --nm-ticker-font: "Diphylleia", serif;  /* 한줄 공지 글씨 (홈페이지에 등록한 폰트 이름으로 바꿀 수 있어요) */
    --nm-pixel: "NM Silkscreen", monospace; /* 맨 위 NOTICE · 숫자 글씨 */
    --nm-mono: "NM Plex Mono", ui-monospace, monospace;  /* 날짜 · CH 번호 글씨 */
    --nm-glow: 0 0 1px #fff, 0 0 2px #fff, 0 0 3px rgba(255, 255, 255, 0.85);

    color: var(--nm-ink);
    font-size: 14px;
    line-height: 1.6;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    box-sizing: border-box;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.nm-board *, .nm-board *::before, .nm-board *::after { box-sizing: border-box; }
.nm-board a { color: inherit; text-decoration: none; }
.nm-board button { font-family: inherit; }
.nm-board svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nm-gap { flex: 1 1 auto; }

/* =================== 움직임 =================== */
@keyframes nmBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes nmPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes nmTrack { 0% { top: -24px; } 100% { top: 100%; } }
@keyframes nmGlitchP { 0%, 86%, 100% { transform: translate(0, 0); opacity: 0; } 87% { transform: translate(-3px, 0); opacity: .75; } 89% { transform: translate(2px, 1px); opacity: .75; } 91% { transform: translate(-1px, 0); opacity: .6; } 93% { transform: translate(0, 0); opacity: 0; } }
@keyframes nmGlitchB { 0%, 86%, 100% { transform: translate(0, 0); opacity: 0; } 87% { transform: translate(3px, 0); opacity: .75; } 89% { transform: translate(-2px, -1px); opacity: .75; } 91% { transform: translate(1px, 0); opacity: .6; } 93% { transform: translate(0, 0); opacity: 0; } }
@keyframes nmJitter { 0%, 86%, 94%, 100% { transform: none; } 88% { transform: translateX(1px) skewX(-2deg); } 90% { transform: translateX(-1px); } }

/* =================== 맨 위 움직이는 제목 =================== */
.nm-head {
    position: relative; overflow: hidden;
    padding: 20px 30px 22px;
    border-radius: 16px;
    background: rgba(250, 252, 254, var(--nm-glass));
    border: 1px solid var(--nm-edge);
}
.nm-title-track {
    position: absolute; left: 0; right: 0; height: 18px; pointer-events: none; opacity: .8;
    background: repeating-linear-gradient(180deg, rgba(255,255,255,.5) 0 1px, rgba(255,255,255,0) 1px 3px);
    animation: nmTrack 7s linear infinite;
}
.nm-osd { position: relative; display: flex; align-items: center; gap: 12px; font-family: var(--nm-mono); font-size: 12px; color: var(--nm-soft); }
.nm-rec { display: inline-flex; align-items: center; gap: 6px; color: var(--nm-pink-ink); font-family: var(--nm-mono); font-weight: 500; }
.nm-rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--nm-pink); animation: nmPulse 1.6s ease-in-out infinite; }
.nm-osd-tag { padding: 1px 6px; border: 1px solid rgba(38,48,61,.3); border-radius: 3px; font-size: 10px; letter-spacing: .1em; }
.nm-osd-gap { flex: 1 1 auto; }
.nm-osd-ch { letter-spacing: .08em; }
.nm-tc { color: var(--nm-ink); letter-spacing: .06em; font-variant-numeric: tabular-nums; }

.nm-title-main { position: relative; margin: 22px 0 0; text-align: center; font-family: var(--nm-pixel); font-weight: 400; font-size: 56px; letter-spacing: .12em; line-height: 1.1; min-height: 1.15em; color: var(--nm-ink); }
.nm-type { display: inline-block; white-space: nowrap; }
.nm-glitch { position: relative; display: inline-block; animation: nmJitter 4.5s steps(1) infinite; }
.nm-g { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; white-space: nowrap; }
.nm-g-p { color: var(--nm-pink); animation: nmGlitchP 4.5s steps(1) infinite; }
.nm-g-b { color: var(--nm-sky); animation: nmGlitchB 4.5s steps(1) infinite; }
.nm-g-main { position: relative; text-shadow: var(--nm-glow); }
.nm-cursor { display: inline-block; width: .5em; height: .85em; margin-left: 2px; vertical-align: -0.06em; background: var(--nm-pink); animation: nmBlink 1s steps(1) infinite; }
.nm-title-sub { position: relative; margin: 10px 0 0; text-align: center; font-size: 15px; color: var(--nm-ink2); }
.nm-num { margin-right: 4px; font-family: var(--nm-pixel); font-size: 20px; line-height: 1; vertical-align: -0.06em; color: var(--nm-ink); }

/* =================== 버튼 줄 · 검색 =================== */
.nm-bar { display: flex; align-items: center; gap: 10px; padding: 14px 8px; }
.nm-btn-icon {
    position: relative; width: 44px; height: 44px; flex-shrink: 0; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 10px; background: rgba(255,255,255,.45); color: var(--nm-blue); cursor: pointer;
}
.nm-btn-icon:hover { background: rgba(255,255,255,.7); }
.nm-btn-icon svg { width: 20px; height: 20px; }
.nm-side-toggle[aria-expanded="true"] { background: var(--nm-ink); color: #fff; }
.nm-badge { position: absolute; top: 3px; right: 3px; width: 15px; height: 15px; display: inline-flex; align-items: center; justify-content: center; color: var(--nm-pink); }
.nm-board .nm-badge svg { width: 14px; height: 14px; fill: currentColor; stroke: #fff; stroke-width: 1.6; filter: drop-shadow(0 0 1px rgba(255,255,255,.9)); }
.nm-crumb { flex: 1 1 auto; min-width: 0; padding-left: 6px; font-size: 13px; color: var(--nm-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 8px 14px; }
.nm-search[hidden] { display: none; }
.nm-field { height: 40px; padding: 0 12px; border: 1px solid rgba(38,48,61,.18); border-radius: 10px; background: rgba(255,255,255,.55); color: var(--nm-ink); font: inherit; font-size: 14px; }
.nm-field:focus { outline: 2px solid var(--nm-pink); outline-offset: 1px; }
.nm-stx { flex: 1 1 200px; min-width: 0; }
.nm-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border: 1px solid rgba(38,48,61,.22); border-radius: 8px; background: rgba(255,255,255,.45); color: var(--nm-ink); font: inherit; font-size: 13px; cursor: pointer; }
.nm-btn:hover { background: rgba(255,255,255,.7); }
.nm-btn-main { border-color: var(--nm-ink); background: var(--nm-ink); color: #fff; }
.nm-btn-main:hover { background: #3a4656; }

/* =================== 큰 창 =================== */
.nm-panel {
    position: relative;
    border-radius: 16px;
    background: rgba(250, 252, 254, var(--nm-glass));
    border: 1px solid var(--nm-edge);
    box-shadow: 0 10px 30px rgba(61, 90, 128, .1);
}

/* 한줄 공지: 바탕 없이 글자 + 얇은 하얀 빛 */
.nm-ticker { display: flex; align-items: center; gap: 14px; padding: 14px 26px 2px; }
.nm-ticker-tag { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; font-family: var(--nm-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--nm-pink-ink); text-shadow: var(--nm-glow); }
.nm-ticker-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--nm-pink); box-shadow: 0 0 2px #fff, 0 0 1px #fff; }
.nm-ticker-items { flex: 1 1 auto; min-width: 0; display: grid; }
.nm-ticker-item { grid-area: 1 / 1; display: flex; align-items: baseline; gap: 12px; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.nm-ticker-item.is-on { opacity: 1; visibility: visible; }
.nm-ticker-text { flex: 1 1 auto; min-width: 0; font-family: var(--nm-ticker-font); font-size: 17px; line-height: 1.35; color: var(--nm-ink); text-shadow: var(--nm-glow); }
a.nm-ticker-item:hover .nm-ticker-text { text-decoration: underline; text-underline-offset: 3px; }
.nm-ticker-until { flex-shrink: 0; font-family: var(--nm-mono); font-size: 12px; font-weight: 500; color: var(--nm-pink-ink); text-shadow: var(--nm-glow); }
.nm-ticker-bars { display: flex; gap: 4px; flex-shrink: 0; }
.nm-ticker-bars i { width: 6px; height: 3px; border-radius: 2px; background: #f3c4d0; box-shadow: 0 0 2px #fff, 0 0 1px #fff; transition: width .3s, background .3s; }
.nm-ticker-bars i.is-on { width: 14px; background: var(--nm-pink); }

/* 사이드바 + 내용 */
.nm-split { position: relative; display: flex; margin-top: 12px; border-top: 1px solid rgba(255,255,255,.6); min-height: 420px; }
.nm-side { width: 210px; flex-shrink: 0; padding: 18px 12px; border-right: 1px solid rgba(255,255,255,.6); background: rgba(250,252,254,.18); border-bottom-left-radius: 16px; }
.nm-board.is-side-closed .nm-side { display: none; }
.nm-side-head { display: none; }
.nm-side-label { display: flex; align-items: center; gap: 6px; padding: 0 8px 8px; font-family: var(--nm-mono); font-size: 11px; letter-spacing: .12em; color: var(--nm-soft); }
.nm-side-label svg { width: 13px; height: 13px; color: var(--nm-pink-ink); stroke-width: 1.8; }
.nm-pins, .nm-chs, .nm-fly-list { margin: 0; padding: 0; list-style: none; }
.nm-pins a { display: flex; align-items: center; min-height: 40px; padding: 4px 8px; border-radius: 8px; font-size: 13px; }
.nm-pins a:hover, .nm-pins a.is-on { background: rgba(255,255,255,.55); }
.nm-pins a.is-on { font-weight: 700; }
.nm-side-line { height: 1px; margin: 16px 8px; background: rgba(38,48,61,.12); }
.nm-ch-btn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--nm-ink); font-size: 13px; text-align: left; cursor: pointer; }
.nm-ch-btn:hover, .nm-ch-btn.is-on, .nm-ch-btn[aria-expanded="true"] { background: rgba(255,255,255,.6); }
.nm-ch-btn[aria-expanded="true"] .nm-ch-no, .nm-ch-btn.is-on .nm-ch-no { font-weight: 500; }
.nm-ch-no { flex-shrink: 0; width: 38px; font-family: var(--nm-mono); font-size: 11px; color: var(--nm-pink-ink); }
.nm-ch-name { flex: 1 1 auto; min-width: 0; }
.nm-ch-count { font-family: var(--nm-mono); font-size: 11px; color: var(--nm-soft); }
.nm-ch-arrow { display: inline-flex; color: var(--nm-soft); }
.nm-ch-arrow svg { width: 12px; height: 12px; stroke-width: 1.8; transition: transform .2s; }

/* 분류를 누르면 옆에 뜨는 작은 창 */
.nm-fly {
    position: absolute; top: 12px; left: 218px; z-index: 20;
    width: 280px; max-height: 520px; overflow: auto;
    border-radius: 12px; border: 1px solid rgba(255,255,255,.95);
    background: rgba(250, 252, 254, .96);
    box-shadow: 0 14px 34px rgba(38, 48, 61, .2);
}
.nm-fly[hidden] { display: none; }
.nm-fly-head { position: sticky; top: 0; display: flex; align-items: center; gap: 8px; padding: 6px 4px 6px 16px; border-bottom: 1px solid rgba(38,48,61,.1); background: rgba(250,252,254,.98); }
.nm-fly-head .nm-ch-no { width: auto; }
.nm-fly-head b { flex: 1 1 auto; font-size: 14px; }
.nm-fly-count { font-family: var(--nm-mono); font-size: 11px; color: var(--nm-soft); }
.nm-fly-close { background: none; color: var(--nm-soft); }
.nm-fly-close svg { width: 14px; height: 14px; }
.nm-fly-list a { display: block; padding: 11px 16px; border-bottom: 1px solid rgba(38,48,61,.07); }
.nm-fly-list a:hover, .nm-fly-list a.is-on { background: rgba(61,90,128,.06); }
.nm-fly-top { display: flex; align-items: baseline; gap: 8px; }
.nm-fly-t { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 700; }
.nm-fly-d { font-family: var(--nm-mono); font-size: 11px; color: var(--nm-soft); }
.nm-fly-s { display: block; margin-top: 2px; font-size: 12px; color: var(--nm-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-fly-empty { margin: 0; padding: 16px; font-size: 13px; color: var(--nm-soft); }
.nm-fly-all { display: block; padding: 11px 16px; font-size: 12px; color: var(--nm-blue) !important; text-align: center; }
.nm-fly-all:hover { text-decoration: underline; }
.nm-dim { display: none !important; }

.nm-main { flex: 1 1 auto; min-width: 0; padding: 18px 32px 26px 20px; }
.nm-filter { margin: 0 0 6px; font-size: 13px; color: var(--nm-soft); }
.nm-filter .nm-ch-no { width: auto; margin-right: 6px; }
.nm-filter a { text-decoration: underline; }

/* =================== 타임라인 =================== */
.nm-tl { position: relative; margin: 0; padding: 0; list-style: none; }
.nm-tl::before { content: ""; position: absolute; top: 24px; bottom: 0; left: 111px; width: 1px; background: rgba(38,48,61,.22); }
.nm-item { display: grid; grid-template-columns: 96px 31px minmax(0, 1fr); align-items: start; padding: 14px 0; }
.nm-when { padding-right: 18px; text-align: right; font-family: var(--nm-mono); color: var(--nm-soft); }
.nm-when-d { display: block; font-size: 15px; color: var(--nm-ink); }
.nm-when-t { display: block; font-size: 11px; }
.nm-dot { position: relative; z-index: 1; justify-self: center; width: 11px; height: 11px; margin-top: 6px; border-radius: 50%; background: var(--nm-blue); }
.nm-item.is-notice .nm-dot { background: var(--nm-pink); box-shadow: 0 0 0 4px rgba(238,160,180,.25); }
.nm-item.is-folded { align-items: center; padding: 8px 0; }
.nm-item.is-folded .nm-dot { margin-top: 0; border: 1px solid var(--nm-blue); background: #e3ebf4; }
.nm-body { min-width: 0; padding: 0 0 0 22px; }
.nm-item.is-notice .nm-body { margin-left: 22px; padding: 16px 22px 14px; border-radius: 12px; background: rgba(255,255,255,.3); border: 1px solid var(--nm-pink); }

.nm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-family: var(--nm-mono); font-size: 12px; color: var(--nm-soft); }
.nm-notice-tag { color: var(--nm-pink-ink); font-weight: 500; }
.nm-meta-ca .nm-ch-no { width: auto; margin-right: 5px; }
.nm-new { padding: 1px 6px; border-radius: 3px; background: var(--nm-pink); color: #fff; font-size: 11px; }
.nm-until { margin-left: auto; padding: 2px 8px; border: 1px solid rgba(38,48,61,.2); border-radius: 4px; }
.nm-title { margin: 8px 0 10px; font-size: 18px; font-weight: 700; line-height: 1.45; }
.nm-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nm-title-sm { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 16px; color: var(--nm-ink2); }
.nm-lock { display: inline-flex; margin-right: 4px; vertical-align: -2px; color: var(--nm-soft); }
.nm-lock svg { width: 14px; height: 14px; }
.nm-content { font-size: 14px; line-height: 1.8; color: #303b49; }
.nm-content p { margin: 0 0 .6em; }
.nm-content img { max-width: 100%; height: auto; border-radius: 8px; }
.nm-body-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.nm-body-imgs img, .nm-body-img { max-width: 100%; height: auto; border-radius: 8px; }
.nm-locked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; color: var(--nm-soft); }
.nm-locked svg { width: 15px; height: 15px; }
.nm-locked a { text-decoration: underline; }

/* 접어둔 글 */
.nm-fold-row { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.nm-sum { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nm-sum-item { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; }
.nm-sum-item span { font-family: var(--nm-mono); font-size: 11px; color: var(--nm-soft); }
.nm-fold-btn { width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 0; background: none; color: var(--nm-blue); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nm-fold-btn svg { width: 15px; height: 15px; transition: transform .25s; }
.nm-fold-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nm-fold-body { padding: 4px 44px 6px 0; }
.nm-fold-body[hidden] { display: none; }
.nm-fold-body .nm-content { margin-top: 8px; }

.nm-empty { padding: 40px 0; text-align: center; color: var(--nm-soft); }

/* =================== 글 보기 =================== */
.nm-view-top { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.nm-back { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; border: 1px solid var(--nm-edge); border-radius: 18px; background: rgba(255,255,255,.45); color: var(--nm-blue) !important; font-size: 13px; }
.nm-back:hover { background: rgba(255,255,255,.7); }
.nm-back svg { width: 15px; height: 15px; }
.nm-copy { width: 36px; height: 36px; border-radius: 18px; }
.nm-copy svg { width: 16px; height: 16px; }
.nm-view { padding: 28px 32px; border-radius: 14px; background: rgba(255,255,255,.32); border: 1px solid var(--nm-edge); }
.nm-view.is-notice { border-color: var(--nm-pink); }
.nm-view .nm-until { margin-left: auto; }
.nm-view-title { margin: 14px 0 0; font-size: 24px; font-weight: 700; line-height: 1.4; }
.nm-view-line { height: 1px; margin: 18px 0; background: rgba(38,48,61,.12); }
.nm-content-view { font-size: 15px; line-height: 1.9; }
.nm-view-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 22px; }
.nm-view-foot .nm-react { margin-top: 0; }
.nm-text-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 8px; font-size: 12px; color: var(--nm-soft) !important; }
.nm-text-btn:hover { background: rgba(255,255,255,.45); }
.nm-files { margin: 16px 0 0; padding: 0; list-style: none; font-size: 13px; }
.nm-files li { padding: 4px 0; }
.nm-files a { text-decoration: underline; }
.nm-files span { color: var(--nm-soft); font-family: var(--nm-mono); font-size: 11px; }

/* =================== 반응 =================== */
.nm-react { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.nm-chips { display: contents; }
.nm-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
    border: 1px solid rgba(38,48,61,.18); border-radius: 17px; background: rgba(255,255,255,.35);
    color: var(--nm-ink); font-size: 13px; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.nm-chip:hover { background: rgba(255,255,255,.6); }
.nm-chip:active { transform: scale(.95); }
.nm-chip.is-mine { border-color: var(--nm-pink); background: rgba(238,160,180,.18); }
.nm-chip-n { font-family: var(--nm-mono); font-size: 12px; }
.nm-emo { width: 1.2em; height: 1.2em; vertical-align: -0.2em; display: inline-block; }
.nm-react-add { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px dashed rgba(38,48,61,.35); border-radius: 17px; background: none; color: var(--nm-soft); cursor: pointer; }
.nm-react-add:hover { background: rgba(255,255,255,.45); }
.nm-react-add svg { width: 18px; height: 18px; stroke-width: 1.4; }

.nm-picker { position: absolute; z-index: 1000; width: 300px; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.9); background: rgba(250,252,254,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(38,48,61,.18); color: #26303d; }
.nm-picker[hidden] { display: none; }
.nm-picker { width: 340px; }
.nm-picker-search { width: 100%; height: 38px; margin-bottom: 8px; padding: 0 12px; border: 1px solid rgba(38,48,61,.18); border-radius: 10px; background: rgba(255,255,255,.8); color: #26303d; font: inherit; font-size: 13px; }
.nm-picker-search:focus { outline: 2px solid #eea0b4; outline-offset: 1px; }
.nm-picker-tabs { display: flex; flex-wrap: nowrap; gap: 4px; padding-bottom: 8px; border-bottom: 1px solid rgba(38,48,61,.1); overflow-x: auto; scrollbar-width: thin; }
.nm-picker-tab { flex-shrink: 0; white-space: nowrap; }
.nm-picker-grid { max-height: 260px; overflow-y: auto; }
.nm-picker-msg { grid-column: 1 / -1; margin: 0; padding: 18px 0; text-align: center; font-size: 13px; color: #4f5d6e; }
.nm-picker-tab { height: 30px; padding: 0 10px; border: 0; border-radius: 4px; background: none; color: #4f5d6e; font-size: 12px; cursor: pointer; }
.nm-picker-tab[aria-selected="true"] { background: #26303d; color: #fff; }
.nm-picker-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; padding-top: 8px; }
.nm-picker-grid button { height: 40px; border: 0; border-radius: 8px; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.nm-picker-grid button:hover, .nm-picker-grid button:focus-visible { background: rgba(61,90,128,.1); }
.nm-picker-grid .nm-emo { width: 24px; height: 24px; }
.nm-picker-dim { position: fixed; inset: 0; z-index: 999; background: rgba(20,28,40,.25); }
.nm-picker-dim[hidden] { display: none; }
.nm-toast { position: fixed; left: 50%; bottom: 28px; z-index: 1001; transform: translateX(-50%); padding: 10px 18px; border-radius: 8px; background: rgba(30,40,56,.85); color: #fff; font-size: 13px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.nm-toast.is-on { opacity: 1; }

/* =================== 페이지 번호 =================== */
.nm-pages { margin-top: 10px; text-align: center; font-family: var(--nm-mono); font-size: 13px; }
.nm-pages .pg { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.nm-pages .pg a, .nm-pages .pg strong { min-width: 32px; height: 32px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.nm-pages .pg a:hover { background: rgba(255,255,255,.45); }
.nm-pages .pg_current { background: var(--nm-ink); color: #fff; }
.nm-pages .sound_only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* =================== 글쓰기 =================== */
.nm-write { padding: 28px 30px; border-radius: 16px; background: rgba(250, 252, 254, var(--nm-glass)); border: 1px solid var(--nm-edge); }
.nm-write-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.nm-write-h { margin: 0; font-size: 20px; }
.nm-row { margin-bottom: 18px; }
.nm-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nm-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.nm-label small { margin-left: 6px; font-weight: 400; color: var(--nm-soft); }
.nm-write .nm-field { width: 100%; }
.nm-write select.nm-field { width: auto; min-width: 200px; }
.nm-editor textarea { width: 100%; min-height: 260px; padding: 12px; border: 1px solid rgba(38,48,61,.18); border-radius: 10px; background: rgba(255,255,255,.55); font: inherit; }
.nm-set { margin: 0 0 18px; padding: 16px 18px; border: 1px dashed rgba(38,48,61,.3); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.nm-set legend { padding: 0 6px; margin-bottom: 0; }
.nm-check, .nm-radio { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; font-size: 13px; cursor: pointer; }
.nm-check input, .nm-radio input { width: 16px; height: 16px; accent-color: var(--nm-pink-ink); margin: 0; }
.nm-set-line { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.nm-set-k { font-size: 13px; font-weight: 700; min-width: 64px; }
.nm-write .nm-date-field { width: auto; height: 36px; }
.nm-set-hint { font-size: 12px; color: var(--nm-soft); flex: 1 1 260px; }
.nm-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nm-file .nm-label { flex: 0 0 100%; margin-bottom: 0; }
.nm-file .nm-field { flex: 1 1 200px; width: auto; }
.nm-file-del { flex: 0 0 100%; }
.nm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.nm-actions-gap { flex: 1 1 auto; }
.nm-btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }

/* =========================================================
   휴대폰 화면: 예쁜 것보다 잘 읽히고 누르기 쉬운 것이 먼저
   ========================================================= */
@media (max-width: 760px) {
    .nm-board { padding: 14px 12px 32px; font-size: 15px; }

    .nm-head { padding: 14px 16px 16px; border-radius: 14px; }
    .nm-osd { gap: 10px; font-size: 11px; }
    .nm-title-main { margin-top: 14px; font-size: 36px; }
    .nm-title-sub { font-size: 14px; }
    .nm-num { font-size: 15px; }

    .nm-bar { gap: 6px; padding: 12px 0 10px; }
    .nm-crumb { font-size: 14px; color: var(--nm-ink2); }
    .nm-side-toggle[aria-expanded="true"] { background: rgba(255,255,255,.45); color: var(--nm-blue); }
    .nm-search { margin: 0 0 12px; }
    .nm-search select { flex: 0 0 auto; }

    .nm-panel { border-radius: 14px; }
    .nm-ticker { flex-wrap: wrap; gap: 4px 10px; padding: 12px 14px 0; }
    .nm-ticker-bars { margin-left: auto; }
    .nm-ticker-items { order: 3; flex: 0 0 100%; }
    .nm-ticker-item { flex-wrap: wrap; gap: 0 10px; }
    .nm-ticker-text { font-size: 18px; line-height: 1.45; }

    .nm-split { display: block; margin-top: 8px; min-height: 0; }

    /* 사이드바 → 왼쪽에서 밀려 나오는 메뉴 */
    .nm-side, .nm-board.is-side-closed .nm-side {
        display: block; position: fixed; top: 0; bottom: 0; left: 0; z-index: 1000;
        width: min(300px, 86vw); padding: 14px 12px 24px; overflow: auto;
        border: 0; border-radius: 0; background: rgba(246, 249, 252, .98);
        box-shadow: 8px 0 30px rgba(20, 28, 40, .18);
        transform: translateX(-105%); transition: transform .25s ease; visibility: hidden;
    }
    .nm-board.is-drawer-open .nm-side { transform: none; visibility: visible; }
    .nm-side-head { display: flex; align-items: center; padding: 0 0 10px 8px; }
    .nm-side-head span { flex: 1 1 auto; font-size: 17px; font-weight: 700; }
    .nm-side-close { background: none; color: var(--nm-soft); }
    .nm-dim { display: block !important; position: fixed; inset: 0; z-index: 999; background: rgba(20, 28, 40, .35); }
    .nm-dim[hidden] { display: none !important; }

    .nm-side-label { padding: 6px 8px; font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
    .nm-side-label svg { width: 15px; height: 15px; }
    .nm-pins a { min-height: 48px; padding: 0 10px; font-size: 15px; }
    .nm-ch-btn { min-height: 48px; padding: 0 10px; font-size: 15px; }
    .nm-ch-no { width: 44px; font-size: 12px; }
    .nm-ch-count { font-size: 13px; }
    .nm-ch-btn[aria-expanded="true"] .nm-ch-arrow svg { transform: rotate(90deg); }

    /* 분류 글 목록 → 메뉴 안에서 아래로 펼치기 */
    .nm-fly { position: static; width: auto; max-height: none; overflow: visible; margin: 2px 0 8px 18px; padding-left: 10px; border: 0; border-left: 2px solid rgba(61, 90, 128, .18); border-radius: 0; background: none; box-shadow: none; }
    .nm-fly-head { display: none; }
    .nm-fly-list a { display: flex; align-items: center; min-height: 46px; padding: 6px 8px; border-bottom: 0; border-radius: 8px; }
    .nm-fly-top { flex: 1 1 auto; align-items: center; }
    .nm-fly-t { font-size: 14px; font-weight: 400; }
    .nm-fly-d { font-size: 12px; }
    .nm-fly-s { display: none; }
    .nm-fly-all { padding: 10px 8px; text-align: left; font-size: 13px; }

    .nm-main { padding: 12px 14px 20px; }

    /* 타임라인: 날짜는 글 위에 한 줄로 */
    .nm-tl::before { left: 5px; top: 10px; }
    .nm-item { grid-template-columns: 11px minmax(0, 1fr); column-gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(38,48,61,.08); }
    .nm-item:last-child { border-bottom: 0; }
    .nm-when { grid-column: 2; grid-row: 1; display: flex; gap: 8px; padding: 0; text-align: left; }
    .nm-when-d, .nm-when-t { display: inline; font-size: 13px; color: var(--nm-soft); }
    .nm-dot { grid-column: 1; grid-row: 1; margin-top: 5px; width: 10px; height: 10px; }
    .nm-body { grid-column: 2; grid-row: 2; padding: 6px 0 0; }
    .nm-item.is-notice .nm-body { margin: 8px 0 0; padding: 14px; }
    .nm-item.is-folded { align-items: start; padding: 10px 0; }
    .nm-item.is-folded .nm-dot { margin-top: 5px; }
    .nm-item.is-folded .nm-body { padding-top: 0; }
    .nm-fold-row { min-height: 48px; }
    .nm-title { margin: 6px 0 6px; font-size: 17px; }
    .nm-title-sm { font-size: 16px; font-weight: 500; color: var(--nm-ink); }
    .nm-content { font-size: 15px; line-height: 1.75; }
    .nm-until { margin-left: 0; }
    .nm-meta { font-size: 13px; }
    .nm-fold-body { padding-right: 0; }
    .nm-sum-item { font-size: 15px; }
    .nm-sum-item span { font-size: 13px; }

    .nm-chip { height: 40px; padding: 0 14px; border-radius: 20px; font-size: 14px; }
    .nm-chip-n { font-size: 14px; }
    .nm-react-add { width: 40px; height: 40px; border-radius: 20px; }

    .nm-back { height: 44px; padding: 0 16px 0 12px; border-radius: 22px; font-size: 14px; }
    .nm-copy { width: 44px; height: 44px; border-radius: 22px; }
    .nm-view { padding: 20px 18px; }
    .nm-view-title { font-size: 21px; }
    .nm-content-view { font-size: 16px; line-height: 1.85; }
    .nm-text-btn { height: 44px; font-size: 14px; }

    .nm-write { padding: 20px 18px; }
    .nm-row-2 { grid-template-columns: minmax(0, 1fr); }

    /* 반응 고르기 창: 화면 아래에서 올라오기 */
    .nm-picker { position: fixed; left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; border-radius: 16px 16px 0 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); }
    .nm-picker-grid button { height: 46px; }
    .nm-picker-grid { max-height: 46vh; }
}

/* 기기에서 '동작 줄이기'를 켠 사람에게는 움직임을 꺼요 */
@media (prefers-reduced-motion: reduce) {
    .nm-board *, .nm-board *::before, .nm-board *::after { animation: none !important; transition: none !important; }
    .nm-g { display: none; }
}

/* =================== 글쓰기: 라공에디션 기본 첨부창 · 임시저장 · 비밀글 =================== */
.nm-subject-box { position: relative; }
.nm-subject-box .nm-field { width: 100%; padding-right: 140px; }
.nm-subject-box #btn_autosave { position: absolute; top: 5px; right: 6px; height: 30px; line-height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: rgba(61,90,128,.1); color: var(--nm-blue); font-size: 12px; cursor: pointer; }
.nm-field-sm { height: 36px; }
.nm-secret-pw { align-items: center; gap: 8px; }
.nm-editor-area { margin-bottom: 18px; }
.nm-write .file_section_title { display: block; margin: 14px 0 6px; font-weight: 700; font-size: 13px; }
.nm-write .file_section_title .text_muted { color: var(--nm-soft); font-size: .85em; font-weight: 400; }
.nm-write .file_notice { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--nm-pink); background: rgba(255,255,255,.4); font-size: 12px; line-height: 1.6; }
.nm-write .file_hidden { display: none !important; position: absolute; width: 0; height: 0; opacity: 0; visibility: hidden; }
.nm-write .file_upload_box { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid rgba(38,48,61,.15); border-radius: 10px; background: rgba(255,255,255,.55); }
.nm-write .file_name { flex: 1; color: var(--nm-soft); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-write .file_item_row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nm-write .file_item_row .file_upload_box { flex: 1; min-width: 240px; }
@media (max-width: 760px) {
    .nm-subject-box .nm-field { padding-right: 12px; }
    .nm-subject-box #btn_autosave { position: static; margin-top: 8px; height: 36px; }
}

/* =================== 이어진 글 =================== */
.nm-fups { margin-top: 10px; }
.nm-fup-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid rgba(38,48,61,.16); border-radius: 17px; background: rgba(255,255,255,.35); color: var(--nm-blue); font-size: 13px; cursor: pointer; }
.nm-fup-btn:hover { background: rgba(255,255,255,.6); }
.nm-fup-btn svg { width: 15px; height: 15px; }
.nm-fup-btn b { font-family: var(--nm-mono); font-weight: 500; color: var(--nm-pink-ink); }
.nm-fup-arrow { display: inline-flex; }
.nm-fup-arrow svg { width: 13px; height: 13px; transition: transform .25s; }
.nm-fup-btn[aria-expanded="true"] .nm-fup-arrow svg { transform: rotate(180deg); }
.nm-fup-list { margin: 10px 0 0; padding: 0 0 0 14px; list-style: none; border-left: 2px solid rgba(238,160,180,.45); }
.nm-fup-list[hidden] { display: none; }
.nm-fup { padding: 10px 0; }
.nm-fup + .nm-fup { border-top: 1px dashed rgba(38,48,61,.14); }
.nm-fup-meta { display: flex; align-items: center; gap: 8px; font-family: var(--nm-mono); font-size: 12px; color: var(--nm-soft); }
.nm-fup-mark { color: var(--nm-pink-ink); }
.nm-fup-open { margin-left: auto; font-family: inherit; font-size: 12px; color: var(--nm-blue) !important; text-decoration: underline; text-underline-offset: 2px; }
.nm-fup-title { margin: 4px 0 4px; font-size: 15px; font-weight: 700; }
.nm-fup-content { font-size: 14px; }
.nm-fup-badge { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; font-family: var(--nm-mono); font-size: 11px; color: var(--nm-pink-ink); }
.nm-fup-badge svg { width: 14px; height: 14px; }
.nm-fups.is-view { margin-top: 18px; padding: 20px 24px; border-radius: 14px; background: rgba(255,255,255,.26); border: 1px solid var(--nm-edge); }
.nm-fups-head { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--nm-ink2); }
.nm-fups-head svg { width: 16px; height: 16px; color: var(--nm-pink-ink); }
.nm-fups-head b { font-family: var(--nm-mono); font-weight: 500; color: var(--nm-pink-ink); }
.nm-fups.is-view .nm-fup-list { margin-top: 12px; }
.nm-fups.is-view .nm-fup-content { font-size: 15px; line-height: 1.85; }
.nm-fup-label { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 13px; color: var(--nm-pink-ink); }
.nm-fup-label svg { width: 15px; height: 15px; }
.nm-back-parent svg, .nm-follow-btn svg { width: 15px; height: 15px; }
.nm-follow-btn { color: var(--nm-pink-ink) !important; }
.nm-write-parent { margin: -10px 0 18px; font-size: 13px; color: var(--nm-soft); }
@media (max-width: 760px) {
    .nm-fup-btn { height: 40px; padding: 0 14px; font-size: 14px; }
    .nm-fup-content, .nm-fups.is-view .nm-fup-content { font-size: 15px; }
    .nm-fups.is-view { padding: 16px; }
    .nm-view-top { flex-wrap: wrap; }
}

/* =================== CHAPTER 순서 바꾸기 (관리자에게만 보여요) =================== */
.nm-pins.is-sortable li { display: flex; align-items: center; gap: 2px; border-radius: 8px; }
.nm-pins.is-sortable li > a { flex: 1 1 auto; min-width: 0; }
.nm-pin-grip { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 34px; color: var(--nm-soft); opacity: .5; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.nm-pin-grip:hover { opacity: 1; color: var(--nm-pink-ink); }
.nm-pin-grip svg { width: 14px; height: 14px; stroke-width: 2; }
.nm-pin-move { flex-shrink: 0; display: inline-flex; gap: 1px; opacity: 0; transition: opacity .15s; }
.nm-pins.is-sortable li:hover .nm-pin-move, .nm-pins.is-sortable li:focus-within .nm-pin-move { opacity: 1; }
.nm-pin-move button { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--nm-blue); cursor: pointer; }
.nm-pin-move button:hover { background: rgba(255,255,255,.6); color: var(--nm-pink-ink); }
.nm-pin-move button:disabled { opacity: .25; cursor: default; background: none; color: var(--nm-soft); }
.nm-pin-move svg { width: 14px; height: 14px; stroke-width: 2; }
.nm-pins.is-sortable li.is-drag { background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px var(--nm-pink), 0 4px 14px rgba(38,48,61,.12); }
.nm-pins.is-sortable li.is-drag .nm-pin-grip { cursor: grabbing; opacity: 1; color: var(--nm-pink-ink); }
.nm-board.is-sorting, .nm-board.is-sorting * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }

@media (max-width: 760px) {
    /* 휴대폰: 끌기 손잡이는 숨기고, 누르기 쉬운 큰 ▲▼ 버튼을 항상 보여줘요 */
    .nm-pin-grip { display: none; }
    .nm-pin-move { opacity: 1; gap: 4px; }
    .nm-pin-move button { width: 40px; height: 40px; background: rgba(255,255,255,.45); }
    .nm-pin-move svg { width: 18px; height: 18px; }
}

/* =================== 라공 이모티콘 크기: 글자 높이의 1.5배로 일정하게 =================== */
.nm-board img.ra0-emoticon {
    display: inline-block !important;
    width: auto !important;
    height: 1.5em !important;      /* ← 크기 조절은 이 숫자만 바꾸면 돼요 (예: 1.2em = 글자의 1.2배) */
    max-width: 3em !important;
    object-fit: contain;
    vertical-align: -0.35em !important;
    margin: 0 0.1em !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* =================== CHAPTER 순서 편집: 발바닥 버튼을 눌렀을 때만 손잡이 · ▲▼ 보이기 =================== */
.nm-pins.is-sortable:not(.is-editing) .nm-pin-grip,
.nm-pins.is-sortable:not(.is-editing) .nm-pin-move { display: none !important; }
.nm-pins.is-editing { padding: 4px; border-radius: 10px; background: rgba(251, 227, 234, .35); box-shadow: 0 0 0 1px var(--nm-pink); }
.nm-pins.is-editing .nm-pin-move { opacity: 1; }
.nm-board .nm-sort-toggle[aria-pressed="true"] { background: #fbe3ea; color: var(--nm-pink-ink); box-shadow: 0 0 0 1px var(--nm-pink); }