.community-confirmation {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--theme-border, #cad8d0);
  border-radius: 14px;
  background: var(--theme-card, #fff);
  color: var(--theme-ink, #193e30);
  font:
    14px/1.7 system-ui,
    sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.community-confirmation::backdrop {
  background: var(--theme-scrim, #090d12a6);
}
.community-confirmation h2 {
  font-size: 19px;
  margin: 0 0 12px;
}
.community-confirmation label {
  display: grid;
  gap: 8px;
}
.community-confirmation textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 84px;
  background: var(--theme-card, #fff);
  color: inherit;
  border: 1px solid var(--theme-border, #cad8d0);
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}
.community-actions,
.community-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.community-confirmation button,
.community-toolbar button,
.community-card button,
.community-tabs button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--theme-border, #cad8d0);
  border-radius: 8px;
  background: var(--theme-card, #fff);
  color: var(--theme-ink, #193e30);
  font: inherit;
  cursor: pointer;
}
.community-confirmation button:disabled,
.community-card button:disabled {
  opacity: 0.55;
  cursor: default;
}
.community-actions button[type='submit'] {
  background: var(--theme-danger-surface, #fff0ed);
  color: var(--theme-danger, #a23b32);
  font-weight: 700;
}
.community-confirmation :focus-visible,
.community-toolbar :focus-visible {
  outline: 2px solid var(--theme-accent, #176b4b);
  outline-offset: 3px;
}
.community-toolbar {
  margin: 16px 0;
  padding: 12px 16px;
  border: 1px solid var(--theme-border, #cad8d0);
  border-radius: 10px;
  background: var(--theme-soft, #edf3ef);
  font:
    13px/1.7 system-ui,
    sans-serif;
}
.community-toolbar[hidden] {
  display: none;
}
.community-toolbar strong {
  display: block;
}
.community-toolbar a {
  color: var(--theme-accent, #176b4b);
}
.community-toolbar p {
  margin: 6px 0;
}
.community-list {
  display: grid;
  gap: 12px;
}
.community-card {
  padding: 18px;
  border: 1px solid var(--theme-border, #cad8d0);
  border-radius: 10px;
  background: var(--theme-card, #fff);
  overflow-wrap: anywhere;
}
.community-card h2 {
  font-size: 17px;
  margin: 8px 0;
}
.community-card p {
  white-space: pre-wrap;
  margin: 8px 0;
}
.community-card small {
  color: var(--theme-muted, #586960);
}
.community-card a {
  color: var(--theme-accent, #176b4b);
  text-underline-offset: 3px;
}
.community-card .community-comment {
  max-height: 220px;
  overflow-y: auto;
}
.community-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.community-tabs [aria-pressed='true'] {
  background: var(--theme-soft, #edf3ef);
  color: var(--theme-accent, #176b4b);
  font-weight: 700;
}
.community-empty {
  padding: 24px;
  text-align: center;
}
.community-moderator .story-comments [data-delete-comment] {
  display: none !important;
}
.community-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.community-post-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
}
.community-post-actions[hidden] {
  display: none;
}
.community-post-actions button,
.community-comment-delete {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--theme-border, #cad8d0);
  border-radius: 8px;
  background: var(--theme-card, #fff);
  color: var(--theme-danger, #a23b32);
  font: inherit;
  cursor: pointer;
}
.community-post-actions button:disabled,
.community-comment-delete:disabled {
  opacity: 0.55;
  cursor: default;
}
.community-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--theme-accent, #176b4b);
  text-underline-offset: 3px;
}
.community-confirmation > p {
  max-height: min(180px, 30dvh);
  overflow-y: auto;
  white-space: pre-wrap;
}
