
  .community-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 16px 64px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    font-family:
      system-ui,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      sans-serif;
  }

  .community-content {
    min-width: 0;
  }

  .community-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
  }

  .community-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
  }

  .btn-list-top {
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
  }

  .btn-list-top:hover {
    background: #f9fafb;
  }

  /* 상세 카드 */
  .board-detail-card {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    padding: 18px 18px 16px;
  }

  .board-detail-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }

  .board-detail-top {
    margin-bottom: 6px;
  }

  .badge-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 500;
  }

  .board-detail-title {
    font-size: 20px;
    font-weight: 700;
    margin: 4px 0 6px;
    line-height: 1.4;
    word-break: keep-all;
  }

  .board-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #6b7280;
  }

  .meta-item {
    display: flex;
    gap: 4px;
  }

  .meta-label {
    color: #9ca3af;
  }

  .meta-value {
    color: #4b5563;
  }

  /* 본문 */
  .board-detail-body {
    font-size: 14px;
    color: #111827;
  }

  .board-detail-content {
    line-height: 1.7;
    white-space: pre-wrap;
    /* 줄바꿈/띄어쓰기 유지 */
    word-break: break-word;
    min-height: 160px;
  }

  /* 첨부파일 */
  .board-detail-attachments {
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
  }

  .attachments-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #4b5563;
  }

  .attachments-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
  }

  .attachments-item + .attachments-item {
    margin-top: 4px;
  }

  .attachments-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #111827;
  }

  .attachments-link:hover .file-name {
    text-decoration: underline;
  }

  .file-icon {
    font-size: 14px;
  }

  .file-name {
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .file-size {
    font-size: 11px;
    color: #9ca3af;
  }

  /* 이전글 / 다음글 */
  .board-detail-nav {
    margin-top: 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    overflow: hidden;
  }

  .nav-row {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: stretch;
    border-bottom: 1px solid #e5e7eb;
  }

  .nav-row:last-child {
    border-bottom: none;
  }

  .nav-label {
    font-size: 12px;
    color: #6b7280;
    background: #f9fafb;
    padding: 8px 10px;
    border-right: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
  }

  .nav-link {
    border: none;
    background: transparent;
    text-align: left;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    width: 100%;
  }

  .nav-link:hover {
    background: #f3f4f6;
  }

  .nav-title {
    display: block;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-meta {
    display: flex;
    gap: 8px;
    margin-top: 2px;
    font-size: 11px;
    color: #9ca3af;
  }

  /* 하단 버튼 영역 */
  .board-detail-actions {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .action-left,
  .action-right {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .btn-list,
  .btn-outline,
  .btn-danger {
    height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
  }

  .btn-list {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    color: #111827;
  }

  .btn-list:hover {
    background: #e5e7eb;
  }

  .btn-outline {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
  }

  .btn-outline:hover {
    background: #f9fafb;
  }

  .btn-danger {
    background: #dc2626;
    color: #f9fafb;
  }

  .btn-danger:hover {
    background: #b91c1c;
  }

  /* 댓글 / 답글 */
  .board-detail-comments {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #e5e7eb;
  }

  .comments-title {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
  }

  .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .comment-item + .comment-item {
    border-top: 1px solid #f1f5f9;
  }

  .comment-author {
    font-weight: 700;
    color: #111827;
  }

  .comment-dot {
    color: #cbd5e1;
  }

  .comment-date {
    font-size: 12px;
    color: #6b7280;
  }

  .comment-body {
    font-size: 14px;
    line-height: 1.7;
    color: #111827;
    white-space: pre-wrap;
    word-break: break-word;
  }

  /* 운영자 답글 박스 */
  .comment-reply {
    margin-top: 10px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 12px;
  }

  .reply-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
  }

  .reply-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #111827;
    color: #ffffff;
  }

  .reply-author {
    font-size: 12px;
    font-weight: 800;
    color: #111827;
  }

  .reply-body {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    white-space: pre-wrap;
    word-break: break-word;
  }

  /* 반응형 */
  @media (max-width: 960px) {
    .community-container {
      grid-template-columns: 1fr;
      padding-inline: 12px;
    }

    .board-detail-card {
      padding: 14px 12px 12px;
    }
  }

  @media (max-width: 640px) {
    .board-detail-title {
      font-size: 18px;
    }

    .board-detail-meta {
      flex-direction: column;
      gap: 2px;
    }

    .nav-row {
      grid-template-columns: 70px minmax(0, 1fr);
    }

    .board-detail-actions {
      flex-direction: column;
      align-items: stretch;
    }

    .action-left,
    .action-right {
      justify-content: flex-end;
    }
  }
