.community-picks {
    max-width: 1000px;
    padding-bottom: 56px;
}

.community-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 5vw, 42px);
    margin: 20px 0 16px;
    border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border));
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% 14%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 34%),
        var(--card);
    box-shadow: var(--shadow-sm);
    animation: community-enter .5s cubic-bezier(.2, .75, .3, 1) both;
}

.community-hero::after {
    position: absolute;
    z-index: -1;
    top: -100px;
    right: 3%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary) 18%, transparent), transparent 68%);
    content: "";
    pointer-events: none;
    animation: community-glow 8s ease-in-out infinite alternate;
}

.community-hero-copy { max-width: 660px; }
.community-eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.community-icon { display: inline-block; flex: 0 0 auto; width: 18px; height: 18px; vertical-align: middle; }
.community-eyebrow .community-icon { width: 16px; height: 16px; }
.community-hero h1 { margin: 10px 0; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.05em; }
.community-hero p { max-width: 600px; margin: 0 0 16px; color: var(--text-sub); line-height: 1.65; }
.community-hero-note { display: flex; align-items: center; gap: 8px; color: var(--text-sub); font-size: .82rem; }
.community-hero-note .community-icon { width: 17px; height: 17px; color: var(--primary); }

.community-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: .88rem;
    font-weight: 720;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.community-button:hover { transform: translateY(-2px); box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 15%, transparent); }
.community-button:focus-visible, .community-close:focus-visible, .community-link:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 40%, transparent);
    outline-offset: 3px;
}
.community-button-primary { flex: 0 0 auto; background: var(--primary); color: #fff; }
.community-hero > .community-button[hidden], .community-load-more[hidden], .community-comments > .community-button[hidden] { display: none; }
.community-button-primary:hover { background: var(--primary-hover); }
.community-button-secondary { border-color: var(--border); background: var(--card); color: var(--text-main); }
.community-button-secondary:hover { border-color: var(--primary); }
.community-button .community-icon { transition: transform .18s ease; }
.community-button:hover .community-icon { transform: scale(1.08); }
.community-button:disabled { opacity: .65; cursor: wait; transform: none; box-shadow: none; }

.community-auth-notice, .community-message {
    margin: 0 0 14px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
}
.community-auth-notice:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 16px; animation: community-enter .25s ease both; }
.community-auth-notice > div { display: grid; gap: 4px; }
.community-auth-notice span { color: var(--text-sub); font-size: .86rem; }
.community-message { display: none; }
.community-message.show { display: block; animation: community-enter .22s ease both; }
.community-message.error { border-color: color-mix(in srgb, #b3261e 35%, var(--border)); color: #b3261e; }
.community-message.success { border-color: color-mix(in srgb, #188038 35%, var(--border)); color: #188038; }

.community-feed-shell {
    padding: clamp(16px, 3vw, 25px);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
    animation: community-enter .45s 80ms cubic-bezier(.2, .75, .3, 1) both;
}
.community-feed-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.community-feed-heading h2 { margin: 5px 0 0; font-size: 1.35rem; letter-spacing: -.025em; }
.community-filter { position: relative; display: flex; align-items: center; }
.community-filter > .community-icon { position: absolute; left: 11px; color: var(--text-sub); pointer-events: none; }
.community-filter select {
    min-height: 40px;
    padding: 8px 12px 8px 37px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text-main);
    font: inherit;
    font-size: .86rem;
}
.community-filter select:focus, .community-field input:focus, .community-field textarea:focus, .community-field select:focus {
    outline: 2px solid color-mix(in srgb, var(--primary) 35%, transparent);
    border-color: var(--primary);
}

.community-feed { display: grid; gap: 12px; }
.community-pick {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    animation: community-card-in .34s cubic-bezier(.2, .75, .3, 1) both;
    animation-delay: calc(var(--card-order, 0) * 45ms);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.community-pick:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 34%, var(--border)); box-shadow: var(--shadow-sm); }
.community-pick-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.community-author { display: flex; align-items: center; gap: 9px; min-width: 0; }
.community-avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border));
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
    color: var(--primary);
    font-size: .82rem;
    font-weight: 800;
}
.community-author-details { display: grid; min-width: 0; gap: 2px; }
.community-author-link { overflow: hidden; color: var(--text-main); font-size: .85rem; font-weight: 750; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.community-author-link:hover { color: var(--primary); }
.community-author-handle, .community-date { color: var(--text-sub); font-size: .74rem; }
.community-category { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 9%, var(--surface)); color: var(--primary); font-size: .72rem; font-weight: 750; }
.community-pick h3 { margin: 14px 0 6px; font-size: 1.1rem; line-height: 1.35; overflow-wrap: anywhere; }
.community-pick-body { margin: 0; color: var(--text-sub); font-size: .92rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.community-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    margin-top: 12px;
    padding: 8px 11px;
    border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
    border-radius: 9px;
    background: color-mix(in srgb, var(--primary) 5%, var(--surface));
    color: var(--primary);
    font-size: .82rem;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-decoration: none;
}
.community-link:hover { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.community-link .community-icon { width: 15px; height: 15px; }
.community-post-preview {
    display: grid;
    gap: 5px;
    padding: 12px 13px;
    margin-top: 12px;
    border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
    border-radius: 11px;
    background: color-mix(in srgb, var(--primary) 5%, var(--surface));
}
.community-post-preview-label { display: flex; align-items: center; gap: 5px; color: var(--primary); font-size: .69rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.community-post-preview-label .community-icon { width: 14px; height: 14px; }
.community-post-preview strong { color: var(--text-main); font-size: .86rem; }
.community-post-preview p { margin: 0; color: var(--text-sub); font-size: .8rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.community-post-author, .community-post-missing { color: var(--text-sub); font-size: .75rem; }
.community-post-open { display: inline-flex; align-items: center; gap: 5px; width: fit-content; margin-top: 2px; color: var(--primary); font-size: .78rem; font-weight: 750; text-decoration: none; }
.community-post-open:hover { text-decoration: underline; }
.community-post-open .community-icon { width: 14px; height: 14px; }
.community-pick-actions { display: flex; align-items: center; gap: 8px; padding-top: 14px; margin-top: 15px; border-top: 1px solid var(--border); }
.community-reaction, .community-comments-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 35px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text-sub);
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, color .15s ease, border-color .15s ease, background .15s ease;
}
.community-reaction:hover, .community-comments-toggle:hover { transform: translateY(-1px); border-color: var(--primary); color: var(--primary); }
.community-reaction[aria-pressed="true"] { border-color: color-mix(in srgb, #e84b69 35%, var(--border)); background: color-mix(in srgb, #e84b69 9%, var(--surface)); color: #d43b5a; }
.community-reaction .community-icon, .community-comments-toggle .community-icon { width: 16px; height: 16px; }
.community-reaction[aria-pressed="true"] .community-icon { animation: community-heart .3s ease both; }
.community-delete {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 5px 8px;
    margin-left: auto;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #b3261e;
    font: inherit;
    font-size: .78rem;
    cursor: pointer;
}
.community-delete:hover { background: color-mix(in srgb, #b3261e 8%, var(--surface)); }
.community-delete .community-icon { width: 15px; height: 15px; }

.community-comments { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border); animation: community-enter .2s ease both; }
.community-comments[hidden] { display: none; }
.community-comments-list { display: grid; gap: 10px; }
.community-comment { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 8px; }
.community-comment .community-avatar { width: 28px; height: 28px; font-size: .68rem; }
.community-comment-content { min-width: 0; padding: 9px 11px; border-radius: 10px; background: var(--surface); }
.community-comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; margin-bottom: 4px; }
.community-comment-head .community-author-link { font-size: .77rem; }
.community-comment-head time { color: var(--text-sub); font-size: .69rem; }
.community-comment-content p { margin: 0; color: var(--text-main); font-size: .82rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.community-comment-delete { padding: 2px 5px; border: 0; background: transparent; color: #b3261e; font: inherit; font-size: .7rem; cursor: pointer; }
.community-comment-delete:hover { text-decoration: underline; }
.community-comment-form { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; }
.community-comment-form textarea {
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
    min-height: 42px;
    max-height: 120px;
    resize: vertical;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text-main);
    font: inherit;
    font-size: .84rem;
}
.community-comment-form .community-button { min-height: 40px; padding: 8px 11px; }
.community-comments-login { margin: 10px 0 0; color: var(--text-sub); font-size: .8rem; }
.community-comments-login a { color: var(--primary); font-weight: 700; }
.community-load-more { display: flex; margin: 16px auto 0; }
.community-loading, .community-empty, .community-error { padding: 34px 18px; color: var(--text-sub); text-align: center; }
.community-empty { display: grid; justify-items: center; gap: 8px; border: 1px dashed var(--border); border-radius: 13px; animation: community-enter .3s ease both; }
.community-empty .community-icon { width: 34px; height: 34px; color: var(--primary); }
.community-empty strong { color: var(--text-main); }
.community-empty p { max-width: 430px; margin: 0; font-size: .88rem; line-height: 1.5; }
.community-error { color: #b3261e; }
.community-spinner { display: inline-block; width: 17px; height: 17px; margin-right: 7px; border: 2px solid color-mix(in srgb, var(--primary) 20%, transparent); border-top-color: var(--primary); border-radius: 50%; vertical-align: -4px; animation: community-spin .7s linear infinite; }

.community-dialog { width: min(560px, calc(100vw - 28px)); max-height: min(90vh, 800px); padding: 0; border: 1px solid var(--border); border-radius: 18px; background: var(--card); color: var(--text-main); box-shadow: 0 18px 60px rgba(0,0,0,.24); }
.community-dialog[open] { animation: community-dialog-in .23s cubic-bezier(.2, .75, .3, 1) both; }
.community-dialog::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); }
.community-dialog[open]::backdrop { animation: community-backdrop-in .2s ease both; }
.community-dialog form { display: grid; gap: 14px; max-height: min(90vh, 800px); overflow-y: auto; padding: clamp(20px, 5vw, 28px); }
.community-dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.community-dialog-heading h2 { margin: 5px 0 0; font-size: 1.35rem; letter-spacing: -.03em; }
.community-close { display: grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text-main); cursor: pointer; }
.community-close:hover { border-color: var(--primary); color: var(--primary); }
.community-public-notice { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 11px; border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border)); border-radius: 9px; background: color-mix(in srgb, var(--primary) 5%, var(--surface)); color: var(--text-sub); font-size: .8rem; }
.community-public-notice .community-icon { color: var(--primary); }
.community-field { display: grid; gap: 6px; min-width: 0; }
.community-field > span { font-size: .85rem; font-weight: 750; }
.community-field > span small, .community-field > small { color: var(--text-sub); font-size: .75rem; font-weight: 400; }
.community-field input, .community-field textarea, .community-field select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text-main);
    font: inherit;
    font-size: .88rem;
}
.community-field textarea { resize: vertical; }
.community-selected-post {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text-sub);
    font-size: .82rem;
    animation: community-enter .2s ease both;
}
.community-selected-post[hidden] { display: none; }
.community-selected-post strong { color: var(--text-main); }
.community-selected-post span { font-size: .76rem; }
.community-selected-post button { justify-self: start; margin-top: 4px; padding: 5px 8px; font-size: .75rem; }
.community-post-browser { width: min(720px, calc(100vw - 28px)); }
.community-dialog-content { display: grid; gap: 13px; max-height: min(90vh, 800px); overflow-y: auto; padding: clamp(20px, 5vw, 28px); }
.community-post-browser-status { min-height: 1.2em; margin: 0; color: var(--text-sub); font-size: .82rem; }
.community-post-browser-list { display: grid; gap: 9px; }
.community-post-browser-item { padding: 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); animation: community-card-in .28s ease both; }
.community-post-browser-item h3 { display: flex; align-items: flex-start; gap: 7px; margin: 0; font-size: .95rem; overflow-wrap: anywhere; }
.community-post-browser-item h3 .community-icon { margin-top: 1px; color: var(--primary); }
.community-post-browser-item p { margin: 6px 0 10px; color: var(--text-sub); font-size: .82rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.community-post-browser-meta { margin-top: 3px; color: var(--text-sub); font-size: .74rem; }
.community-post-browser-item .community-button { min-height: 36px; padding: 7px 11px; }
.community-post-load-more[hidden] { display: none; }
.community-form-error { min-height: 1em; margin: 0; color: #b3261e; font-size: .82rem; }
.community-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes community-enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes community-card-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes community-dialog-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes community-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes community-spin { to { transform: rotate(360deg); } }
@keyframes community-glow { from { transform: translate3d(0, 0, 0) scale(.9); opacity: .65; } to { transform: translate3d(-12px, 16px, 0) scale(1.12); opacity: 1; } }
@keyframes community-heart { 50% { transform: scale(1.25); } }

@media (max-width: 680px) {
    .community-hero { align-items: flex-start; flex-direction: column; }
    .community-feed-heading { align-items: flex-start; flex-direction: column; }
    .community-filter, .community-filter select { width: 100%; }
    .community-pick { padding: 15px; }
    .community-auth-notice:not([hidden]) { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) {
    .community-pick-head { gap: 7px; }
    .community-category { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .community-comment-form { align-items: stretch; flex-direction: column; }
    .community-comment-form .community-button { align-self: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
