.ac-community { width: min(1120px, 100%); margin-inline: auto; color: var(--ac-ink); }
.ac-community *, .ac-community *::before, .ac-community *::after { box-sizing: border-box; }
.ac-community ::selection { background: var(--ac-mint); color: var(--ac-ink); }
.ac-community { scrollbar-color: var(--ac-lilac) var(--ac-paper); }
.ac-community input, .ac-community textarea { caret-color: var(--ac-focus); }
.ac-community-content { min-width: 0; }
.ac-community-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ac-community-stack, .ac-community-form { display: grid; gap: 16px; min-width: 0; }
.ac-community-section { min-width: 0; padding-block: 0 16px; }
.ac-community-section > h3 { margin: 0 0 16px; padding: 12px 16px; background: var(--ac-space); color: var(--ac-paper-raised); border-radius: var(--ac-radius); font-family: 'AC Arcade', 'AC Nunito', sans-serif; font-size: 1.25rem; font-weight: 400; }
.ac-community-section > .ac-community-section { margin-top: 24px; }
.ac-community h4 { font-size: 1rem; margin: 0; overflow-wrap: anywhere; }
.ac-community p { overflow-wrap: anywhere; }
.ac-community-test { margin: 12px 0 0; font-weight: 850; color: var(--ac-ink); }
.ac-community-note { color: var(--ac-ink-muted); max-width: 68ch; font-size: .875rem; }
.ac-community-message { margin: 0 0 16px; font-weight: 800; }
.ac-community-message:empty { display: none; }
.ac-community-message[role='alert'], .ac-community-field-error { color: var(--ac-error); }
.ac-community-avatar-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 12px; border: 0; margin: 0; padding: 0; min-width: 0; }
.ac-community legend { font-weight: 850; padding: 0; margin-bottom: 12px; }
.ac-community-avatar-group .ac-card { min-width: 0; }
.ac-community-avatar-group .ac-card__header { flex-wrap: wrap; min-width: 0; }
.ac-community-avatar-group .ac-card__status { max-width: 100%; flex-shrink: 1; overflow-wrap: anywhere; }
.ac-community-avatar-group .ac-card__copy { display: none; }
.ac-community-avatar { display: block; width: 100%; aspect-ratio: 1; background-size: 200% 100%; background-repeat: no-repeat; }
.ac-community-avatar--large { width: min(220px, 100%); justify-self: center; margin-inline: auto; }
.ac-community canvas { display: block; width: 100%; height: auto; margin-bottom: 16px; }
.ac-community .ac-button { max-width: 100%; overflow-wrap: anywhere; }
.ac-community textarea { resize: vertical; width: 100%; min-height: 140px; font: inherit; }
.ac-community input { min-width: 0; }
.ac-community .ac-stat { flex-wrap: wrap; }
.ac-community .ac-stat__label { flex: 1 0 8rem; }
.ac-community .ac-stat__value { flex: 1 1 10rem; }
.ac-community-history { list-style: none; padding: 0; margin: 0; }
.ac-community-request { padding-block: 16px 24px; border-bottom: 1px solid var(--ac-line); }
.ac-community-request:first-child { padding-top: 0; }
.ac-community-status { font-weight: 850; color: var(--ac-mint-edge); }
.ac-community-review summary { cursor: pointer; padding: 12px 0; min-height: 48px; font-weight: 800; }
.ac-community-review summary:focus-visible { outline: 3px solid var(--ac-focus); outline-offset: 3px; }
.ac-community-review[open] { padding-bottom: 16px; }
.ac-community-tasks { min-width: 0; border: 0; padding: 0; margin: 0; }
.ac-community-tasks label { display: flex; gap: 12px; align-items: center; min-height: 64px; padding: 12px 0; border-bottom: 1px solid var(--ac-line); cursor: pointer; }
.ac-community-tasks input { width: 28px; height: 28px; flex: 0 0 28px; accent-color: var(--ac-mint-edge); }
.ac-community-ranking { width: 100%; border-collapse: collapse; margin-bottom: 24px; table-layout: fixed; font-variant-numeric: tabular-nums; }
.ac-community-ranking caption { text-align: left; font-size: 1.25rem; font-weight: 850; padding-bottom: 16px; }
.ac-community-ranking th, .ac-community-ranking td { text-align: left; padding: 16px 12px; overflow-wrap: anywhere; border-bottom: 1px solid var(--ac-line); }
.ac-community-ranking thead { background: var(--ac-space); color: var(--ac-paper); }
.ac-community-ranking th:first-child, .ac-community-ranking td:first-child { width: 18%; }
.ac-community-ranking th:last-child, .ac-community-ranking td:last-child { width: 28%; text-align: right; }
.ac-community-ranking .ac-community-own { background: var(--ac-mint); font-weight: 850; }
@media (max-width: 760px) { .ac-community-columns { grid-template-columns: minmax(0, 1fr); } .ac-community-avatar-group .ac-community-avatar { max-width: 180px; align-self: center; } }
@media (max-width: 600px) {
  .ac-community-ranking th, .ac-community-ranking td { padding: 12px 4px; }
  .ac-community-ranking th:first-child, .ac-community-ranking td:first-child { width: 22%; }
  .ac-community-ranking th:last-child, .ac-community-ranking td:last-child { width: 32%; }
}
@media (max-width: 360px) {
  .ac-community-avatar-group { gap: 8px; }
  .ac-community-ranking th, .ac-community-ranking td { padding: 12px 4px; }
  .ac-community-avatar-group .ac-card__header { font-size: 1rem; }
}
/* Profile uses the established panel proportions for server wallet identity. */
.ac-wallet-panel { margin: 0 0 18px; padding: 18px; border: 1px solid var(--ac-line, #d3c8c3); border-radius: 12px; background: var(--ac-paper-raised, #fff9ec); }
.ac-wallet-panel h2 { margin: 0 0 10px; }
.ac-wallet-panel p { margin: 10px 0; }
.ac-wallet-panel code { display: block; font-size: .85rem; overflow-wrap: anywhere; user-select: all; }
.ac-wallet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 10px; }
@media (max-width: 600px) { .ac-wallet-panel { padding: 14px; } .ac-wallet-actions { flex-direction: column; } .ac-wallet-actions .ac-button { width: 100%; } }
