/* 관리자 화면 「커뮤니티 신고」 칸과 그 확인 창(커뮤니티 · 사람 멘토 설계 1.3절).
   값은 admin-workspace.css · admin-grants.css와 같은 --ws-* 토큰만 쓴다. 표는 .admin-table(920px 아래에서 카드로 바뀐다)을 그대로 쓴다. */

/* 맨 위 72시간 경고 */
.admin-workspace .community-alert {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid var(--ws-danger-line, var(--ws-danger));
  border-left: 4px solid var(--ws-danger);
  border-radius: var(--ws-radius-md);
  background: var(--ws-danger-bg, var(--ws-surface));
}
.admin-workspace .community-alert p { flex: 1 1 18rem; margin: 0; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.community-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.community-badge.is-danger { color: #fff; background: var(--ws-danger); }
.admin-tab-btn .community-badge { margin-left: 4px; padding: 0 7px; }

/* 칸 */
.admin-workspace .community-panel { display: grid; gap: 14px; }
.admin-workspace .community-panel .directory-heading { margin: 0; }
.admin-workspace .community-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: stretch;
}
.admin-workspace .community-stat {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius-md);
  background: var(--ws-surface);
}
.admin-workspace .community-stat span { font-size: 12.5px; color: var(--ws-ink-muted); }
.admin-workspace .community-stat strong { font-size: 22px; font-variant-numeric: tabular-nums; color: var(--ws-ink); }
.admin-workspace .community-stat.is-danger { border-color: var(--ws-danger-line, var(--ws-danger)); background: var(--ws-danger-bg, var(--ws-surface)); }
.admin-workspace .community-stat.is-danger strong { color: var(--ws-danger); }
.admin-workspace .community-summary > .btn { align-self: center; }
.admin-workspace .community-views { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-workspace .community-feedback { margin: 1rem 0; color: var(--ws-ink-muted); line-height: 1.55; overflow-wrap: anywhere; }
.admin-workspace .community-feedback[role="alert"] { color: var(--ws-danger); }

.admin-workspace .community-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.admin-workspace .community-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius-md);
  background: var(--ws-surface);
}
.admin-workspace .community-item.is-overdue { border-left: 4px solid var(--ws-danger); }
.admin-workspace .community-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.admin-workspace .community-elapsed { margin-left: auto; font-size: 12.5px; color: var(--ws-ink-muted); font-variant-numeric: tabular-nums; }
.admin-workspace .community-elapsed.is-danger { color: var(--ws-danger); font-weight: 650; }
.admin-workspace .community-title { font-size: 15px; overflow-wrap: anywhere; }
.admin-workspace .community-preview {
  margin: 0;
  color: var(--ws-ink-secondary, var(--ws-ink));
  line-height: 1.55;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.admin-workspace .community-preview.is-empty { color: var(--ws-ink-muted); font-style: italic; }
.admin-workspace .community-meta { font-size: 13px; color: var(--ws-ink-muted); line-height: 1.6; overflow-wrap: anywhere; }
.admin-workspace .community-actions { flex-wrap: wrap; margin-top: 2px; }
.admin-workspace .community-table th:nth-child(2) { width: 36%; }
.community-hash { font-family: var(--ws-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 12px; word-break: break-all; }
/* 원문 전체 보기 창: 본문은 줄바꿈 그대로, 길면 창 안에서만 넘긴다 */
.community-inspect { display: grid; gap: 12px; }
.community-inspect-title { margin: 4px 0 0; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.community-inspect-head { margin: 8px 0 0; font-size: 14px; font-weight: 700; }
.community-full-body { margin: 0; padding: 12px 14px; max-height: 360px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 14px; line-height: 1.6; background: var(--ws-surface-muted, #F6F6F4); border-radius: 8px; }
.community-inspect-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.community-inspect-list > li { padding: 8px 0; border-bottom: 1px solid var(--ws-line, #E6E6E6); font-size: 13px; }
.community-inspect-note { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.community-inspect-meta dd { white-space: pre-wrap; overflow-wrap: anywhere; }

/* 확인 창(모달은 .admin-workspace 밖에 그려진다) */
.community-confirm .community-choice { display: grid; gap: 6px; margin: 0; padding: 10px 12px; border: 1px solid var(--ws-line); border-radius: var(--ws-radius-sm, 10px); }
.community-confirm .community-choice legend { padding: 0 4px; font-size: 12.5px; color: var(--ws-ink-muted); }
.community-confirm .community-danger-box {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--ws-danger-line, var(--ws-danger));
  border-left: 4px solid var(--ws-danger);
  border-radius: var(--ws-radius-sm, 10px);
  background: var(--ws-danger-bg, transparent);
}
.community-confirm .community-danger-box strong { color: var(--ws-danger); }
.community-confirm .community-danger-box p { margin: 0; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.community-receipt { display: grid; gap: 10px; }
.community-receipt > strong { font-size: 15px; }
.community-receipt .grants-note { margin: 0; font-size: 12.5px; color: var(--ws-ink-muted); }

@media (max-width: 650px) {
  .admin-workspace .community-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-workspace .community-summary > .btn { grid-column: 1 / -1; justify-self: start; }
  .admin-workspace .community-elapsed { margin-left: 0; flex-basis: 100%; }
  .community-confirm input, .community-confirm select { font-size: 16px; }
}
