.comm { max-width: 720px; margin: 0 auto; padding: 32px 18px 80px; }
.comm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.comm-head h1 { margin: 0; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; }
.back { display: inline-block; color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.back:hover { color: var(--text); }
.back::before { content: "‹ "; }

/* 목록 */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: block; padding: 14px 4px; }
.post-list a:hover { background: var(--bg-2); }
.post-title { font-size: 1rem; font-weight: 500; display: flex; gap: 6px; align-items: baseline; }
.post-title .cc { color: #d93025; font-size: .85rem; font-weight: 600; }
.meta { color: var(--muted); font-size: .8rem; margin-top: 4px; display: flex; gap: 8px; }
.meta .anon { color: var(--muted); }
.empty, .loading, .error { color: var(--muted); text-align: center; padding: 40px 0; }
.error { color: #d93025; }
.more { display: block; margin: 20px auto 0; }

/* 글 보기 */
.post-view h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; word-break: break-word; }
.post-view .meta { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.post-body { white-space: pre-wrap; word-break: break-word; line-height: 1.75; padding: 22px 0 28px; font-size: 1rem; }
.owner-actions { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.text-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .8rem; cursor: pointer; }
.text-btn:hover { color: #d93025; }

.comments h2 { font-size: .95rem; font-weight: 600; margin: 0 0 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.c-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.c-author { font-size: .85rem; font-weight: 600; }
.c-author.op { color: #2f6fe0; }
.c-time { font-size: .75rem; color: var(--muted); }
.c-body { white-space: pre-wrap; word-break: break-word; margin-top: 4px; font-size: .95rem; line-height: 1.6; }

/* 입력 폼 */
.form { display: grid; gap: 10px; }
.form input[type=text], .form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; resize: vertical;
}
.form input[type=text]:focus, .form textarea:focus { outline: none; border-color: var(--text); }
.form textarea { min-height: 260px; line-height: 1.6; }
.form.comment-form textarea { min-height: 80px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.anon-toggle { display: flex; align-items: center; gap: 6px; font-size: .9rem; cursor: pointer; user-select: none; }
.anon-toggle input { width: 17px; height: 17px; accent-color: var(--ink); }
.counter { font-size: .75rem; color: var(--muted); margin-left: auto; margin-right: 8px; }
.msg { min-height: 1.2em; font-size: .85rem; color: #d93025; margin: 0; }
.login-hint { background: var(--bg-2); border-radius: 12px; padding: 14px; font-size: .9rem; color: var(--muted); text-align: center; margin-top: 14px; }
.login-hint a { color: var(--text); font-weight: 600; text-decoration: underline; }

/* 게시판 탭 */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; }
.tab { padding: 7px 14px; border-radius: 999px; background: var(--bg-2); font-size: .88rem; white-space: nowrap; color: var(--muted); }
.tab:hover { color: var(--text); }
.tab.active { background: var(--ink); color: var(--on-ink); font-weight: 600; }
.board-desc { color: var(--muted); font-size: .85rem; margin: 4px 0 14px; }
.board-tag { font-size: .72rem; font-weight: 600; color: var(--muted); background: var(--bg-2); padding: 2px 7px; border-radius: 6px; flex-shrink: 0; }
.board-tag.big { display: inline-block; font-size: .78rem; margin-bottom: 10px; }
.board-tag.big:hover { color: var(--text); }

/* 공감 / 댓글 수 */
.meta { align-items: center; }
.stats { display: flex; gap: 10px; margin-left: auto; }
.stat { display: inline-flex; align-items: center; gap: 3px; font-size: .78rem; color: var(--muted); }
.stat svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.stat.like.on { color: #e5484d; }
.stat.like.on svg { fill: currentColor; }
.stat b { font-weight: 500; font-variant-numeric: tabular-nums; }

.post-actions { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; }
.post-actions #delPost { margin-left: auto; }
.like-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: .9rem; cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.like-btn:active { transform: scale(.96); }
.like-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.like-btn.on { border-color: #e5484d; color: #e5484d; background: color-mix(in srgb, #e5484d 8%, var(--bg)); }
.like-btn.on svg { fill: currentColor; }
.like-btn b { font-variant-numeric: tabular-nums; }
.stat-inline .stat { font-size: .9rem; }
.stat-inline .stat svg { width: 18px; height: 18px; }

/* 글쓰기: 게시판 선택, 익명 고정 */
.board-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.pick { border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: .9rem; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.pick.active { border-color: var(--ink); background: var(--ink); color: var(--on-ink); font-weight: 600; }
.anon-toggle.locked { opacity: .55; cursor: default; }
.hint-line { margin: -2px 0 0; font-size: .8rem; color: var(--muted); }
.head-actions { display: flex; gap: 8px; }

/* 삭제 버튼 */
.del-btn {
  margin-left: auto; padding: 9px 16px; border-radius: 999px; border: 1.5px solid #d93025;
  background: var(--bg); color: #d93025; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.del-btn:hover { background: color-mix(in srgb, #d93025 8%, var(--bg)); }
