/* 공지사항 화면 */
main.wrap.nmain { padding-top: 28px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 16px; max-width: 1040px; }
.panel h2 { font-size: 18px; }

/* 목록 */
.n-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.n-search .input { height: 40px; width: min(280px, 60vw); font-size: 14px; border-radius: 999px; padding: 0 16px; }
.n-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.n-list li { border-bottom: 1px solid var(--line); }
.n-list li.pinned { background: #fafbfc; }
.n-list a { display: grid; grid-template-columns: 56px minmax(0, 1fr) 110px 92px 72px; align-items: center; gap: 12px; padding: 14px 8px; color: var(--ink); text-decoration: none; font-size: 14.5px; }
.n-list a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.n-list a:hover { background: var(--accent-soft); }
.n-no { text-align: center; color: var(--muted-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.pinned .n-no { color: #b42318; font-weight: 700; }
.n-title { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; }
.n-title .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pinned .n-title .t { font-weight: 750; }
.n-clip { display: inline-flex; align-items: center; gap: 2px; flex: none; color: var(--muted-2); font-size: 12.5px; font-weight: 600; }
.n-author, .n-date, .n-views { color: var(--muted); font-size: 13.5px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n-views { color: var(--muted-2); font-size: 12.5px; }
.n-empty { padding: 48px 16px; text-align: center; color: var(--muted); font-size: 14.5px; }
.n-badge { display: inline-flex; align-items: center; justify-content: center; flex: none; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 750; }
.n-badge.pin { background: #fef3f2; color: #b42318; }
.n-badge.new { min-width: 20px; padding: 0 5px; background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; }
.n-pages { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.n-pages:empty { display: none; }
.pg { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.pg:hover { background: var(--bg); }
.pg.on { background: var(--ink); color: #fff; }
@media (max-width: 719px) {
  .n-list a { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title title" "author date"; gap: 4px 10px; padding: 14px 4px; }
  .n-no, .n-views { display: none; }
  .n-title { grid-area: title; }
  .n-title .t { white-space: normal; }
  .n-author { grid-area: author; text-align: left; font-size: 13px; }
  .n-date { grid-area: date; text-align: right; font-size: 13px; }
  .n-tools { width: 100%; }
  .n-search { flex: 1; }
  .n-search .input { width: 100%; }
}

/* 보기 */
.n-view { gap: 20px; }
.n-view-head { display: flex; flex-direction: column; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.n-badges { display: flex; gap: 6px; }
.n-badges:empty { display: none; }
.n-view-head h1 { margin: 0; font-size: clamp(20px, 2.6vw, 26px); font-weight: 750; letter-spacing: -0.03em; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.n-meta { margin: 0; color: var(--muted); font-size: 13.5px; }
.n-meta b { color: var(--ink-2); font-weight: 650; }

/* 본문: 편집기와 같은 모양으로 보이게 (Quill 스타일 + 읽기용 여백) */
.ql-snow .ql-editor.n-body { padding: 0; min-height: 80px; overflow: visible; height: auto; font-family: inherit; font-size: 15.5px; line-height: 1.75; color: var(--ink); cursor: auto; }
.n-body img { max-width: 100%; height: auto; border-radius: 8px; }
.n-body a { color: var(--accent); }
.n-body table, .w-source-preview table { border-collapse: collapse; margin: 8px 0; max-width: 100%; }
.n-body th, .n-body td { border: 1px solid var(--line-2); padding: 6px 10px; vertical-align: top; }
.n-body th { background: #f5f6f8; font-weight: 700; }
.n-body hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.n-body blockquote { border-left: 4px solid var(--line-2); padding-left: 14px; color: var(--ink-2); }
.n-body { overflow-x: auto; }

.n-files { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fafbfc; display: flex; flex-direction: column; gap: 8px; }
.n-files h2 { margin: 0; font-size: 14px; font-weight: 700; }
.n-files h2 span { color: var(--muted-2); font-weight: 600; }
.n-files ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.n-files a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 14px; }
.n-files a:hover { background: #fff; color: var(--accent); }
.n-files .nm { overflow-wrap: anywhere; font-weight: 600; }
.n-files .sz { margin-left: auto; color: var(--muted-2); font-size: 12.5px; white-space: nowrap; }
.n-view-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
.n-own { display: flex; flex-wrap: wrap; gap: 8px; }
.n-near { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.n-near:empty { display: none; }
.n-near a { display: flex; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: 14px; }
.n-near a span { flex: none; width: 52px; color: var(--muted-2); font-size: 13px; }
.n-near a b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n-near a:hover b { color: var(--accent); }

/* 쓰기 */
.n-write { gap: 18px; }
.n-write .panel-head { align-items: center; }
.label-like { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.w-body-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.btn-xs { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.w-editor-box { border-radius: 14px; }
.n-write .ql-toolbar.ql-snow { border: 1px solid #dadde3; border-radius: 12px 12px 0 0; background: #fafbfc; font-family: inherit; }
.n-write .ql-container.ql-snow { border: 1px solid #dadde3; border-top: 0; border-radius: 0 0 12px 12px; font-family: inherit; font-size: 15px; }
.n-write .ql-editor { min-height: 320px; max-height: 70vh; line-height: 1.7; }
.n-write .ql-editor.ql-blank::before { font-style: normal; color: #9aa1ae; }
.n-write .ql-toolbar[hidden], #w-editor[hidden] { display: none !important; }
.w-source { width: 100%; min-height: 360px; padding: 14px; border: 1px solid #dadde3; border-radius: 12px; font: 13px/1.6 ui-monospace, 'SFMono-Regular', Consolas, monospace; resize: vertical; }
.w-source:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.w-drop { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 72px; padding: 16px; border: 1.5px dashed var(--line-2); border-radius: 14px; color: var(--muted); font-size: 14px; cursor: pointer; text-align: center; transition: border-color .15s ease, background .15s ease; }
.w-drop b { color: var(--accent); }
.w-drop:hover, .w-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.w-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.w-files:empty { display: none; }
.w-files li { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.w-files li.err { border-color: #fecdd3; background: #fff1f2; color: #be123c; }
.w-files .nm { overflow-wrap: anywhere; font-weight: 600; }
.w-files .sz { margin-left: auto; color: var(--muted-2); font-size: 12.5px; white-space: nowrap; }
.w-files li.err .sz { color: #be123c; white-space: normal; }
.w-files .icon-btn { width: 30px; height: 30px; flex: none; }
.w-actions { display: flex; justify-content: flex-end; gap: 8px; }
.n-write .check.strong { font-size: 14px; }
.m-only { display: none; }
@media (max-width: 719px) { .m-only { display: inline-flex; } }

/* 편집기 글자 크기 고르기: 한글 이름 */
.ql-snow .ql-picker.ql-header { width: 92px; }
.ql-snow .ql-picker.ql-header .ql-picker-label::before,
.ql-snow .ql-picker.ql-header .ql-picker-item::before { content: '본문'; }
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before { content: '큰 제목'; }
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { content: '중간 제목'; }
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { content: '작은 제목'; }
.ql-snow .ql-tooltip[data-mode="link"]::before { content: '링크 주소:'; }
.ql-snow .ql-tooltip.ql-editing a.ql-action::after { content: '저장'; }
.ql-snow .ql-tooltip::before { content: '링크:'; }
.ql-snow .ql-tooltip a.ql-action::after { content: '고치기'; }
.ql-snow .ql-tooltip a.ql-remove::before { content: '빼기'; }
.n-write .ql-snow .ql-tooltip { z-index: 5; }
