/** Saved community feed. Keep these styles scoped to the shared UI. */
.na-community-feed-preview {
    --na-feed-surface: #fff;
    --na-feed-text: #2e243a;
    --na-feed-muted: #826f94;
    --na-feed-border: #e7e1ee;
    --na-feed-soft: #f8f5fb;
    --na-feed-purple: #66408b;
    width: 100%;
    min-width: 0;
    margin-top: 10px;
    color: var(--na-feed-text);
    text-align: start;
}

.na-community-feed-preview button {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font: inherit;
    text-align: start;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
    appearance: none;
    opacity: 1;
}

.na-community-feed-preview button:disabled {
    cursor: default;
    -webkit-text-fill-color: currentColor;
}

.na-community-feed-preview .na-community-feed-composer:not(:disabled) { cursor: pointer; }
.na-community-feed-preview .na-community-feed-composer:not(:disabled):hover { border-color: #b491c9; }
.na-community-feed-composer:focus-visible { outline: 2px solid #9365af; outline-offset: 3px; }

.na-community-feed-preview svg {
    display: block;
    flex-shrink: 0;
}

.na-community-feed-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 10px;
}

.na-community-feed-heading h2 {
    margin: 0;
    color: var(--na-feed-text);
    font-size: 17px;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: -0.3px;
    text-transform: none;
}

.na-community-feed-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--na-feed-muted);
    font-size: 8px;
    line-height: 1.5;
}

.na-community-feed-status > span {
    width: 5px;
    height: 5px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #58946d;
}

.na-community-feed-tabs {
    display: flex;
    align-items: stretch;
    gap: 24px;
    border-bottom: 1px solid var(--na-feed-border);
}

.na-community-feed-tabs .na-community-feed-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 7px 2px 9px;
    border-bottom: 2px solid transparent;
    color: #776c82;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.na-community-feed-tabs .na-community-feed-tab.is-active {
    border-bottom-color: var(--na-feed-purple);
    color: var(--na-feed-purple);
}

.na-community-feed-content {
    display: grid;
    gap: 14px;
    padding-top: 18px;
}

.na-community-feed-posts { display: grid; gap: 14px; min-width: 0; }
.na-community-feed-avatar-image { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.na-community-feed-post.is-new { border-color: var(--na-feed-purple); box-shadow: 0 0 0 2px var(--na-feed-border); }
.na-community-feed-post:focus-visible { outline: 2px solid var(--na-feed-purple); outline-offset: 3px; }
.na-community-feed-post h3 a { color: inherit; font: inherit; text-decoration: none; }
.na-community-feed-post h3 a:hover { text-decoration: underline; }
.na-community-feed-message, .na-community-feed-empty { margin: 0; padding: 12px; border: 1px solid var(--na-feed-border); border-radius: 10px; background: var(--na-feed-soft); color: var(--na-feed-purple); font-size: 12px; line-height: 1.6; }
.na-community-feed-view-all { justify-self: end; color: var(--na-feed-purple); font-size: 12px; text-decoration: none; }
.na-community-feed-view-all:hover { text-decoration: underline; }

.na-community-feed-content .na-community-feed-composer {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 54px;
    padding: 12px;
    border: 1px solid var(--na-feed-border);
    border-radius: 10px;
    background: var(--na-feed-surface);
    color: var(--na-feed-muted);
    font-size: 11px;
}


.na-community-feed-avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.na-community-feed-avatar--composer {
    width: 28px;
    height: 28px;
    background: #fff0ae;
    color: #8c650e;
}

.na-community-feed-composer-prompt {
    font-size: 11px;
    font-weight: 400;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.na-community-feed-composer > svg {
    color: #a58eb9;
}

.na-community-feed-post {
    min-width: 0;
    padding: 16px 15px 8px;
    border: 1px solid var(--na-feed-border);
    border-radius: 12px;
    background: var(--na-feed-surface);
    overflow-wrap: anywhere;
}

.na-community-feed-post-header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.na-community-feed-avatar--author {
    width: 33px;
    height: 33px;
    background: #f9e1ee;
    color: #c34787;
}

.na-community-feed-author {
    min-width: 0;
}

.na-community-feed-author strong {
    display: block;
    color: var(--na-feed-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.na-community-feed-author p {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 2px 0 0;
    color: var(--na-feed-muted);
    font-size: 9px;
    line-height: 1.5;
}

.na-community-feed-post-header .na-community-feed-more {
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin-inline-start: auto;
    margin-inline-end: -7px;
    color: #a58eb9;
}

.na-community-feed-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 4px;
    background: #f4edf9;
    color: var(--na-feed-muted);
    font-size: 9px;
    font-weight: 600;
    line-height: 1.5;
}

.na-community-feed-post h3 {
    margin: 12px 0 8px;
    color: var(--na-feed-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.1px;
    text-transform: none;
}

.na-community-feed-post-body {
    margin: 0;
    color: var(--na-feed-muted);
    font-size: 13px;
    line-height: 1.85;
    white-space: pre-line;
}

.na-community-feed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.na-community-feed-tags > span {
    padding: 3px 6px;
    border: 1px solid #f1edf6;
    border-radius: 4px;
    background: var(--na-feed-soft);
    color: var(--na-feed-muted);
    font-size: 9px;
    line-height: 1.5;
}

.na-community-feed-post-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 13px;
    padding-top: 8px;
    border-top: 1px solid var(--na-feed-border);
}

.na-community-feed-post-footer button,
.na-community-feed-post-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 36px;
    color: var(--na-feed-muted);
    font-size: 10px;
    line-height: 1.4;
    text-decoration: none;
}

.na-community-feed-post-footer .na-community-feed-view-post { margin-inline-start: auto; color: var(--na-feed-purple); }
.na-community-feed-post-footer a:hover { text-decoration: underline; }

.na-community-feed-post-footer .is-liked {
    color: #d64e8d;
}


.na-community-home-container > .na-community-feed-preview {
    margin-top: 0;
    margin-bottom: 32px;
}

html[data-na-theme="dark"] .na-community-feed-preview {
    --na-feed-surface: #202b39;
    --na-feed-text: #eef2f7;
    --na-feed-muted: #b5adbf;
    --na-feed-border: #384052;
    --na-feed-soft: #283241;
    --na-feed-purple: #d4b1ef;
}

html[data-na-theme="dark"] .na-community-feed-tab:not(.is-active) {
    color: var(--na-feed-muted);
}

html[data-na-theme="dark"] .na-community-feed-category {
    background: #40314f;
    color: #d4b1ef;
}

html[data-na-theme="dark"] .na-community-feed-tags > span {
    border-color: var(--na-feed-border);
}
