.topbar {
    height: 72px;
    border-bottom: 1px solid #dbe3ec;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
}

.shell {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
}

.community-page {
    min-height: calc(100vh - 72px);
    background: #f1f5f9;
}

.community-hero {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 58%, #ecfeff 100%);
    border: 1px solid #fed7aa;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
}

.community-banner-frame {
    position: relative;
    height: clamp(160px, 25vw, 360px);
    overflow: hidden;
    background: #e2e8f0;
}

.community-banner-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.community-access-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    background: #fff7ed;
    color: #c2410c;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 800;
}

.community-access-restricted {
    color: #b91c1c;
}

.community-safety-panel {
    border: 1px solid #fed7aa;
    border-radius: 14px;
    background: linear-gradient(135deg, #fffaf5 0%, #ffffff 100%);
    padding: 16px;
}

.community-safety-report-list,
.community-safety-action-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.community-safety-report {
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.community-safety-status {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.community-safety-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 12px;
}

.community-safety-action-row {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    padding-top: 9px;
}

.community-safety-action-dot {
    display: inline-grid;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 999px;
    background: #fff7ed;
    color: #ea580c;
    font-size: 10px;
}

.community-card,
.community-panel {
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.community-journey-nav {
    position: sticky;
    top: 5.35rem;
    z-index: 30;
    display: flex;
    width: max-content;
    max-width: 100%;
    gap: 6px;
    margin: 18px auto 0;
    padding: 7px;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .1);
    scrollbar-width: none;
    backdrop-filter: blur(16px);
}

.community-journey-nav::-webkit-scrollbar { display: none; }

.community-journey-nav a {
    display: inline-flex;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 8px 13px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.community-journey-nav a:hover,
.community-journey-nav a:focus-visible,
.community-journey-nav a.is-active {
    background: #fff7ed;
    color: #c2410c;
    outline: none;
}

.community-journey-nav a.is-active {
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, .18), 0 5px 14px rgba(249, 115, 22, .11);
}

#community-mission,
#community-events,
#community-activity,
#community-progress {
    scroll-margin-top: 9rem;
}

.community-card {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.community-card:hover {
    border-color: #fdba74;
    box-shadow: 0 14px 30px rgba(234, 88, 12, .11);
    transform: translateY(-2px);
}

.community-avatar {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 14px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 20px;
    font-weight: 800;
}

.community-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    padding: 4px 9px;
    text-transform: uppercase;
}

.community-input,
.community-select,
.community-textarea {
    min-width: 0;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #1e293b;
    font-size: 14px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.community-input,
.community-select {
    min-height: 42px;
    padding: 0 12px;
}

.community-textarea {
    min-height: 96px;
    padding: 10px 12px;
    resize: vertical;
}

.community-input:focus,
.community-select:focus,
.community-textarea:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, .18);
}

.community-primary-button,
.community-secondary-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 800;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.community-primary-button {
    border: 1px solid #f97316;
    background: #f97316;
    color: #fff;
}

.community-primary-button:hover {
    background: #ea580c;
    border-color: #ea580c;
}

.community-secondary-button {
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.community-secondary-button:hover {
    border-color: #fb923c;
    background: #ffedd5;
}

.community-muted-button {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

.community-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: rgba(255, 255, 255, .7);
    color: #64748b;
    padding: 32px 20px;
    text-align: center;
}

.community-composer {
    border: 1px solid #fed7aa;
    border-radius: 14px;
    background: linear-gradient(135deg, #fffaf5, #ffffff);
    padding: 18px;
}

.community-management-panel,
.community-management-section,
.community-editor-fields,
.community-editor-field-grid {
    min-width: 0;
}

.community-editor-fields {
    display: grid;
    gap: 12px;
}

.community-editor-field-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.community-editor-label {
    display: block;
    margin-bottom: 5px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.3;
    text-transform: uppercase;
}

.community-editor-label span {
    color: #cbd5e1;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.community-editor-save {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
}

.community-editor-save .community-primary-button {
    width: 100%;
}

.community-composer button:disabled {
    cursor: wait;
    opacity: .65;
}

.community-activity-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
}

.community-activity-card + .community-activity-card {
    margin-top: 12px;
}

.community-activity-avatar {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    background: #fff7ed;
    color: #c2410c;
}

.community-activity-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-activity-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 9px;
    white-space: nowrap;
}

.community-activity-media {
    display: block;
    width: 100%;
    max-height: 420px;
    margin-top: 16px;
    border-radius: 12px;
    background: #f8fafc;
    object-fit: contain;
}

.community-activity-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    color: #64748b;
    font-size: 12px;
}

.community-conversation {
    margin-top: 16px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.community-reaction-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.community-reaction-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.community-reaction-total,
.community-comments-toggle,
.community-reaction-button,
.community-comment-action {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.community-reaction-total {
    white-space: nowrap;
}

.community-reaction-button,
.community-comments-toggle,
.community-comment-action {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    padding: 6px 10px;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.community-reaction-button:hover,
.community-comments-toggle:hover,
.community-comment-action:hover,
.community-reaction-button.is-active {
    border-color: #fdba74;
    background: #fff7ed;
    color: #c2410c;
}

.community-reaction-button:disabled {
    cursor: not-allowed;
    opacity: .6;
}

.community-reaction-button i {
    margin-right: 4px;
}

.community-reaction-like i { color: #3b82f6; }
.community-reaction-love i { color: #ef4444; }
.community-reaction-laugh i { color: #cf6f12; }
.community-reaction-congratulate i { color: #eab308; }
.community-reaction-sad i { color: #6366f1; }

.community-reaction-button:hover i,
.community-reaction-button.is-active i {
    filter: saturate(1.15);
}

.community-comments {
    margin-top: 12px;
    border-radius: 12px;
    background: #f8fafc;
    padding: 12px;
}

.community-comments-list {
    display: grid;
    gap: 10px;
}

.community-comments-loading,
.community-comments-empty,
.community-comments-signin {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.community-comment {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.community-comment:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.community-comment.is-reply {
    margin-top: 10px;
    border-bottom: 0;
    border-left: 2px solid #fed7aa;
    padding: 0 0 0 12px;
}

.community-comment-avatar {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 9px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
}

.community-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-comment-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.community-comment-action {
    border: 0;
    background: transparent;
    padding: 2px 4px;
}

.community-report-action {
    margin-left: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    padding: 6px 10px;
    color: #64748b;
}

.community-report-action i {
    margin-right: 4px;
}

.community-report-action:hover {
    border-color: #fdba74;
    background: #fff7ed;
    color: #c2410c;
}

.community-comment-form,
.community-reply-form {
    margin-top: 10px;
}

.community-comment-form textarea,
.community-reply-form textarea {
    min-height: 62px;
    resize: vertical;
}

.community-comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.community-comment-status {
    flex: 1 1 auto;
    color: #b45309;
    font-size: 12px;
}

.community-media-upload-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

.community-media-upload {
    display: flex;
    min-width: 0;
    min-height: 132px;
    flex-direction: column;
    gap: 7px;
    border: 1px dashed #fdba74;
    border-radius: 12px;
    background: rgba(255, 247, 237, .7);
    color: #64748b;
    cursor: pointer;
    padding: 10px;
}

.community-media-upload-label {
    display: block;
    overflow-wrap: anywhere;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
}

.community-media-upload-label i {
    margin-right: 5px;
}

.community-media-upload input {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    width: 100%;
    color: #64748b;
    font-size: 11px;
}

.community-media-upload-preview {
    width: 100%;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
}

.community-media-upload-preview.is-avatar {
    width: 56px;
}

.community-media-upload-empty,
.community-media-upload-help {
    font-size: 11px;
}

.community-media-upload-help {
    color: #94a3b8;
}

.community-management-panel {
    border-color: #fed7aa;
    background: linear-gradient(180deg, #fffaf5, #ffffff);
}

.community-management-section {
    border-top: 1px solid #ffedd5;
    padding-top: 16px;
}

.community-event-form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-event-card {
    border: 1px solid #fed7aa;
    border-radius: 14px;
    background: linear-gradient(135deg, #fffaf5, #ffffff);
    padding: 16px;
}

.community-event-group + .community-event-group {
    margin-top: 22px;
}

.community-event-group-title {
    margin-bottom: 10px;
    color: #334155;
    font-size: 14px;
    font-weight: 900;
}

.community-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.community-event-rsvp-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    border-top: 1px solid #ffedd5;
    padding-top: 12px;
}

.community-event-status {
    color: #047857;
    font-size: 11px;
    font-weight: 800;
}

.community-event-attendees {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .85);
    padding: 10px;
}

.community-event-attendee {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
}

.community-event-attendee:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.community-event-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.community-managed-event-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.community-managed-event-row {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.community-count-badge {
    display: inline-flex;
    min-width: 24px;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffedd5;
    color: #c2410c;
    font-size: 12px;
    font-weight: 800;
}

.community-member-row {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    background: rgba(255, 255, 255, .8);
    padding: 9px;
}

.community-member-avatar {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 9px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 13px;
}

.community-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-member-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.community-member-role {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.community-mini-button,
.community-text-button {
    border: 0;
    background: transparent;
    color: #c2410c;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.community-mini-button {
    border: 1px solid #fed7aa;
    border-radius: 7px;
    background: #fff7ed;
    padding: 5px 7px;
}

.community-mini-button:hover,
.community-text-button:hover {
    color: #9a3412;
}

.community-mini-button-muted {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #64748b;
}

.community-mini-button-danger,
.community-text-button-danger {
    color: #b91c1c;
}

.community-text-button {
    padding: 0;
}

.community-text-button:disabled,
.community-mini-button:disabled {
    cursor: wait;
    opacity: .55;
}

.community-stat {
    border-top: 1px solid #f1f5f9;
    color: #64748b;
    font-size: 12px;
    padding-top: 12px;
}

.community-stat strong {
    color: #1e293b;
    font-size: 14px;
}

.community-progress {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.community-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f97316, #fb923c);
}

.community-goal-history-item {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.community-goal-history-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.community-goal-status-badge {
    display: inline-flex;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 7px;
    white-space: nowrap;
}

.community-goal-status-badge.is-complete {
    background: #ecfdf5;
    color: #047857;
}

body.community-tools-open {
    overflow: hidden;
}

.community-tools-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
}

.community-tools-modal[hidden] {
    display: none;
}

.community-tools-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(3px);
}

.community-tools-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(980px, calc(100% - 28px));
    max-height: min(780px, calc(100vh - 28px));
    margin: 14px auto;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #fed7aa;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.community-tools-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #ffedd5;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    padding: 22px 24px;
}

.community-tools-kicker {
    color: #c2410c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.community-tools-header h2 {
    margin-top: 4px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 900;
}

.community-tools-header p:last-child {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.community-tools-close {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    background: #fff;
    color: #c2410c;
    cursor: pointer;
}

.community-tools-layout {
    display: grid;
    min-height: 0;
    grid-template-columns: 190px minmax(0, 1fr);
    flex: 1 1 auto;
}

.community-tools-nav {
    display: flex;
    gap: 8px;
    border-right: 1px solid #f1f5f9;
    background: #fffaf5;
    padding: 18px 12px;
    flex-direction: column;
}

.community-tools-nav button {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    padding: 0 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 800;
}

.community-tools-nav button:hover,
.community-tools-nav button.is-active {
    border-color: #fed7aa;
    background: #fff;
    color: #c2410c;
}

.community-tools-nav button i {
    width: 18px;
    text-align: center;
}

.community-tools-content {
    min-width: 0;
    overflow: auto;
    padding: 0 24px 24px;
}

.community-tools-content #community-management {
    min-width: 0;
}

.community-tools-section {
    min-width: 0;
}

.community-tools-section[hidden] {
    display: none;
}

.community-tools-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #ffedd5;
    padding: 22px 0 16px;
}

.community-tools-section-heading h3 {
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.community-tools-section-heading p {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.community-tools-section-heading > i {
    color: #f97316;
    font-size: 18px;
}

.community-tools-content .community-management-section:first-child {
    border-top: 0;
}

.community-invite-panel {
    border: 1px solid #fed7aa;
    border-radius: 14px;
    background: linear-gradient(135deg, #fffaf5, #ffffff);
    padding: 16px;
}

.community-invite-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.community-invite-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    background: rgba(255, 255, 255, .85);
    padding: 9px;
}

.community-invite-choice {
    display: inline-flex;
    min-width: 78px;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    color: #c2410c;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.community-invite-choice input {
    accent-color: #f97316;
}

.community-invite-status {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-align: right;
}

.community-invite-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

body.community-dialog-open {
    overflow: hidden;
}

.community-dialog {
    position: fixed;
    z-index: 120;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
}

.community-dialog[hidden] {
    display: none;
}

.community-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .56);
    backdrop-filter: blur(3px);
}

.community-dialog-card {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(520px, 100%);
    max-height: calc(100vh - 32px);
    gap: 14px;
    overflow: auto;
    border: 1px solid #fed7aa;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
    padding: 22px;
}

.community-dialog-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: #fff7ed;
    color: #ea580c;
    font-size: 18px;
}

.community-dialog-content {
    min-width: 0;
    flex: 1 1 auto;
}

.community-dialog-kicker {
    color: #c2410c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.community-dialog-content h2 {
    margin-top: 4px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
}

.community-dialog-message {
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.community-dialog-fields {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.community-dialog-field {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.community-dialog-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.community-dialog-actions button[hidden] {
    display: none;
}

.community-safety-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .community-tools-dialog {
        width: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .community-tools-layout {
        display: block;
    }

    .community-tools-nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        border-right: 0;
        border-bottom: 1px solid #f1f5f9;
        padding: 10px;
    }

    .community-event-form-grid {
        grid-template-columns: 1fr;
    }

    .community-event-form-actions,
    .community-managed-event-row {
        align-items: stretch;
        flex-direction: column;
    }

    .community-event-form-actions > div,
    .community-managed-event-row > div:last-child {
        width: 100%;
    }

    .community-event-form-actions button,
    .community-managed-event-row button {
        flex: 1 1 auto;
    }

    .community-tools-nav button {
        justify-content: center;
        padding: 0 6px;
        text-align: center;
    }

    .community-tools-nav button span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .community-report-action {
        margin-left: 0;
    }

    .community-tools-content {
        max-height: calc(100vh - 176px);
        padding: 0 16px 20px;
    }

    .community-invite-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .community-dialog-card {
        border-radius: 14px;
        padding: 18px;
    }

    .community-dialog-actions button {
        flex: 1 1 130px;
    }
}

@media (max-width: 768px) {
    .topbar { height: 64px; }
    .shell { width: calc(100% - 20px); }
    .community-hero { border-radius: 14px; }
    .community-card { min-height: 0; }
    .community-reaction-summary { align-items: flex-start; flex-direction: column; }
    .community-journey-nav {
        top: 4.65rem;
        width: calc(100% - 12px);
        margin-top: 14px;
        border-radius: 14px;
    }
}
