@charset "UTF-8";

/*
 * 706 AI Community Home
 * A content-first visual system inspired by mature design communities.
 */

:root {
    --community-bg: #f4f4f4;
    --community-surface: #ffffff;
    --community-surface-soft: #fafafa;
    --community-surface-muted: #f0f0f0;
    --community-cover-bg: #edf0f3;
    --community-text: #4a4a4a;
    --community-text-strong: #222222;
    --community-text-soft: #737373;
    --community-text-faint: #858585;
    --community-text-placeholder: #a8a8a8;
    --community-warm-accent: #ff5a45;
    --community-warm-accent-hover: #eb4f3b;
    --community-warm-accent-soft: #fff0ed;
    --community-line: #e8e8e8;
    --community-line-strong: #d8d8d8;
    --community-yellow: #4f46e5;
    --community-yellow-hover: #4338ca;
    --community-yellow-soft: #eef2ff;
    --community-accent-ink: #ffffff;
    --community-black: #111111;
    --community-black-hover: #2b2b2b;
    --community-danger: #e44848;
    --community-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --community-shadow-sm: 0 7px 22px rgba(0, 0, 0, 0.08);
    --community-shadow-md: 0 16px 38px rgba(0, 0, 0, 0.13);
    --community-header-height: 64px;
    --community-sidebar-width: 208px;
    --community-container: 100%;
    --community-radius-xs: 6px;
    --community-radius-sm: 8px;
    --community-radius-md: 10px;
    --community-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --community-bg: #111318;
    --community-surface: #191c23;
    --community-surface-soft: #22262f;
    --community-surface-muted: #2a2f39;
    --community-cover-bg: #171a20;
    --community-text: #e8eaf0;
    --community-text-strong: #ffffff;
    --community-text-soft: #c3c8d2;
    --community-text-faint: #a3aab7;
    --community-text-placeholder: #969eac;
    --community-warm-accent: #ff816f;
    --community-warm-accent-hover: #ff9b8d;
    --community-warm-accent-soft: rgba(255, 129, 111, 0.16);
    --community-line: #353a45;
    --community-line-strong: #4a5160;
    --community-yellow: #818cf8;
    --community-yellow-hover: #a5b4fc;
    --community-yellow-soft: rgba(129, 140, 248, 0.19);
    --community-black: #818cf8;
    --community-black-hover: #a5b4fc;
    --community-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.28);
    --community-shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.34);
    --community-shadow-md: 0 20px 46px rgba(0, 0, 0, 0.46);
}

.community-home-body,
.community-home-body *,
.community-home-body *::before,
.community-home-body *::after {
    box-sizing: border-box;
}

body.community-home-body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--community-bg);
    color: var(--community-text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.community-home-body a {
    color: inherit;
    text-decoration: none;
}

.community-home-body button,
.community-home-body input,
.community-home-body select,
.community-home-body textarea {
    margin: 0;
    color: inherit;
    font: inherit;
}

.community-home-body button,
.community-home-body [role="button"] {
    -webkit-tap-highlight-color: transparent;
}

.community-home-body img,
.community-home-body video,
.community-home-body svg {
    display: block;
    max-width: 100%;
}

.community-home-body .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.community-home-body :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid #111111;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--community-yellow);
}

.community-shell {
    min-height: 100vh;
}

/* Desktop community rail */
.community-sidebar {
    position: fixed;
    z-index: 1100;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--community-sidebar-width);
    min-height: 100vh;
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid var(--community-line);
    background: var(--community-surface);
    padding: 18px 14px 16px;
}

.community-side-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    margin: 0 4px 20px;
}

.community-side-brand-copy {
    display: grid;
    min-width: 0;
    line-height: 1.1;
}

.community-side-brand-copy strong {
    overflow: hidden;
    color: var(--community-text-strong);
    font-size: 17px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-side-brand-copy small {
    margin-top: 5px;
    color: var(--community-text-faint);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.community-publish-button {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 24px;
    border-radius: 8px;
    background: var(--community-yellow);
    color: var(--community-accent-ink);
    font-size: 13px;
    font-weight: 850;
    transition: background-color 160ms ease, transform 160ms ease;
}

.community-publish-button:hover {
    background: var(--community-yellow-hover);
    transform: translateY(-1px);
}

.community-publish-button > span {
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
}

.community-side-group {
    display: grid;
    gap: 4px;
    margin-bottom: 22px;
}

.community-side-label {
    margin: 0 12px 7px;
    color: var(--community-text-faint);
    font-size: 10px;
    font-weight: 750;
}

.community-side-link,
.community-side-theme {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    padding: 0 11px;
    color: var(--community-text-soft);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease;
}

.community-side-link:hover,
.community-side-link.is-active,
.community-side-theme:hover {
    background: var(--community-surface-muted);
    color: var(--community-text-strong);
}

.community-side-link.is-active {
    box-shadow: inset 3px 0 0 var(--community-yellow);
}

.community-side-icon {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    color: currentColor;
    font-size: 12px;
    font-style: normal;
}

.community-side-bottom {
    display: grid;
    gap: 4px;
    margin-top: auto;
    border-top: 1px solid var(--community-line);
    padding-top: 12px;
}

/* Restored Home V3 sidebar */
.community-sidebar {
    overflow-x: hidden;
    padding: 24px 16px 18px;
    background: color-mix(in srgb, var(--community-surface) 94%, transparent);
    box-shadow: 8px 0 34px rgba(31, 26, 72, 0.035);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.community-side-brand {
    gap: 11px;
    margin: 0 2px 25px;
    padding: 5px 4px;
}

.community-side-brand .community-brand-mark {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 13px;
    background: linear-gradient(145deg, #8c7cf4 0%, #6553d9 48%, #22c7d6 135%);
    box-shadow: 0 10px 23px rgba(79, 70, 229, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.38);
    color: #ffffff;
    font-size: 11px;
    letter-spacing: -0.055em;
}

.community-side-brand .community-brand-mark::before {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 9px;
    content: "";
    transform: rotate(16deg);
}

.community-side-brand-copy strong {
    font-size: 16px;
    font-weight: 850;
    letter-spacing: -0.025em;
}

.community-side-brand-copy small {
    margin-top: 5px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.community-publish-button {
    min-height: 48px;
    gap: 9px;
    margin-bottom: 27px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    background: linear-gradient(135deg, #6553d9, #4f46e5 64%, #5d54e9);
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.24);
}

.community-publish-button:hover {
    background: linear-gradient(135deg, #5b4bd2, #4338ca 70%, #5046d8);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.3);
}

.community-publish-button > span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.13);
    font-size: 17px;
}

.community-side-group {
    gap: 5px;
    margin-bottom: 23px;
}

.community-side-label {
    margin: 0 10px 7px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.community-side-link,
.community-side-theme {
    position: relative;
    min-height: 44px;
    gap: 11px;
    border: 1px solid transparent;
    border-radius: 13px;
    padding: 0 11px;
    font-size: 13px;
    font-weight: 720;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms var(--community-ease);
}

.community-side-link:hover,
.community-side-theme:hover {
    border-color: color-mix(in srgb, var(--community-yellow) 12%, var(--community-line));
    background: var(--community-surface-soft);
    color: var(--community-text-strong);
    transform: translateX(2px);
}

.community-side-link.is-active {
    border-color: color-mix(in srgb, var(--community-yellow) 18%, transparent);
    background: linear-gradient(105deg, var(--community-yellow-soft), color-mix(in srgb, #dff9fc 58%, transparent));
    color: var(--community-yellow);
    box-shadow: inset 3px 0 0 var(--community-yellow);
}

html[data-theme="dark"] .community-side-link.is-active {
    background: linear-gradient(105deg, var(--community-yellow-soft), rgba(34, 199, 214, 0.08));
}

.community-side-link.is-active::after {
    position: absolute;
    right: 13px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22c7d6;
    box-shadow: 0 0 0 4px rgba(34, 199, 214, 0.13);
    content: "";
}

.community-side-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 1px solid var(--community-line);
    border-radius: 9px;
    background: var(--community-surface-soft);
    font-size: 11px;
    font-weight: 850;
}

.community-side-link.is-active .community-side-icon {
    border-color: rgba(79, 70, 229, 0.14);
    background: var(--community-yellow);
    color: #ffffff;
    box-shadow: 0 7px 16px rgba(79, 70, 229, 0.2);
}

.community-side-promo {
    position: relative;
    isolation: isolate;
    display: block;
    overflow: hidden;
    margin: auto 0 16px;
    border: 1px solid color-mix(in srgb, var(--community-yellow) 16%, var(--community-line));
    border-radius: 18px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--community-yellow-soft) 88%, var(--community-surface)), var(--community-surface) 78%);
    padding: 16px 14px;
    box-shadow: var(--community-shadow-xs);
}

.community-side-promo::after {
    position: absolute;
    z-index: -1;
    top: -38px;
    right: -30px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 199, 214, 0.2), transparent 68%);
    content: "";
}

.community-side-promo > span {
    display: inline-flex;
    min-height: 21px;
    align-items: center;
    margin-bottom: 9px;
    border: 1px solid rgba(79, 70, 229, 0.16);
    border-radius: 999px;
    background: var(--community-yellow-soft);
    padding: 0 7px;
    color: var(--community-yellow);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.community-side-promo strong {
    display: block;
    margin-bottom: 5px;
    color: var(--community-text-strong);
    font-size: 13px;
    font-weight: 850;
}

.community-side-promo small {
    display: block;
    max-width: 145px;
    color: var(--community-text-soft);
    font-size: 10px;
    line-height: 1.55;
}

.community-side-promo > i {
    position: absolute;
    right: 13px;
    bottom: 13px;
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 9px;
    background: var(--community-yellow);
    color: #ffffff;
    font-size: 12px;
    font-style: normal;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.2);
    transition: transform 180ms var(--community-ease);
}

.community-side-promo:hover > i {
    transform: translateX(2px);
}

.community-side-bottom {
    gap: 5px;
    margin-top: 0;
    padding-top: 13px;
}

/* Sidebar V4: compact creative studio navigation */
.community-sidebar {
    isolation: isolate;
    border-right-color: rgba(79, 70, 229, 0.1);
    background:
        radial-gradient(circle at 8% 2%, rgba(99, 102, 241, 0.11), transparent 180px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 255, 0.96));
    box-shadow: 12px 0 40px rgba(45, 40, 105, 0.055);
}

html[data-theme="dark"] .community-sidebar {
    background:
        radial-gradient(circle at 8% 2%, rgba(99, 102, 241, 0.16), transparent 180px),
        linear-gradient(180deg, rgba(31, 31, 42, 0.98), rgba(25, 25, 34, 0.98));
}

.community-sidebar::before {
    position: absolute;
    z-index: -1;
    top: -80px;
    right: -95px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 199, 214, 0.14), transparent 68%);
    content: "";
    pointer-events: none;
}

.community-side-brand {
    margin-bottom: 22px;
}

.community-side-brand .community-brand-mark {
    background: linear-gradient(145deg, #818cf8 0%, #4f46e5 52%, #22c7d6 145%);
    box-shadow: 0 11px 25px rgba(79, 70, 229, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.community-publish-button {
    min-height: 46px;
    margin-bottom: 25px;
    border-radius: 14px;
    background: linear-gradient(105deg, #4f46e5 0%, #6959ed 56%, #5c62ed 100%);
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.25);
}

.community-publish-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.community-side-label {
    color: #8a90a0;
    letter-spacing: 0.08em;
}

html[data-theme="dark"] .community-side-label {
    color: #969caf;
}

.community-side-link,
.community-side-theme {
    min-height: 46px;
    border-radius: 12px;
    color: #4f5563;
    font-weight: 760;
}

html[data-theme="dark"] .community-side-link,
html[data-theme="dark"] .community-side-theme {
    color: #bcc1cf;
}

.community-side-link:hover,
.community-side-theme:hover {
    border-color: rgba(79, 70, 229, 0.1);
    background: rgba(79, 70, 229, 0.055);
    color: #302a7a;
    transform: translateX(2px);
}

html[data-theme="dark"] .community-side-link:hover,
html[data-theme="dark"] .community-side-theme:hover {
    background: rgba(99, 102, 241, 0.12);
    color: #ffffff;
}

.community-side-link.is-active {
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(105deg, #4f46e5 0%, #6557e8 62%, #6267ed 100%);
    color: #ffffff;
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .community-side-link.is-active {
    background: linear-gradient(105deg, #5b5ee9 0%, #7468ee 62%, #6673ef 100%);
}

.community-side-link.is-active::after {
    right: 14px;
    width: 6px;
    height: 6px;
    background: #a5f3fc;
    box-shadow: 0 0 0 4px rgba(165, 243, 252, 0.15);
}

.community-side-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-color: rgba(31, 38, 68, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.74);
    color: #596071;
    box-shadow: 0 3px 10px rgba(31, 38, 68, 0.035);
}

html[data-theme="dark"] .community-side-icon {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.045);
    color: #c5cad8;
}

.community-side-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.community-side-link.is-active .community-side-icon {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    box-shadow: none;
}

.community-side-promo {
    border-color: rgba(113, 104, 226, 0.2);
    border-radius: 17px;
    background:
        radial-gradient(circle at 88% 12%, rgba(34, 199, 214, 0.2), transparent 90px),
        linear-gradient(145deg, #22203f 0%, #30275b 58%, #363071 100%);
    box-shadow: 0 16px 34px rgba(34, 30, 78, 0.16);
}

.community-side-promo::after {
    background: radial-gradient(circle, rgba(129, 140, 248, 0.38), transparent 68%);
}

.community-side-promo > span {
    border-color: rgba(199, 210, 254, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #c7d2fe;
}

.community-side-promo strong {
    color: #ffffff;
}

.community-side-promo small {
    color: #c8c6dd;
}

.community-side-promo > i {
    background: linear-gradient(135deg, #7165ec, #4f46e5);
    box-shadow: 0 9px 20px rgba(17, 16, 48, 0.28);
}

.community-side-bottom {
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: center;
    border-top-color: rgba(79, 70, 229, 0.1);
}

.community-side-bottom .community-side-link {
    min-width: 0;
}

.community-side-bottom .community-side-theme {
    width: 46px;
    padding: 0;
    justify-content: center;
}

.community-side-bottom .community-side-theme > span {
    display: none;
}

/* Sidebar V5: compact dock with no duplicated navigation chrome */
.community-sidebar {
    align-items: center;
    padding: 14px 10px 12px;
    background:
        radial-gradient(circle at 50% -30px, rgba(99, 102, 241, 0.13), transparent 120px),
        color-mix(in srgb, var(--community-surface) 97%, transparent);
    box-shadow: 8px 0 28px rgba(31, 38, 68, 0.045);
}

.community-sidebar::before {
    top: -66px;
    right: -65px;
    width: 150px;
    height: 150px;
    opacity: 0.7;
}

.community-side-brand {
    width: 100%;
    justify-content: center;
    margin: 0 0 16px;
    padding: 0;
}

.community-side-brand-copy,
.community-side-label {
    display: none;
}

.community-side-brand .community-brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 14px;
    font-size: 11px;
}

.community-publish-button {
    width: 64px;
    min-height: 58px;
    flex-direction: column;
    gap: 3px;
    margin: 0 0 20px;
    padding: 5px 3px;
    border-radius: 16px;
}

.community-publish-button > span {
    width: 27px;
    height: 27px;
    border: 0;
    background: rgba(255, 255, 255, 0.14);
}

.community-publish-button strong {
    font-size: 10px;
    font-weight: 800;
}

.community-side-group {
    width: 100%;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.community-side-link,
.community-side-theme {
    width: 64px;
    min-height: 56px;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 5px 2px;
    border-color: transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--community-text-soft);
    font-size: 10px;
    text-align: center;
}

.community-side-link > span,
.community-side-theme > span {
    display: block;
    width: 100%;
    overflow: hidden;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-side-link:hover,
.community-side-theme:hover {
    border-color: rgba(79, 70, 229, 0.08);
    background: rgba(79, 70, 229, 0.065);
    color: var(--community-yellow);
    transform: translateY(-1px);
}

.community-side-link.is-active {
    border-color: transparent;
    background: linear-gradient(145deg, #5f54e8, #4f46e5 64%, #6366f1);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.community-side-link.is-active::after {
    display: none;
}

.community-side-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: currentColor;
    box-shadow: none;
}

.community-side-icon svg {
    width: 19px;
    height: 19px;
}

.community-side-link.is-active .community-side-icon {
    border: 0;
    background: transparent;
    color: #ffffff;
    box-shadow: none;
}

.community-side-bottom {
    width: 100%;
    grid-template-columns: repeat(2, 34px);
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
}

.community-side-bottom .community-side-link,
.community-side-bottom .community-side-theme {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border: 1px solid var(--community-line);
    border-radius: 10px;
    background: var(--community-surface-soft);
}

.community-side-bottom .community-side-link > span,
.community-side-bottom .community-side-theme > span {
    display: none;
}

.community-side-bottom .community-side-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
}

.community-side-bottom .community-side-icon svg {
    width: 16px;
    height: 16px;
}

/* Sidebar V6: restored prompt-library workspace */
.community-sidebar {
    align-items: stretch;
    padding: 20px 16px 16px;
    background:
        radial-gradient(circle at 18% -4%, rgba(79, 70, 229, 0.09), transparent 190px),
        color-mix(in srgb, var(--community-surface) 98%, transparent);
}

.community-side-brand {
    justify-content: flex-start;
    margin: 0 2px 18px;
    padding: 3px 2px;
}

.community-side-brand-copy {
    display: grid;
}

.community-side-brand .community-brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 12px;
}

.community-publish-button {
    width: 100%;
    min-height: 46px;
    flex-direction: row;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0 12px;
    border-radius: 12px;
}

.community-publish-button > span {
    width: 25px;
    height: 25px;
}

.community-publish-button strong {
    font-size: 12px;
}

.community-prompt-panel {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
    padding: 13px;
    border: 1px solid rgba(79, 70, 229, 0.13);
    border-radius: 16px;
    background:
        radial-gradient(circle at 92% 0, rgba(34, 199, 214, 0.12), transparent 90px),
        linear-gradient(145deg, rgba(238, 242, 255, 0.86), rgba(255, 255, 255, 0.92));
    box-shadow: 0 10px 26px rgba(31, 38, 68, 0.06);
}

html[data-theme="dark"] .community-prompt-panel {
    background:
        radial-gradient(circle at 92% 0, rgba(34, 199, 214, 0.1), transparent 90px),
        linear-gradient(145deg, rgba(99, 102, 241, 0.13), rgba(255, 255, 255, 0.035));
}

.community-prompt-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.community-prompt-panel-head > div {
    display: grid;
    gap: 2px;
}

.community-prompt-panel-head strong {
    color: var(--community-text-strong);
    font-size: 13px;
    font-weight: 900;
}

.community-prompt-panel-head small {
    color: var(--community-text-faint);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.community-prompt-panel-head > a {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    padding: 0 7px;
    border: 1px solid rgba(79, 70, 229, 0.12);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.66);
    color: var(--community-yellow);
    font-size: 9px;
    font-weight: 850;
}

html[data-theme="dark"] .community-prompt-panel-head > a {
    background: rgba(255, 255, 255, 0.06);
}

.community-side-search {
    display: flex;
    height: 38px;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    border: 1px solid var(--community-line);
    border-radius: 10px;
    background: var(--community-surface);
    padding: 0 4px 0 10px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.community-side-search:focus-within {
    border-color: rgba(79, 70, 229, 0.48);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.09);
}

.community-side-search > svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: var(--community-text-faint);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.community-side-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--community-text);
    font-size: 11px;
}

.community-side-search button {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border: 0;
    border-radius: 8px;
    background: var(--community-yellow);
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
}

.community-prompt-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.community-prompt-tabs a {
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--community-text-soft);
    font-size: 10px;
    font-weight: 800;
}

html[data-theme="dark"] .community-prompt-tabs a {
    background: rgba(255, 255, 255, 0.055);
}

.community-prompt-tabs a:hover,
.community-prompt-tabs a.is-active {
    background: var(--community-yellow);
    color: #ffffff;
}

.community-prompt-tags {
    display: flex;
    max-height: 48px;
    flex-wrap: wrap;
    gap: 5px;
    overflow: hidden;
}

.community-prompt-tags a {
    max-width: 100%;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(79, 70, 229, 0.07);
    padding: 3px 6px;
    color: var(--community-text-soft);
    font-size: 9px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-prompt-tags a:hover {
    background: var(--community-yellow-soft);
    color: var(--community-yellow);
}

.community-side-group {
    width: 100%;
    align-items: stretch;
    gap: 4px;
    margin-bottom: 17px;
}

.community-side-label {
    display: block;
}

.community-side-link,
.community-side-theme {
    width: 100%;
    min-height: 43px;
    justify-content: flex-start;
    flex-direction: row;
    gap: 9px;
    padding: 0 9px;
    border-radius: 11px;
    font-size: 12px;
    text-align: left;
}

.community-side-link > span,
.community-side-theme > span {
    display: block;
    width: auto;
    flex: 1 1 auto;
    font-size: 12px;
    text-align: left;
}

.community-side-link:hover,
.community-side-theme:hover {
    transform: translateX(2px);
}

.community-side-link.is-active {
    border-color: rgba(79, 70, 229, 0.12);
    background: var(--community-yellow-soft);
    color: var(--community-yellow);
    box-shadow: inset 3px 0 0 var(--community-yellow);
}

.community-side-link.is-active::after {
    display: block;
    right: 12px;
    width: 5px;
    height: 5px;
    background: #22c7d6;
    box-shadow: 0 0 0 4px rgba(34, 199, 214, 0.12);
}

.community-side-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border: 1px solid var(--community-line);
    border-radius: 9px;
    background: var(--community-surface);
}

.community-side-link.is-active .community-side-icon {
    border-color: rgba(79, 70, 229, 0.14);
    background: var(--community-yellow);
    color: #ffffff;
    box-shadow: 0 7px 16px rgba(79, 70, 229, 0.18);
}

.community-side-bottom {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 42px;
    justify-content: stretch;
    gap: 7px;
}

.community-side-bottom .community-side-link {
    width: 100%;
    height: 40px;
    min-height: 40px;
    justify-content: flex-start;
    padding: 0 8px;
}

.community-side-bottom .community-side-link > span {
    display: block;
    font-size: 11px;
}

.community-side-bottom .community-side-theme {
    width: 42px;
    height: 40px;
    min-height: 40px;
}

/* Header */
.community-header {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--community-sidebar-width);
    z-index: 1000;
    width: auto;
    height: var(--community-header-height);
    border-bottom: 1px solid var(--community-line);
    background: var(--community-surface);
    background: color-mix(in srgb, var(--community-surface) 96%, transparent);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.community-header .header-inner,
.community-header-inner {
    display: flex;
    align-items: center;
    width: min(100%, var(--community-container));
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.community-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    min-width: 154px;
    margin-right: 22px;
}

.community-brand .brand-mark,
.community-brand-mark {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: var(--community-radius-sm);
    background: var(--community-yellow);
    color: var(--community-accent-ink);
    font-size: 14px;
    font-weight: 950;
    letter-spacing: -0.04em;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.community-brand .brand-copy,
.community-brand-copy {
    display: grid;
    min-width: 0;
    color: var(--community-text-strong);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.community-brand .brand-copy small,
.community-brand-copy small {
    margin-top: 4px;
    color: var(--community-text-faint);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.community-nav {
    display: flex;
    align-self: stretch;
    align-items: stretch;
    gap: 2px;
    min-width: 0;
}

.community-nav .nav-link,
.community-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: var(--community-text);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 160ms ease, background-color 160ms ease;
}

.community-nav .nav-link::after,
.community-nav-link::after {
    position: absolute;
    right: 14px;
    bottom: 0;
    left: 14px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--community-yellow);
    content: "";
    opacity: 0;
    transform: scaleX(0.3);
    transition: opacity 160ms ease, transform 220ms var(--community-ease);
}

.community-nav .nav-link:hover,
.community-nav-link:hover,
.community-nav .nav-link.is-active,
.community-nav-link.is-active {
    color: var(--community-text-strong);
    background: var(--community-surface-soft);
}

.community-nav .nav-link.is-active::after,
.community-nav-link.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.community-header-search {
    display: flex;
    flex: 1 1 340px;
    align-items: center;
    min-width: 190px;
    max-width: 420px;
    height: 38px;
    margin-left: auto;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: var(--community-radius-xs);
    background: var(--community-bg);
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.community-header-search:focus-within {
    border-color: var(--community-yellow);
    background: var(--community-surface);
    box-shadow: 0 0 0 3px var(--community-yellow-soft);
}

.community-header-search .search-icon,
.community-header-search-icon {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-left: 13px;
    color: var(--community-text-faint);
}

.community-header-search .search-icon svg,
.community-header-search-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.community-header-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 10px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--community-text-strong);
}

.community-header-search input::placeholder {
    color: var(--community-text-faint);
}

.community-header-search button {
    align-self: stretch;
    flex: 0 0 auto;
    min-width: 60px;
    padding: 0 15px;
    border: 0;
    background: var(--community-black);
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    transition: background-color 160ms ease, color 160ms ease;
}

html[data-theme="dark"] .community-header-search button {
    color: #111111;
}

.community-header-search button:hover {
    background: var(--community-black-hover);
}

.community-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    margin-left: 12px;
}

.community-icon-button {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--community-line);
    border-radius: var(--community-radius-xs);
    background: var(--community-surface);
    color: var(--community-text-soft);
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.community-icon-button svg {
    width: 18px;
    height: 18px;
}

.community-icon-button:hover {
    border-color: var(--community-line-strong);
    background: var(--community-surface-soft);
    color: var(--community-text-strong);
}

.community-account-link {
    display: inline-flex;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: var(--community-radius-xs);
    color: var(--community-text-soft);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 160ms ease, background-color 160ms ease;
}

.community-account-link:hover {
    background: var(--community-surface-soft);
    color: var(--community-text-strong);
}

.community-create-button {
    display: inline-flex;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    border: 1px solid var(--community-yellow);
    border-radius: var(--community-radius-xs);
    background: var(--community-yellow);
    color: var(--community-accent-ink);
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.community-create-button svg {
    width: 16px;
    height: 16px;
}

.community-create-button:hover {
    border-color: var(--community-yellow-hover);
    background: var(--community-yellow-hover);
    transform: translateY(-1px);
}

.community-header .community-brand {
    display: none;
}

/* Main layout */
.community-main {
    margin-left: var(--community-sidebar-width);
    padding: calc(var(--community-header-height) + 22px) 0 58px;
}

.community-main > .container,
.community-main .community-container,
.community-container {
    width: min(100%, var(--community-container));
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
}

/* Featured project carousel */
.community-carousel,
.community-hero {
    --community-carousel-gap: 16px;
    --community-carousel-card-width: clamp(232px, calc(21.05% - 13px), 282px);
    position: relative;
    width: 100%;
}

.community-carousel-viewport,
.community-hero {
    width: 100%;
    margin-block: -7px -12px;
    padding-block: 7px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    touch-action: pan-x pan-y;
}

.community-carousel-viewport::-webkit-scrollbar,
.community-hero::-webkit-scrollbar {
    display: none;
}

.community-carousel-track,
.community-hero {
    display: flex;
    width: 100%;
    min-width: 100%;
    align-items: stretch;
    gap: var(--community-carousel-gap);
}

.community-carousel.is-dragging .community-carousel-viewport,
.community-carousel-viewport.is-dragging,
.community-hero.is-dragging {
    scroll-behavior: auto;
    scroll-snap-type: none;
    cursor: grabbing;
    user-select: none;
}

.community-carousel.is-dragging .community-carousel-track,
.community-carousel-viewport.is-dragging .community-carousel-track,
.community-hero.is-dragging > * {
    pointer-events: none;
}

.community-feature {
    position: relative;
    flex: 0 0 var(--community-carousel-card-width, 282px);
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: var(--community-radius-sm);
    background: #292929;
    color: #ffffff;
    isolation: isolate;
    box-shadow: var(--community-shadow-xs);
    aspect-ratio: 4 / 3;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    transform: translateZ(0);
    transition: box-shadow 220ms ease, transform 220ms var(--community-ease);
}

.community-carousel .community-feature.is-main,
.community-hero > .community-feature.is-main,
.community-feature:not(.is-main) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
}

.community-feature .feature-media,
.community-feature-media,
img.community-feature-media,
video.community-feature-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.community-feature .feature-media img,
.community-feature .feature-media video,
.community-feature-media img,
.community-feature-media video,
img.community-feature-media,
video.community-feature-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--community-ease), filter 300ms ease;
}

.community-feature .feature-shade,
.community-feature-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.16) 54%, rgba(0, 0, 0, 0.82) 100%);
    transition: background-color 250ms ease;
}

.community-feature .feature-copy,
.community-feature-copy {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
}

.community-carousel .community-feature.is-main .feature-copy,
.community-carousel .community-feature.is-main .community-feature-copy,
.community-hero > .community-feature.is-main .feature-copy,
.community-hero > .community-feature.is-main .community-feature-copy,
.community-feature.is-main .feature-copy,
.community-feature.is-main .community-feature-copy {
    max-width: none;
    padding: 15px;
}

.community-feature .feature-kicker,
.community-feature-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    margin-bottom: 6px;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--community-yellow);
    color: var(--community-accent-ink);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.community-feature .feature-title,
.community-feature-title {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.28;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.community-carousel .community-feature.is-main .feature-title,
.community-carousel .community-feature.is-main .community-feature-title,
.community-hero > .community-feature.is-main .feature-title,
.community-hero > .community-feature.is-main .community-feature-title,
.community-feature.is-main .feature-title,
.community-feature.is-main .community-feature-title {
    font-size: 17px;
    line-height: 1.28;
}

.community-feature .feature-desc,
.community-feature-desc {
    display: none;
    max-width: 640px;
    margin: 9px 0 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.community-feature:not(.is-main) .feature-desc,
.community-feature:not(.is-main) .community-feature-desc {
    -webkit-line-clamp: 1;
}

.community-feature .feature-cta,
.community-feature-cta {
    display: none;
    align-items: center;
    gap: 7px;
    margin-top: 15px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.community-feature .feature-cta::after,
.community-feature-cta::after {
    content: "→";
    transition: transform 180ms ease;
}

.community-feature:hover .feature-media img,
.community-feature:hover .feature-media video,
.community-feature:hover .community-feature-media img,
.community-feature:hover .community-feature-media video,
.community-feature:hover img.community-feature-media,
.community-feature:hover video.community-feature-media {
    transform: scale(1.035);
}

.community-feature:hover .feature-cta::after,
.community-feature:hover .community-feature-cta::after {
    transform: translateX(4px);
}

@media (hover: hover) and (pointer: fine) {
    .community-carousel .community-feature:hover,
    .community-hero > .community-feature:hover {
        z-index: 1;
        box-shadow: var(--community-shadow-sm);
        transform: translateY(-3px);
    }
}

.community-feature-placeholder {
    position: relative;
    inset: auto;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    background:
        linear-gradient(135deg, rgba(79, 70, 229, 0.96), rgba(124, 58, 237, 0.78) 46%, rgba(31, 31, 31, 0.92)),
        #333333;
    color: #ffffff;
    text-align: center;
}

.community-feature-placeholder > span {
    font-size: clamp(32px, 5vw, 74px);
    font-weight: 950;
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.community-feature-placeholder > strong {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.community-feature-placeholder > small {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.72;
}

.community-feature:not(.is-main) .community-feature-placeholder,
.community-feature.community-feature-placeholder:not(.is-main) {
    background:
        linear-gradient(135deg, #595959, #262626 62%, #4f46e5),
        #333333;
    color: #ffffff;
}

.community-feature.community-feature-placeholder:not(.is-main) > span {
    font-size: clamp(24px, 3vw, 42px);
}

.community-carousel-arrow {
    position: absolute;
    z-index: 6;
    top: calc(50% - 18px);
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #111111;
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(-50%) scale(0.92);
    cursor: pointer;
    transition: opacity 180ms ease, background-color 180ms ease, transform 180ms var(--community-ease);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.community-carousel-arrow.is-prev {
    left: 10px;
}

.community-carousel-arrow.is-next {
    right: 10px;
}

.community-carousel-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.community-carousel:hover .community-carousel-arrow:not(:disabled),
.community-carousel-arrow:focus-visible {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.community-carousel-arrow:hover {
    background: var(--community-yellow);
    color: var(--community-accent-ink);
}

.community-carousel-arrow:disabled,
.community-carousel-arrow[aria-disabled="true"] {
    opacity: 0;
    pointer-events: none;
}

.community-carousel-dots {
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 6px;
}

.community-carousel-dot {
    position: relative;
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.community-carousel-dot::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--community-line-strong);
    transition: width 220ms var(--community-ease), background-color 180ms ease, transform 180ms ease;
}

.community-carousel-dot:hover::before {
    background: var(--community-text-faint);
    transform: scale(1.18);
}

.community-carousel-dot.is-active,
.community-carousel-dot[aria-current="true"],
.community-carousel-dot[aria-selected="true"] {
    background: transparent;
}

.community-carousel-dot.is-active::before,
.community-carousel-dot[aria-current="true"]::before,
.community-carousel-dot[aria-selected="true"]::before {
    width: 16px;
    background: var(--community-yellow);
    transform: none;
}

.community-carousel-toggle {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    margin-left: 4px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--community-text-faint);
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.community-carousel-toggle:hover {
    background: var(--community-surface-muted);
    color: var(--community-text-strong);
}

.community-carousel-toggle:active {
    transform: scale(0.92);
}

.community-carousel-toggle svg,
.community-carousel-toggle .carousel-icon-pause,
.community-carousel-toggle .carousel-icon-play {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.community-carousel-toggle .carousel-icon-play {
    display: none;
}

.community-carousel.is-paused .community-carousel-toggle,
.community-carousel-toggle[aria-pressed="true"] {
    background: var(--community-yellow-soft);
    color: var(--community-text-strong);
}

.community-carousel.is-paused .community-carousel-toggle .carousel-icon-pause,
.community-carousel-toggle[aria-pressed="true"] .carousel-icon-pause {
    display: none;
}

.community-carousel.is-paused .community-carousel-toggle .carousel-icon-play,
.community-carousel-toggle[aria-pressed="true"] .carousel-icon-play {
    display: block;
}

.community-carousel.is-static .community-carousel-arrow,
.community-carousel.is-static .community-carousel-dots,
.community-carousel.is-static .community-carousel-toggle,
html:not(.has-js) .community-carousel-arrow,
html:not(.has-js) .community-carousel-dots,
html:not(.has-js) .community-carousel-toggle {
    display: none !important;
}

.community-carousel.is-static .community-carousel-viewport {
    cursor: default;
}

html[data-theme="dark"] .community-carousel-arrow {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(32, 32, 32, 0.92);
    color: #ffffff;
}

html[data-theme="dark"] .community-carousel-arrow:hover {
    background: var(--community-yellow);
    color: var(--community-accent-ink);
}

/* Quick channels */
.community-channel-bar {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid var(--community-line);
    border-radius: var(--community-radius-sm);
    background: var(--community-surface);
    box-shadow: var(--community-shadow-xs);
}

.community-channel-bar .channel-list,
.community-channel-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-width: 0;
}

.community-channel-bar .channel-link,
.community-channel-link {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 82px;
    align-items: center;
    gap: 11px;
    padding: 14px 15px;
    transition: background-color 170ms ease;
}

.community-channel-bar .channel-link + .channel-link,
.community-channel-link + .community-channel-link {
    border-left: 1px solid var(--community-line);
}

.community-channel-bar .channel-link:hover,
.community-channel-link:hover {
    background: var(--community-yellow-soft);
}

.community-channel-bar .channel-icon,
.community-channel-icon {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--community-surface-muted);
    color: var(--community-text-strong);
    font-size: 15px;
    font-style: normal;
    font-weight: 900;
    transition: background-color 170ms ease, transform 170ms ease;
}

.community-channel-bar .channel-link:nth-child(3n + 1) .channel-icon,
.community-channel-link:nth-child(3n + 1) .community-channel-icon,
.community-channel-link:nth-child(3n + 1) .channel-icon {
    background: var(--community-yellow);
    color: var(--community-accent-ink);
}

.community-channel-bar .channel-link:hover .channel-icon,
.community-channel-link:hover .community-channel-icon,
.community-channel-link:hover .channel-icon {
    transform: translateY(-2px);
}

.community-channel-bar .channel-copy,
.community-channel-copy {
    display: grid;
    min-width: 0;
    line-height: 1.25;
}

.community-channel-bar .channel-copy strong,
.community-channel-copy strong {
    overflow: hidden;
    color: var(--community-text-strong);
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-channel-bar .channel-copy small,
.community-channel-copy small {
    margin-top: 5px;
    overflow: hidden;
    color: var(--community-text-faint);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content controls */
.community-content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 0;
}

.community-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 42px;
    margin-bottom: 12px;
}

.community-section-head .section-title,
.community-section-title {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin: 0;
    color: var(--community-text-strong);
}

.community-section-title h2 {
    margin: 0;
    color: var(--community-text-strong);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.community-section-title h1 {
    margin: 0;
    color: var(--community-text-strong);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.community-section-title p {
    margin: 0;
    color: var(--community-text-faint);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
}

.community-section-head .section-title::before,
.community-section-title::before {
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: var(--community-yellow);
    content: "";
}

.community-section-head .section-count,
.community-section-count {
    color: var(--community-text-faint);
    font-size: 12px;
    font-weight: 500;
}

.community-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.community-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.community-tabs .tab,
.community-tab {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border-radius: var(--community-radius-xs);
    color: var(--community-text-soft);
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
    transition: color 160ms ease, background-color 160ms ease;
}

.community-tabs .tab:hover,
.community-tab:hover {
    background: var(--community-surface);
    color: var(--community-text-strong);
}

.community-tabs .tab.is-active,
.community-tab.is-active {
    background: var(--community-yellow);
    color: var(--community-accent-ink);
}

.community-filter-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid var(--community-line);
    border-radius: var(--community-radius-sm);
    background: var(--community-surface);
}

.community-filter-row .filter-label,
.community-filter-label {
    flex: 0 0 auto;
    padding-top: 6px;
    color: var(--community-text-faint);
    font-size: 12px;
    font-weight: 700;
}

.community-filter-row .tags,
.community-filter-tags,
.community-tags {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.community-filter-row .tag,
.community-filter-tag,
.community-tag {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--community-text-soft);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    transition: color 150ms ease, background-color 150ms ease;
}

.community-filter-row .tag:hover,
.community-filter-tag:hover,
.community-tag:hover {
    background: var(--community-bg);
    color: var(--community-text-strong);
}

.community-filter-row .tag.is-active,
.community-filter-tag.is-active,
.community-tag.is-active {
    background: var(--community-black);
    color: #ffffff;
}

html[data-theme="dark"] .community-filter-row .tag.is-active,
html[data-theme="dark"] .community-filter-tag.is-active,
html[data-theme="dark"] .community-tag.is-active {
    color: #111111;
}

.community-sort {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    min-width: 96px;
    height: 34px;
    padding: 3px;
    border: 1px solid var(--community-line);
    border-radius: var(--community-radius-xs);
    outline: 0;
    background-color: var(--community-surface);
    color: var(--community-text-soft);
    font-size: 12px;
}

.community-sort:hover {
    border-color: var(--community-line-strong);
}

.community-sort a {
    display: inline-flex;
    flex: 1 1 0;
    height: 26px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border-radius: 4px;
    color: var(--community-text-soft);
    font-weight: 700;
    white-space: nowrap;
    transition: color 150ms ease, background-color 150ms ease;
}

.community-sort a:hover {
    background: var(--community-bg);
    color: var(--community-text-strong);
}

.community-sort a.is-active {
    background: var(--community-black);
    color: #ffffff;
}

html[data-theme="dark"] .community-sort a.is-active {
    color: #111111;
}

.community-results-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    color: var(--community-text-faint);
    font-size: 12px;
}

.community-results-note strong {
    color: var(--community-text-soft);
    font-weight: 750;
}

/* Project cards */
.community-grid {
    display: block;
    column-count: 5;
    column-gap: 14px;
}

.community-grid .prompt-card {
    position: relative;
    display: inline-block;
    width: 100%;
    min-width: 0;
    margin: 0 0 14px;
    padding: 7px 7px 0;
    overflow: hidden;
    break-inside: avoid;
    break-inside: avoid-column;
    border: 1px solid var(--community-line);
    border-radius: 16px;
    background: var(--community-surface);
    box-shadow: var(--community-shadow-xs);
    transition: transform 240ms var(--community-ease), box-shadow 240ms ease, border-color 180ms ease;
    animation: community-card-reveal 540ms var(--community-ease) both;
}

.community-grid .prompt-card:nth-child(4n + 2) {
    animation-delay: 45ms;
}

.community-grid .prompt-card:nth-child(4n + 3) {
    animation-delay: 90ms;
}

.community-grid .prompt-card:nth-child(4n + 4) {
    animation-delay: 135ms;
}

.community-grid .prompt-card:hover {
    z-index: 2;
    border-color: var(--community-line-strong);
    box-shadow: var(--community-shadow-sm);
    transform: translateY(-3px);
}

.community-grid .prompt-cover {
    position: relative;
    display: block;
    width: 100%;
    min-height: 0;
    aspect-ratio: auto;
    overflow: hidden;
    border-radius: 12px;
    background: var(--community-cover-bg);
}

.community-grid .prompt-cover::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.24));
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.community-grid .prompt-card:hover .prompt-cover::after {
    opacity: 1;
}

.community-grid .prompt-cover img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    background: var(--community-cover-bg);
    object-fit: cover;
    object-position: center;
    transform: none;
    transition: filter 220ms ease, opacity 220ms ease;
}

.community-grid .prompt-cover video {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    background: var(--community-cover-bg);
    object-fit: cover;
    object-position: center;
    transform: none;
    transition: filter 220ms ease, opacity 220ms ease;
}

.community-grid .media-video video:not([poster]):not([data-first-frame-ready="true"]) {
    opacity: 0;
}

.community-grid .media-video.is-previewing video,
.community-grid .prompt-cover.has-media-error .prompt-fallback {
    opacity: 1;
}

.community-grid .prompt-cover.has-media-error img,
.community-grid .prompt-cover.has-media-error video,
.community-grid .prompt-cover.has-media-error .video-play-mark {
    display: none;
}

.community-grid .prompt-card:hover .prompt-cover img,
.community-grid .prompt-card:hover .prompt-cover video {
    transform: none;
}

.community-grid .prompt-fallback {
    display: grid;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    place-items: center;
    background:
        linear-gradient(145deg, rgba(79, 70, 229, 0.94), rgba(129, 140, 248, 0.76) 43%, rgba(77, 77, 77, 0.94)),
        var(--community-surface-muted);
    color: #ffffff;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 950;
    letter-spacing: -0.07em;
}

.community-grid .prompt-type {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: none;
    min-height: 23px;
    align-items: center;
    padding: 3px 7px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 4px;
    background: rgba(17, 17, 17, 0.72);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.community-grid .video-play-mark {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    z-index: 3;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: none;
    opacity: 1;
    pointer-events: none;
    transition: opacity 180ms ease, transform 220ms var(--community-ease);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.community-grid .video-play-mark::after {
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #111111;
    content: "";
}

.community-grid .prompt-card.is-previewing .video-play-mark,
.community-grid .media-video.is-previewing .video-play-mark,
.community-grid .prompt-cover.is-previewing .video-play-mark,
.community-grid .prompt-cover video.is-previewing + .video-play-mark {
    opacity: 0;
    transform: scale(0.82);
}

.community-grid .prompt-cover-action,
.community-grid .community-card-hover {
    position: absolute;
    right: 11px;
    bottom: 11px;
    z-index: 4;
    display: inline-flex;
    width: 32px;
    height: 32px;
    min-height: 0;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #111111;
    font-size: 0;
    font-weight: 850;
    opacity: 0;
    transform: translateY(7px);
    transition: opacity 180ms ease, transform 220ms var(--community-ease);
}

.community-grid .prompt-cover-action svg,
.community-grid .community-card-hover svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.community-grid .prompt-card:hover .prompt-cover-action,
.community-grid .prompt-card:hover .community-card-hover,
.community-grid .prompt-cover:focus-visible .prompt-cover-action {
    opacity: 1;
    transform: translateY(0);
}

.community-grid .prompt-info {
    padding: 9px 8px 8px;
}

.community-grid .prompt-category-row {
    display: flex;
    min-height: 19px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.community-grid .prompt-category {
    display: inline-flex;
    max-width: 70%;
    align-items: center;
    overflow: hidden;
    color: #4338ca;
    font-size: 11px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-theme="dark"] .community-grid .prompt-category {
    color: #a5b4fc;
}

.community-grid .prompt-favorite {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--community-text-faint);
    font-size: 10px;
}

.community-grid .prompt-favorite svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.community-grid .prompt-info h2 {
    display: block;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    color: var(--community-text-strong);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-grid .prompt-info h2 a {
    transition: color 160ms ease;
}

.community-grid .prompt-info h2 a:hover {
    color: #4338ca;
}

html[data-theme="dark"] .community-grid .prompt-info h2 a:hover {
    color: var(--community-yellow);
}

.community-grid .prompt-description {
    display: -webkit-box;
    min-height: 36px;
    margin: 7px 0 0;
    overflow: hidden;
    color: var(--community-text-faint);
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.community-grid .prompt-tags {
    display: flex;
    gap: 6px;
    min-height: 22px;
    margin-top: 8px;
    overflow: hidden;
}

.community-grid .prompt-tag {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--community-bg);
    color: var(--community-text-faint);
    font-size: 10px;
    white-space: nowrap;
}

.community-grid .community-card-source {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.community-grid .community-card-source .source-avatar,
.community-grid .community-source-avatar {
    display: grid;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    overflow: hidden;
    place-items: center;
    border-radius: 50%;
    background: var(--community-yellow);
    color: var(--community-accent-ink);
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
}

.community-grid .community-card-source .source-avatar img,
.community-grid .community-source-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-grid .community-card-source .source-copy,
.community-grid .community-source-copy {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    color: var(--community-text-soft);
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-grid .community-card-source .source-copy strong,
.community-grid .community-source-copy strong {
    overflow: hidden;
    color: var(--community-text);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-grid .community-card-source .source-copy small,
.community-grid .community-source-copy small {
    margin-top: 2px;
    overflow: hidden;
    color: var(--community-text-faint);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-grid .community-card-metrics {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    color: var(--community-text-faint);
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.community-grid .community-card-metrics > span,
.community-grid .community-card-metrics > a,
.community-grid .community-card-metrics > button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.community-grid .community-view-metric {
    color: inherit;
    text-decoration: none;
    transition: color 150ms ease, transform 150ms ease;
}

.community-grid .community-view-metric:hover,
.community-grid .community-view-metric:focus-visible {
    color: #4b7dff;
}

.community-grid .community-view-metric:active {
    transform: scale(0.94);
}

.community-grid .community-card-metrics svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.community-grid .community-card-metrics .community-like-icon {
    fill: currentColor;
    stroke: none;
}

.community-grid .community-like-metric {
    margin: -3px;
    padding: 3px;
    border: 0;
    border-radius: 6px;
    outline: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease, transform 150ms ease, opacity 150ms ease;
}

.community-grid .community-like-metric:hover,
.community-grid .community-like-metric:focus-visible,
.community-grid .community-like-metric.is-active {
    background: rgba(255, 90, 61, 0.08);
    color: #ff5a3d;
}

.community-grid .community-like-metric:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 90, 61, 0.18);
}

.community-grid .community-like-metric:active {
    transform: scale(0.92);
}

.community-grid .community-like-metric.is-pending {
    pointer-events: none;
    opacity: 0.58;
}

.community-grid .community-like-metric:disabled {
    pointer-events: none;
    opacity: 0.45;
}

.community-grid .community-favorite-metric {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    margin: -3px;
    padding: 3px;
    border: 0;
    border-radius: 6px;
    outline: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease, transform 150ms ease, opacity 150ms ease;
}

.community-grid .community-favorite-metric svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.community-grid .community-favorite-metric:hover,
.community-grid .community-favorite-metric:focus-visible,
.community-grid .community-favorite-metric.is-active {
    background: rgba(236, 72, 153, 0.09);
    color: #ec4899;
}

.community-grid .community-favorite-metric.is-active svg {
    fill: currentColor;
}

.community-grid .community-favorite-metric:active {
    transform: scale(0.92);
}

.community-grid .community-favorite-metric.is-pending,
.community-grid .community-favorite-metric:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.community-grid .prompt-footer {
    display: flex;
    min-height: 24px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 7px;
    padding-top: 0;
    border-top: 0;
}

.community-grid .prompt-footer > .community-card-source {
    margin: 0;
    padding: 0;
    border: 0;
}

.community-grid .community-card-source + .prompt-footer {
    margin-top: 7px;
    padding-top: 0;
    border-top: 0;
}

.community-grid .prompt-card-meta,
.community-grid .prompt-meta-line {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    color: var(--community-text-faint);
    font-size: 10px;
    font-style: normal;
}

.community-grid .prompt-card-meta strong,
.community-grid .prompt-meta-line strong {
    color: var(--community-text-soft);
    font-size: 11px;
    font-weight: 750;
}

.community-grid .prompt-card-meta em,
.community-grid .prompt-meta-line em {
    overflow: hidden;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-grid .prompt-primary {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 29px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 4px;
    background: var(--community-bg);
    color: var(--community-text-soft);
    font-size: 10px;
    font-weight: 800;
    transition: color 160ms ease, background-color 160ms ease;
}

.community-grid .prompt-primary svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.community-grid .prompt-primary:hover {
    background: var(--community-yellow);
    color: var(--community-accent-ink);
}

/* Empty states, footer and mobile navigation */
.community-content > .empty {
    display: grid;
    min-height: 300px;
    align-content: center;
    justify-items: center;
    padding: 54px 24px;
    border: 1px solid var(--community-line);
    border-radius: var(--community-radius-sm);
    background: var(--community-surface);
    text-align: center;
}

.community-content > .empty > span {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 50%;
    background: var(--community-yellow);
    color: var(--community-accent-ink);
    font-size: 22px;
    font-weight: 900;
}

.community-content > .empty h2 {
    margin: 0;
    color: var(--community-text-strong);
    font-size: 20px;
    font-weight: 850;
}

.community-content > .empty p {
    max-width: 480px;
    margin: 8px 0 0;
    color: var(--community-text-faint);
    font-size: 13px;
}

.community-content > .empty > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.community-content > .empty > div a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid var(--community-line-strong);
    border-radius: var(--community-radius-xs);
    background: var(--community-surface);
    color: var(--community-text-strong);
    font-size: 12px;
    font-weight: 800;
}

.community-content > .empty > div a:last-child {
    border-color: var(--community-yellow);
    background: var(--community-yellow);
    color: var(--community-accent-ink);
}

.community-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 44px;
    padding: 30px 20px;
    border-top: 1px solid var(--community-line);
    background: var(--community-surface);
    color: var(--community-text-faint);
    text-align: center;
    font-size: 12px;
}

.community-footer span + span::before {
    margin-right: 14px;
    color: var(--community-line-strong);
    content: "·";
}

.community-footer a {
    color: var(--community-text-soft);
}

.community-footer a:hover {
    color: var(--community-text-strong);
}

.community-mobile-dock {
    display: none;
}

@keyframes community-card-reveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1450px) and (min-width: 1201px) {
    .community-grid {
        column-count: 4;
    }
}

/* 1200: keep the desktop rhythm while reducing header density. */
@media (max-width: 1200px) {
    :root {
        --community-sidebar-width: 76px;
    }

    .community-sidebar {
        align-items: center;
        padding-inline: 9px;
    }

    .community-side-brand {
        margin-inline: 0;
    }

    .community-side-brand-copy,
    .community-side-label,
    .community-publish-button strong,
    .community-side-link > span,
    .community-side-theme > span {
        display: none;
    }

    .community-side-promo,
    .community-prompt-panel {
        display: none;
    }

    .community-publish-button,
    .community-side-link,
    .community-side-theme {
        width: 48px;
        padding: 0;
        justify-content: center;
    }

    .community-side-group,
    .community-side-bottom {
        width: 100%;
    }

    .community-side-link.is-active {
        box-shadow: inset 0 -3px 0 var(--community-yellow);
    }

    .community-side-link.is-active::after {
        display: none;
    }

    .community-side-bottom {
        grid-template-columns: 1fr;
        margin-top: auto;
    }

    .community-side-bottom .community-side-link,
    .community-side-bottom .community-side-theme {
        width: 34px;
        height: 34px;
        min-height: 34px;
        justify-content: center;
        padding: 0;
    }

    .community-header .header-inner,
    .community-header-inner,
    .community-main > .container,
    .community-main .community-container,
    .community-container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .community-brand {
        min-width: 142px;
        margin-right: 10px;
    }

    .community-nav .nav-link,
    .community-nav-link {
        padding-right: 10px;
        padding-left: 10px;
    }

    .community-nav .nav-link::after,
    .community-nav-link::after {
        right: 10px;
        left: 10px;
    }

    .community-nav .nav-link:nth-child(n + 5),
    .community-nav-link:nth-child(n + 5) {
        display: none;
    }

    .community-header-search {
        max-width: 330px;
    }

    .community-carousel,
    .community-hero {
        --community-carousel-gap: 14px;
        --community-carousel-card-width: clamp(218px, calc(23% - 11px), 248px);
    }

    .community-channel-bar .channel-list,
    .community-channel-list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .community-channel-bar .channel-link:nth-child(n + 5),
    .community-channel-link:nth-child(n + 5) {
        border-top: 0;
    }

    .community-channel-bar .channel-link:nth-child(5),
    .community-channel-link:nth-child(5) {
        border-left: 1px solid var(--community-line);
    }

    .community-grid {
        column-count: 4;
    }
}

/* 900: feature stack and tablet-friendly controls. */
@media (max-width: 900px) {
    :root {
        --community-sidebar-width: 0px;
    }

    .community-sidebar {
        display: none;
    }

    .community-header {
        left: 0;
    }

    .community-header .community-brand {
        display: inline-flex;
    }

    .community-main {
        margin-left: 0;
    }

    .community-brand {
        min-width: auto;
        margin-right: 14px;
    }

    .community-brand .brand-copy small,
    .community-brand-copy small {
        display: none;
    }

    .community-nav .nav-link:nth-child(n + 3),
    .community-nav-link:nth-child(n + 3) {
        display: none;
    }

    .community-header-search {
        max-width: none;
    }

    .community-account-link {
        display: none;
    }

    .community-carousel,
    .community-hero {
        --community-carousel-gap: 12px;
        --community-carousel-card-width: clamp(214px, calc(29.85% - 11px), 252px);
    }

    .community-carousel-arrow {
        width: 38px;
        height: 38px;
    }

    .community-carousel-arrow.is-prev {
        left: 8px;
    }

    .community-carousel-arrow.is-next {
        right: 8px;
    }

    .community-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .community-toolbar {
        width: 100%;
        justify-content: space-between;
    }

    .community-tabs {
        min-width: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .community-tabs::-webkit-scrollbar {
        display: none;
    }

    .community-filter-row {
        overflow: hidden;
    }

    .community-filter-row .tags,
    .community-filter-tags,
    .community-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .community-filter-row .tags::-webkit-scrollbar,
    .community-filter-tags::-webkit-scrollbar,
    .community-tags::-webkit-scrollbar {
        display: none;
    }

    .community-grid {
        column-count: 3;
    }
}

/* 640: compact two-column community feed plus bottom dock. */
@media (max-width: 640px) {
    :root {
        --community-header-height: 56px;
    }

    body.community-home-body {
        padding-bottom: 64px;
    }

    .community-header .header-inner,
    .community-header-inner,
    .community-main > .container,
    .community-main .community-container,
    .community-container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .community-brand {
        margin-right: auto;
    }

    .community-brand .brand-mark,
    .community-brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 7px;
        font-size: 12px;
    }

    .community-brand .brand-copy,
    .community-brand-copy {
        font-size: 15px;
    }

    .community-nav,
    .community-header-search,
    .community-account-link {
        display: none;
    }

    .community-header-actions {
        gap: 5px;
        margin-left: 8px;
    }

    .community-icon-button {
        width: 34px;
        height: 34px;
    }

    .community-create-button {
        height: 34px;
        padding: 0 11px;
        font-size: 12px;
    }

    .community-main {
        padding-top: calc(var(--community-header-height) + 12px);
        padding-bottom: 28px;
    }

    .community-carousel,
    .community-hero {
        --community-carousel-gap: 12px;
        --community-carousel-card-width: min(440px, 72vw);
    }

    .community-feature,
    .community-feature.is-main {
        border-radius: 7px;
        aspect-ratio: 4 / 3;
    }

    .community-feature.is-main .feature-copy,
    .community-feature.is-main .community-feature-copy,
    .community-feature .feature-copy,
    .community-feature-copy {
        padding: 12px;
    }

    .community-feature .feature-kicker,
    .community-feature-kicker {
        min-height: 20px;
        margin-bottom: 5px;
        padding: 2px 6px;
        font-size: 9px;
    }

    .community-feature.is-main .feature-title,
    .community-feature.is-main .community-feature-title {
        font-size: 16px;
    }

    .community-feature:not(.is-main) .feature-title,
    .community-feature:not(.is-main) .community-feature-title {
        font-size: 16px;
    }

    .community-feature:not(.is-main) .feature-desc,
    .community-feature:not(.is-main) .community-feature-desc,
    .community-feature:not(.is-main) .feature-cta,
    .community-feature:not(.is-main) .community-feature-cta {
        display: none;
    }

    .community-feature .feature-desc,
    .community-feature-desc {
        margin-top: 6px;
        font-size: 11px;
    }

    .community-feature .feature-cta,
    .community-feature-cta {
        margin-top: 9px;
        font-size: 11px;
    }

    .community-carousel-arrow {
        display: none;
    }

    .community-carousel-dots {
        min-height: 28px;
        margin-top: 4px;
    }

    .community-channel-bar {
        margin-top: 9px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .community-channel-bar::-webkit-scrollbar {
        display: none;
    }

    .community-channel-bar .channel-list,
    .community-channel-list {
        display: flex;
        width: max-content;
        min-width: 100%;
    }

    .community-channel-bar .channel-link,
    .community-channel-link {
        flex: 0 0 116px;
        min-height: 70px;
        gap: 8px;
        padding: 11px 10px;
        border-top: 0 !important;
    }

    .community-channel-bar .channel-link:nth-child(5),
    .community-channel-link:nth-child(5) {
        border-left: 1px solid var(--community-line);
    }

    .community-channel-bar .channel-icon,
    .community-channel-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .community-channel-bar .channel-copy strong,
    .community-channel-copy strong {
        font-size: 12px;
    }

    .community-channel-bar .channel-copy small,
    .community-channel-copy small {
        font-size: 9px;
    }

    .community-content {
        margin-top: 0;
    }

    .community-section-head {
        gap: 10px;
        margin-bottom: 10px;
    }

    .community-section-head .section-title,
    .community-section-title h1,
    .community-section-title h2 {
        font-size: 19px;
    }

    .community-toolbar {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .community-tabs {
        width: 100%;
    }

    .community-tabs .tab,
    .community-tab {
        min-height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    .community-sort {
        min-width: 84px;
        height: 32px;
    }

    .community-filter-row {
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
        padding: 8px 9px;
    }

    .community-filter-row .filter-label,
    .community-filter-label {
        padding-top: 0;
    }

    .community-filter-row .tag,
    .community-filter-tag,
    .community-tag {
        min-height: 28px;
        padding: 3px 8px;
        font-size: 11px;
    }

    .community-results-note {
        margin-bottom: 9px;
    }

    .community-grid {
        column-count: 2;
        column-gap: 10px;
    }

    .community-grid .prompt-card {
        margin-bottom: 10px;
        padding: 5px 5px 0;
        border-radius: 12px;
    }

    .community-grid .prompt-card:hover {
        transform: translateY(-2px);
    }

    .community-grid .prompt-info {
        padding: 8px 6px 7px;
    }

    .community-grid .prompt-category-row {
        margin-bottom: 4px;
    }

    .community-grid .prompt-category {
        font-size: 9px;
    }

    .community-grid .prompt-favorite {
        display: none;
    }

    .community-grid .prompt-info h2 {
        min-height: 0;
        font-size: 13px;
        line-height: 1.4;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .community-grid .prompt-description,
    .community-grid .prompt-tags {
        display: none;
    }

    .community-grid .prompt-footer {
        min-height: 22px;
        margin-top: 6px;
        padding-top: 0;
    }

    .community-grid .prompt-primary {
        min-height: 25px;
        padding: 3px 6px;
        font-size: 9px;
    }

    .community-grid .prompt-cover-action,
    .community-grid .community-card-hover {
        display: none;
    }

    .community-footer {
        margin-top: 28px;
        padding: 24px 12px;
    }

    .community-mobile-dock {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1100;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        min-height: 62px;
        padding: 5px max(7px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left));
        border-top: 1px solid var(--community-line);
        background: var(--community-surface);
        background: color-mix(in srgb, var(--community-surface) 96%, transparent);
        box-shadow: 0 -5px 18px rgba(0, 0, 0, 0.06);
        backdrop-filter: blur(15px) saturate(150%);
        -webkit-backdrop-filter: blur(15px) saturate(150%);
    }

    .community-mobile-dock .dock-link,
    .community-dock-link {
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        border-radius: 6px;
        color: var(--community-text-faint);
        font-size: 9px;
        font-weight: 700;
    }

    .community-mobile-dock .dock-link svg,
    .community-dock-link svg {
        width: 20px;
        height: 20px;
    }

    .community-mobile-dock .dock-link > span,
    .community-dock-link > span {
        display: grid;
        width: 22px;
        height: 22px;
        place-items: center;
        font-size: 20px;
        line-height: 1;
    }

    .community-mobile-dock .dock-link.is-active,
    .community-dock-link.is-active {
        color: var(--community-text-strong);
    }

    .community-mobile-dock .dock-link.is-active svg,
    .community-dock-link.is-active svg {
        color: #4f46e5;
    }
}

/* Homepage Header V12: search and account actions */
@media (min-width: 901px) {
    :root {
        --community-header-height: 54px;
    }

    .community-header {
        display: block;
        height: var(--community-header-height);
        border: 0;
        border-bottom: 1px solid var(--community-line);
        background: var(--community-surface);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .community-header .community-header-inner {
        width: 100%;
        padding: 0 14px;
    }

    .community-header .community-brand,
    .community-header .community-nav {
        display: none !important;
    }

    .community-header .community-header-search {
        display: flex;
        width: clamp(320px, 42vw, 700px);
        min-width: 320px;
        max-width: 700px;
        height: 42px;
        flex: 0 0 auto;
        align-items: center;
        margin: 0;
        overflow: hidden;
        border: 1px solid transparent;
        border-radius: 999px;
        background: var(--community-surface-muted);
        box-shadow: none;
    }

    .community-header .community-header-search:focus-within {
        border-color: var(--community-yellow);
        background: var(--community-surface-muted);
        box-shadow: none;
    }

    .community-header .community-header-leading-search {
        width: 36px;
        height: 100%;
        display: grid;
        flex: 0 0 36px;
        place-items: center;
        color: var(--community-text-faint);
    }

    .community-header .community-header-leading-search svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.8;
    }

    .community-header .community-header-search input {
        height: 100%;
        padding: 0 8px 0 0;
        border: 0 !important;
        outline: 0 !important;
        color: var(--community-text-strong);
        box-shadow: none !important;
        font-size: 14px;
    }

    .community-header .community-header-search input:focus {
        border: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
    }

    .community-header .community-header-search input::placeholder {
        color: var(--community-text-placeholder);
        opacity: 1;
    }

    .community-header .community-header-search .community-header-search-submit {
        align-self: center;
        min-width: 0;
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: var(--community-surface);
        color: var(--community-text-soft);
        box-shadow: var(--community-shadow-xs);
        cursor: pointer;
    }

    .community-header .community-header-search .community-header-search-submit {
        margin-right: 4px;
    }

    .community-header .community-header-search .community-header-search-submit:hover {
        background: var(--community-surface-soft);
        color: var(--community-text-strong);
    }

    .community-header .community-header-search button svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.7;
    }

    .community-header .community-header-actions {
        display: flex;
        align-items: center;
        gap: 28px;
        margin-left: auto;
    }

    .community-membership-link {
        display: inline-flex;
        min-width: 114px;
        height: 34px;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 0 12px;
        border-radius: 9px;
        background: #1d1d1d;
        color: #f0b86c;
        font-size: 13px;
        font-weight: 800;
        white-space: nowrap;
        transition: background-color 150ms ease, transform 150ms ease;
    }

    .community-membership-link:hover {
        background: #2a2a2a;
        color: #f4c17d;
        transform: translateY(-1px);
    }

    .community-membership-link svg {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.8;
    }

    .community-membership-link svg path:first-child {
        fill: #e3ae68;
        stroke: #e3ae68;
    }

    .community-membership-link svg path:last-child {
        stroke: #4c2d10;
    }

    .community-header .community-account-link {
        display: inline-flex;
        min-width: auto;
        height: 34px;
        padding: 0 3px;
        border-radius: 0;
        background: transparent;
        color: #111111;
        font-size: 14px;
        font-weight: 600;
    }

    .community-header .community-account-link:hover {
        background: transparent;
        color: #ff5b47;
    }

    .community-register-link {
        display: inline-flex;
        width: 76px;
        height: 36px;
        align-items: center;
        justify-content: center;
        border-radius: 11px;
        background: #ff5a3d;
        color: #ffffff;
        font-size: 14px;
        font-weight: 800;
        transition: background-color 150ms ease, transform 150ms ease;
    }

    .community-register-link:hover {
        background: #f34d31;
        color: #ffffff;
        transform: translateY(-1px);
    }

    .community-main {
        padding-top: var(--community-header-height);
    }
}

@media (max-width: 900px) {
    .community-membership-link,
    .community-register-link {
        display: none !important;
    }
}

/* Desktop Top Navigation V11: the sidebar is the primary site navigation */
@media (min-width: 901px) {
    .community-header {
        display: none;
    }

    .community-main {
        padding-top: 22px;
    }
}

/* 420: preserve the two-column feed with tighter project cards. */
@media (max-width: 420px) {
    .community-brand .brand-copy,
    .community-brand-copy {
        max-width: 92px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .community-icon-button:first-child {
        display: none;
    }

    .community-create-button {
        padding: 0 9px;
    }

    .community-feature .feature-copy,
    .community-feature .community-feature-copy,
    .community-feature.is-main .feature-copy,
    .community-feature.is-main .community-feature-copy {
        padding: 11px;
    }

    .community-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .community-tabs {
        width: 100%;
    }

    .community-sort {
        align-self: center;
        margin-top: 0;
    }

    .community-grid {
        column-gap: 8px;
    }

    .community-grid .prompt-info {
        padding: 8px 6px 7px;
    }

    .community-grid .prompt-type {
        top: 7px;
        right: 7px;
    }

    .community-grid .prompt-card-meta em {
        display: none;
    }

    .community-grid .prompt-primary svg {
        display: none;
    }
}

@media (max-width: 389px) {
    .community-carousel,
    .community-hero {
        --community-carousel-gap: 10px;
        --community-carousel-card-width: 72vw;
    }

    .community-feature .feature-title,
    .community-feature .community-feature-title,
    .community-feature.is-main .feature-title,
    .community-feature.is-main .community-feature-title {
        font-size: 15px;
    }

    .community-grid {
        column-count: 1;
        column-gap: 0;
    }

    .community-grid .prompt-info {
        padding: 10px 8px 9px;
    }

    .community-grid .prompt-info h2 {
        min-height: 0;
        font-size: 14px;
        white-space: nowrap;
    }

    .community-grid .prompt-description {
        display: -webkit-box;
        min-height: 0;
    }

    .community-grid .prompt-footer {
        min-height: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .community-home-body *,
    .community-home-body *::before,
    .community-home-body *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .community-grid .prompt-card {
        animation: none;
    }
}

/* Sidebar V7: integrated prompt workspace */
:root {
    --community-sidebar-width: 232px;
}

.community-sidebar {
    align-items: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 17px 14px 14px;
    border-right-color: color-mix(in srgb, var(--community-line) 86%, transparent);
    background: color-mix(in srgb, var(--community-surface) 98%, #f7f7fb 2%);
    box-shadow: 8px 0 28px rgba(31, 38, 68, 0.035);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.community-sidebar::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.community-sidebar::before {
    display: none;
}

.community-side-brand {
    justify-content: flex-start;
    gap: 10px;
    margin: 0 3px 14px;
    padding: 1px;
}

.community-side-brand .community-brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border: 0;
    border-radius: 11px;
    background: var(--community-yellow);
    box-shadow: 0 7px 16px rgba(79, 70, 229, 0.19);
    font-size: 10px;
}

.community-side-brand .community-brand-mark::before {
    display: none;
}

.community-side-brand-copy {
    display: grid;
}

.community-side-brand-copy strong {
    font-size: 15px;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.community-side-brand-copy small {
    margin-top: 4px;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.community-prompt-panel {
    display: grid;
    gap: 8px;
    margin: 0 2px 12px;
    padding: 0 0 13px;
    border: 0;
    border-bottom: 1px solid var(--community-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .community-prompt-panel {
    background: transparent;
}

.community-prompt-panel-head {
    align-items: center;
    gap: 8px;
    padding: 0 2px;
}

.community-prompt-panel-head > div {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 7px;
}

.community-prompt-panel-head strong {
    font-size: 12px;
    font-weight: 850;
}

.community-prompt-panel-head small {
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.community-prompt-panel-head > a {
    min-height: auto;
    padding: 2px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--community-yellow);
    font-size: 9px;
    font-weight: 800;
}

.community-prompt-panel-head > a::after {
    margin-left: 3px;
    content: "›";
    font-size: 12px;
    line-height: 1;
}

html[data-theme="dark"] .community-prompt-panel-head > a {
    background: transparent;
}

.community-side-search {
    height: 36px;
    gap: 7px;
    border-color: var(--community-line);
    border-radius: 9px;
    background: var(--community-surface-soft);
    padding: 0 4px 0 10px;
    box-shadow: none;
}

.community-side-search:focus-within {
    border-color: color-mix(in srgb, var(--community-yellow) 48%, var(--community-line));
    background: var(--community-surface);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.community-side-search > svg {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
}

.community-side-search input {
    font-size: 11px;
}

.community-side-search button {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border-radius: 7px;
    background: var(--community-yellow);
    font-size: 12px;
    transition: background-color 160ms ease, transform 160ms ease;
}

.community-side-search button:hover {
    background: var(--community-yellow-hover);
    transform: translateX(1px);
}

.community-prompt-tabs {
    gap: 2px;
    padding: 3px;
    border-radius: 9px;
    background: var(--community-surface-muted);
}

.community-prompt-tabs a,
html[data-theme="dark"] .community-prompt-tabs a {
    min-height: 26px;
    border-radius: 7px;
    background: transparent;
    font-size: 9px;
    font-weight: 800;
}

.community-prompt-tabs a:hover {
    background: color-mix(in srgb, var(--community-surface) 70%, transparent);
    color: var(--community-text-strong);
}

.community-prompt-tabs a.is-active,
.community-prompt-tabs a.is-active:hover {
    background: var(--community-surface);
    color: var(--community-yellow);
    box-shadow: 0 1px 4px rgba(31, 38, 68, 0.07);
}

.community-prompt-tags {
    max-height: 39px;
    gap: 4px;
}

.community-prompt-tags a {
    border: 1px solid color-mix(in srgb, var(--community-line) 78%, transparent);
    border-radius: 5px;
    background: transparent;
    padding: 2px 5px;
    color: var(--community-text-faint);
    font-size: 8px;
    line-height: 1.3;
}

.community-prompt-tags a:hover {
    border-color: color-mix(in srgb, var(--community-yellow) 22%, var(--community-line));
    background: var(--community-yellow-soft);
    color: var(--community-yellow);
}

.community-publish-button {
    width: auto;
    min-height: 42px;
    flex-direction: row;
    gap: 8px;
    margin: 0 2px 14px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: var(--community-yellow);
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.17);
}

.community-publish-button:hover {
    background: var(--community-yellow-hover);
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.22);
}

.community-publish-button > span {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.14);
}

.community-publish-button > span svg {
    width: 14px;
    height: 14px;
}

.community-publish-button strong {
    font-size: 11px;
    font-weight: 800;
}

.community-side-group {
    width: 100%;
    align-items: stretch;
    gap: 2px;
    margin: 0 0 10px;
}

.community-side-label {
    display: block;
    margin: 0 9px 5px;
    color: var(--community-text-faint);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.community-side-link,
.community-side-theme {
    width: 100%;
    min-height: 39px;
    justify-content: flex-start;
    flex-direction: row;
    gap: 8px;
    padding: 0 9px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--community-text-soft);
    font-size: 11px;
    font-weight: 720;
    text-align: left;
}

.community-side-link > span,
.community-side-theme > span {
    display: block;
    width: auto;
    flex: 1 1 auto;
    overflow: hidden;
    font-size: 11px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-side-link:hover,
.community-side-theme:hover {
    border-color: transparent;
    background: var(--community-surface-soft);
    color: var(--community-text-strong);
    transform: none;
}

.community-side-link.is-active,
html[data-theme="dark"] .community-side-link.is-active {
    border-color: transparent;
    background: var(--community-yellow-soft);
    color: var(--community-yellow);
    box-shadow: inset 3px 0 0 var(--community-yellow);
}

.community-side-link.is-active::after {
    display: none;
}

.community-side-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--community-text-faint);
    box-shadow: none;
}

.community-side-icon svg {
    width: 17px;
    height: 17px;
}

.community-side-link:hover .community-side-icon {
    background: var(--community-surface-muted);
    color: var(--community-text-strong);
}

.community-side-link.is-active .community-side-icon {
    border: 0;
    background: var(--community-yellow);
    color: #ffffff;
    box-shadow: 0 5px 11px rgba(79, 70, 229, 0.18);
}

.community-side-bottom {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
    justify-content: stretch;
    gap: 5px;
    margin-top: auto;
    padding-top: 10px;
    border-top-color: var(--community-line);
}

.community-side-bottom .community-side-link,
.community-side-bottom .community-side-theme {
    height: 36px;
    min-height: 36px;
    border: 0;
    border-radius: 9px;
    background: transparent;
}

.community-side-bottom .community-side-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0 8px;
}

.community-side-bottom .community-side-theme {
    width: 38px;
    justify-content: center;
    padding: 0;
}

.community-side-bottom .community-side-link > span {
    display: block;
    font-size: 10px;
}

.community-side-bottom .community-side-theme > span {
    display: none;
}

.community-side-bottom .community-side-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
}

.community-side-bottom .community-side-icon svg {
    width: 15px;
    height: 15px;
}

html[data-theme="dark"] .community-sidebar {
    border-right-color: var(--community-line);
    background: var(--community-surface);
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.14);
}

html[data-theme="dark"] .community-side-icon {
    border: 0;
    background: transparent;
    color: var(--community-text-faint);
    box-shadow: none;
}

html[data-theme="dark"] .community-side-link:hover,
html[data-theme="dark"] .community-side-theme:hover {
    border-color: transparent;
    background: var(--community-surface-soft);
    color: var(--community-text-strong);
}

html[data-theme="dark"] .community-side-link:not(.is-active):hover .community-side-icon {
    background: var(--community-surface-muted);
    color: var(--community-text-strong);
}

@media (max-width: 1200px) {
    :root {
        --community-sidebar-width: 72px;
    }

    .community-sidebar {
        align-items: center;
        padding: 14px 10px 12px;
    }

    .community-side-brand {
        justify-content: center;
        margin: 0 0 14px;
    }

    .community-side-brand .community-brand-mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .community-side-brand-copy,
    .community-prompt-panel,
    .community-side-label,
    .community-publish-button strong,
    .community-side-link > span,
    .community-side-theme > span {
        display: none;
    }

    .community-publish-button,
    .community-side-link,
    .community-side-theme {
        width: 46px;
        min-height: 42px;
        justify-content: center;
        padding: 0;
    }

    .community-publish-button {
        height: 42px;
        margin: 0 0 14px;
    }

    .community-publish-button > span {
        width: 25px;
        height: 25px;
        background: transparent;
    }

    .community-side-group {
        width: 100%;
        justify-items: center;
        gap: 4px;
        margin-bottom: 10px;
    }

    .community-side-link.is-active,
    html[data-theme="dark"] .community-side-link.is-active {
        background: var(--community-yellow-soft);
        box-shadow: none;
    }

    .community-side-icon,
    .community-side-bottom .community-side-icon {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }

    .community-side-bottom {
        width: 100%;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 4px;
        margin-top: auto;
    }

    .community-side-bottom .community-side-link,
    .community-side-bottom .community-side-theme {
        width: 42px;
        height: 38px;
        min-height: 38px;
        justify-content: center;
        padding: 0;
    }
}

@media (max-width: 900px) {
    :root {
        --community-sidebar-width: 0px;
    }

    .community-sidebar {
        display: none;
    }
}

/* Sidebar V8: Lib-style hierarchical navigation */
:root {
    --community-sidebar-width: 208px;
    --community-sidebar-selected: #ececee;
    --community-sidebar-hover: #f6f6f7;
}

html[data-theme="dark"] {
    --community-sidebar-selected: #343438;
    --community-sidebar-hover: #29292c;
}

.community-sidebar {
    align-items: stretch;
    padding: 18px 12px 14px;
    border-right: 1px solid var(--community-line);
    background: var(--community-surface);
    color: var(--community-text);
    box-shadow: none;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

.community-sidebar,
.community-sidebar *,
.community-sidebar *::before,
.community-sidebar *::after {
    box-sizing: border-box;
}

.community-sidebar a {
    text-decoration: none !important;
}

.community-sidebar button,
.community-sidebar summary {
    color: inherit;
    font: inherit;
}

.community-side-brand-row {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 3px 19px;
}

.community-side-brand {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    margin: 0;
    padding: 0;
}

.community-side-brand .community-brand-mark {
    display: grid;
    width: 25px;
    height: 30px;
    flex: 0 0 25px;
    place-items: center;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.community-side-brand .community-brand-mark svg {
    width: 25px;
    height: 30px;
    fill: #2563eb;
    stroke: none;
}

.community-side-brand-copy {
    display: block;
    min-width: 0;
}

.community-side-brand-copy strong {
    display: block;
    overflow: hidden;
    color: var(--community-text-strong);
    font-size: 17px;
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-side-collapse,
.community-side-utility {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--community-text-strong);
    cursor: pointer;
}

.community-side-collapse {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.community-side-collapse:hover,
.community-side-utility:hover {
    background: var(--community-sidebar-hover);
}

.community-sidebar .community-side-collapse svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.community-side-navigation,
.community-side-secondary {
    display: grid;
    align-items: start;
    gap: 3px;
}

.community-side-link,
.community-side-parent {
    display: flex;
    width: 100%;
    min-height: 39px;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    padding: 0 10px;
    color: var(--community-text);
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    text-align: left;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.community-side-link > span,
.community-side-parent > span {
    display: block;
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-sidebar .community-side-link:hover,
.community-side-parent:hover {
    border-color: transparent;
    background: var(--community-sidebar-hover);
    color: var(--community-text-strong);
    transform: none;
}

.community-sidebar .community-side-link.is-active,
html[data-theme="dark"] .community-sidebar .community-side-link.is-active {
    border-color: transparent;
    background: var(--community-sidebar-selected);
    color: var(--community-text-strong);
    box-shadow: none;
}

.community-sidebar .community-side-link.is-active::after {
    display: none;
}

.community-sidebar .community-side-icon {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: currentColor;
    box-shadow: none;
}

.community-sidebar .community-side-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.community-sidebar .community-side-link:hover .community-side-icon,
.community-sidebar .community-side-link.is-active .community-side-icon,
html[data-theme="dark"] .community-sidebar .community-side-link:hover .community-side-icon,
html[data-theme="dark"] .community-sidebar .community-side-link.is-active .community-side-icon {
    border: 0;
    background: transparent;
    color: currentColor;
    box-shadow: none;
}

.community-side-creator {
    margin: 2px 0 1px;
}

.community-side-creator > summary {
    list-style: none;
}

.community-side-creator > summary::-webkit-details-marker {
    display: none;
}

.community-side-creator > summary::marker {
    content: "";
}

.community-sidebar .community-side-chevron {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    transition: transform 160ms ease;
}

.community-side-creator:not([open]) .community-side-chevron {
    transform: rotate(-90deg);
}

.community-side-submenu {
    position: relative;
    display: grid;
    gap: 1px;
    margin: 1px 0 9px 22px;
    padding: 1px 0 1px 20px;
}

.community-side-submenu::before {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 1px;
    background: var(--community-line-strong);
    content: "";
}

.community-side-submenu a {
    display: flex;
    min-height: 32px;
    align-items: center;
    overflow: hidden;
    border-radius: 6px;
    padding: 0 8px;
    color: var(--community-text-soft);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background-color 150ms ease, color 150ms ease;
}

.community-side-submenu a:hover {
    background: var(--community-sidebar-hover);
    color: var(--community-text-strong);
}

.community-side-navigation > .community-side-link:last-child {
    margin-top: 3px;
}

.community-side-secondary {
    margin-top: 9px;
    padding-top: 12px;
    border-top: 1px solid var(--community-line);
}

.community-side-bottom {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 16px 4px 0;
    border: 0;
}

.community-side-cta {
    display: flex;
    width: 176px;
    max-width: 100%;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 8px;
    background: var(--community-sidebar-selected);
    color: var(--community-text-strong);
    font-size: 13px;
    font-weight: 700;
    transition: background-color 150ms ease, transform 150ms ease;
}

.community-side-cta:hover {
    background: color-mix(in srgb, var(--community-sidebar-selected) 80%, var(--community-line-strong));
    transform: translateY(-1px);
}

.community-sidebar .community-side-cta svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.community-side-utilities {
    display: grid;
    width: 176px;
    max-width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-top: 8px;
}

.community-side-utility {
    width: 100%;
    height: 40px;
    border-radius: 8px;
}

.community-sidebar .community-side-utility svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

html.community-sidebar-collapsed {
    --community-sidebar-width: 78px;
}

html.community-sidebar-collapsed .community-sidebar {
    align-items: center;
    padding: 14px 8px 12px;
}

html.community-sidebar-collapsed .community-side-brand-row {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
    margin: 0 0 16px;
}

html.community-sidebar-collapsed .community-side-brand {
    flex: 0 0 auto;
}

html.community-sidebar-collapsed .community-side-brand-copy,
html.community-sidebar-collapsed .community-side-link > span,
html.community-sidebar-collapsed .community-side-parent > span,
html.community-sidebar-collapsed .community-side-chevron,
html.community-sidebar-collapsed .community-side-submenu,
html.community-sidebar-collapsed .community-side-cta-label {
    display: none;
}

html.community-sidebar-collapsed .community-side-collapse {
    display: grid;
    width: 27px;
    height: 27px;
    background: var(--community-sidebar-selected);
}

html.community-sidebar-collapsed .community-side-navigation,
html.community-sidebar-collapsed .community-side-secondary,
html.community-sidebar-collapsed .community-side-bottom {
    width: 100%;
}

html.community-sidebar-collapsed .community-side-link,
html.community-sidebar-collapsed .community-side-parent {
    width: 46px;
    min-height: 42px;
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
    padding: 0;
}

html.community-sidebar-collapsed .community-side-secondary {
    justify-items: center;
}

html.community-sidebar-collapsed .community-side-cta {
    width: 46px;
    min-height: 40px;
    margin: 0 auto;
}

html.community-sidebar-collapsed .community-side-cta svg {
    width: 18px;
    height: 18px;
}

html.community-sidebar-collapsed .community-side-utilities {
    grid-template-columns: 1fr;
    justify-items: center;
}

html.community-sidebar-collapsed .community-side-utility {
    width: 46px;
}

@media (max-width: 900px) {
    :root,
    html.community-sidebar-collapsed {
        --community-sidebar-width: 0px;
    }

    .community-sidebar {
        display: none;
    }
}

/* Mobile Header V9: compact brand bar with an off-canvas menu */
.community-mobile-menu-button,
.community-mobile-brand-mark,
.community-mobile-drawer-close,
.community-mobile-sidebar-backdrop {
    display: none;
}

@media (max-width: 900px) {
    :root,
    html.community-sidebar-collapsed {
        --community-header-height: 52px;
        --community-sidebar-width: 0px;
    }

    .community-header {
        right: 0;
        left: 0;
        height: var(--community-header-height);
        border-bottom: 1px solid var(--community-line);
        background: var(--community-surface);
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.025);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .community-header .community-header-inner {
        width: 100%;
        gap: 0;
        padding: 0 16px;
    }

    .community-mobile-menu-button {
        display: grid;
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
        position: relative;
        place-items: center;
        margin-right: 10px;
        padding: 0;
        border: 1px solid #e7eaf0;
        border-radius: 11px;
        background: #f3f4f6;
        color: #344054;
        box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
        cursor: pointer;
        touch-action: manipulation;
        transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
    }

    .community-mobile-menu-button:hover,
    .community-mobile-menu-button[aria-expanded="true"] {
        border-color: #dce3ff;
        background: #eef2ff;
        color: #4b6ef5;
    }

    .community-mobile-menu-button:active {
        transform: scale(.94);
    }

    .community-mobile-menu-fallback {
        display: none;
    }

    .community-mobile-menu-button::before,
    .community-mobile-menu-button::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transform-origin: center;
        transition: opacity 150ms ease, transform 180ms ease, box-shadow 180ms ease;
    }

    .community-mobile-menu-button::before {
        box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
        transform: translate(-50%, -50%);
    }

    .community-mobile-menu-button::after {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .community-mobile-menu-button[aria-expanded="true"]::before {
        box-shadow: none;
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .community-mobile-menu-button[aria-expanded="true"]::after {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .community-header .community-brand {
        display: inline-flex;
        min-width: 0;
        max-width: calc(100vw - 142px);
        flex: 0 1 auto;
        gap: 6px;
        margin: 0 auto 0 0;
    }

    .community-header .community-brand-mark {
        display: none;
    }

    .community-mobile-brand-mark {
        display: grid;
        width: 25px;
        height: 30px;
        flex: 0 0 25px;
        place-items: center;
    }

    .community-mobile-brand-mark svg {
        width: 25px;
        height: 30px;
        fill: #2563eb;
        stroke: none;
    }

    .community-header .community-brand-copy {
        display: block;
        max-width: calc(100vw - 176px);
        overflow: hidden;
        font-size: 17px;
        line-height: 1.1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .community-header .community-brand-copy strong {
        display: block;
        overflow: hidden;
        color: var(--community-text-strong);
        font-size: 17px;
        font-weight: 850;
        letter-spacing: -0.025em;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .community-header .community-brand-copy small,
    .community-nav,
    .community-header-search,
    .community-header-actions .community-icon-button,
    .community-header-actions .community-create-button {
        display: none !important;
    }

    .community-header-actions {
        display: flex;
        flex: 0 0 auto;
        gap: 0;
        margin-left: 10px;
    }

    .community-header .community-account-link {
        display: inline-flex !important;
        min-width: 54px;
        height: 32px;
        align-items: center;
        justify-content: center;
        padding: 0 14px;
        border-radius: 999px;
        background: #5575f6;
        color: #ffffff;
        font-size: 13px;
        font-weight: 800;
        line-height: 1;
    }

    .community-header .community-account-link:hover {
        background: #4665e7;
        color: #ffffff;
    }

    .community-main {
        margin-left: 0;
        padding-top: calc(var(--community-header-height) + 12px);
    }

    .community-sidebar,
    html.community-sidebar-collapsed .community-sidebar {
        z-index: 1400;
        inset: 0 auto auto 0;
        display: flex;
        width: min(82vw, 280px);
        max-width: 280px;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        max-height: 100vh;
        max-height: 100dvh;
        align-items: stretch;
        padding: 18px 12px max(24px, calc(14px + env(safe-area-inset-bottom)));
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        scroll-padding-bottom: max(24px, calc(14px + env(safe-area-inset-bottom)));
        touch-action: pan-y;
        background: var(--community-surface);
        box-shadow: 18px 0 48px rgba(15, 23, 42, 0.16);
        opacity: 0;
        pointer-events: none;
        transform: translateX(-104%);
        visibility: hidden;
        -webkit-overflow-scrolling: touch;
        transition: transform 220ms var(--community-ease), opacity 180ms ease, visibility 0s linear 220ms;
    }

    .community-sidebar > * {
        flex-shrink: 0;
    }

    html.community-mobile-sidebar-open .community-sidebar {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
        visibility: visible;
        transition-delay: 0s;
    }

    .community-mobile-sidebar-backdrop {
        position: fixed;
        z-index: 1350;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(15, 23, 42, 0.38);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
    }

    html.community-mobile-sidebar-open .community-mobile-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    html.community-mobile-sidebar-open body {
        overflow: hidden;
    }

    .community-side-collapse {
        display: none !important;
    }

    .community-mobile-drawer-close {
        display: grid;
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        place-items: center;
        border: 0;
        border-radius: 8px;
        background: var(--community-sidebar-hover);
        color: var(--community-text-strong);
        cursor: pointer;
    }

    .community-sidebar .community-mobile-drawer-close svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-width: 1.8;
    }

    html.community-sidebar-collapsed .community-side-brand-row {
        width: auto;
        justify-content: space-between;
        gap: 8px;
        margin: 0 3px 19px;
    }

    html.community-sidebar-collapsed .community-side-brand {
        flex: 1 1 auto;
    }

    html.community-sidebar-collapsed .community-side-brand-copy,
    html.community-sidebar-collapsed .community-side-link > span,
    html.community-sidebar-collapsed .community-side-parent > span,
    html.community-sidebar-collapsed .community-side-chevron,
    html.community-sidebar-collapsed .community-side-cta-label {
        display: block;
    }

    html.community-sidebar-collapsed .community-side-submenu {
        display: grid;
    }

    html.community-sidebar-collapsed .community-side-navigation,
    html.community-sidebar-collapsed .community-side-secondary,
    html.community-sidebar-collapsed .community-side-bottom {
        width: 100%;
    }

    html.community-sidebar-collapsed .community-side-link,
    html.community-sidebar-collapsed .community-side-parent {
        width: 100%;
        min-height: 39px;
        justify-content: flex-start;
        margin-right: 0;
        margin-left: 0;
        padding: 0 10px;
    }

    html.community-sidebar-collapsed .community-side-secondary {
        justify-items: stretch;
    }

    html.community-sidebar-collapsed .community-side-cta {
        width: 176px;
        max-width: 100%;
        min-height: 40px;
        margin: 0;
    }

    html.community-sidebar-collapsed .community-side-cta svg {
        width: 16px;
        height: 16px;
    }

    html.community-sidebar-collapsed .community-side-utilities {
        width: 176px;
        max-width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-items: stretch;
    }

    html.community-sidebar-collapsed .community-side-utility {
        width: 100%;
    }

    .community-sidebar .community-side-utility-menu {
        display: none;
    }
}

/* Recommendation Controls V10: two-level editorial navigation */
body.community-home-body,
.community-main,
.community-content,
.community-recommend-controls,
.community-recommend-controls .community-toolbar {
    background: var(--community-surface);
}

.community-recommend-controls {
    margin-bottom: 16px;
}

.community-recommend-controls .community-toolbar {
    min-height: 52px;
    align-items: stretch;
}

.community-recommend-controls .community-tabs {
    align-items: stretch;
    gap: 32px;
}

.community-recommend-slogan {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-left: auto;
    padding: 0 14px;
    border: 1px solid #f3d7a5;
    border-radius: 999px;
    background: #fff8e9;
    color: #b87828;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(190, 123, 35, 0.06);
}

html[data-theme="dark"] .community-recommend-slogan {
    border-color: rgba(234, 169, 92, 0.28);
    background: rgba(168, 105, 22, 0.14);
    color: #f3bd78;
    box-shadow: none;
}

@media (max-width: 900px) {
    .community-recommend-slogan {
        display: none;
    }
}

.community-recommend-controls .community-tab {
    position: relative;
    min-height: 52px;
    gap: 5px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--community-text-faint);
    font-size: 15px;
    font-weight: 560;
    letter-spacing: -0.01em;
}

.community-recommend-controls .community-tab:hover,
.community-recommend-controls .community-tab.is-active {
    background: transparent;
    color: var(--community-text-strong);
}

.community-recommend-controls .community-tab::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--community-text-strong);
    content: "";
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 150ms ease, transform 180ms ease;
}

.community-recommend-controls .community-tab.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.community-recommend-subtabs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 0;
}

.community-recommend-subtab {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border-radius: 8px;
    background: #f4f4f5;
    color: #666666;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.community-recommend-subtab:hover {
    background: #ececef;
    color: #222222;
}

.community-recommend-subtab.is-active {
    background: #191919;
    color: #ffffff;
    font-weight: 700;
}

.community-home-tagbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    margin-top: 14px;
}

.community-home-tag-label {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    color: #6e7f93;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

.community-home-tag-list {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.community-home-tag {
    display: inline-flex;
    min-height: 32px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid #dce6f1;
    border-radius: 999px;
    background: #f7f9fc;
    color: #58708a;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.community-home-tag:hover {
    border-color: #b9cadb;
    background: #eef3f8;
    color: #263c52;
}

.community-home-tag.is-active {
    border-color: #191919;
    background: #191919;
    color: #ffffff;
}

html[data-theme="dark"] .community-home-tag-label {
    color: #aeb8c4;
}

html[data-theme="dark"] .community-home-tag {
    border-color: #3a4552;
    background: #242a31;
    color: #c5d0dc;
}

html[data-theme="dark"] .community-home-tag:hover {
    border-color: #586777;
    background: #303944;
    color: #ffffff;
}

html[data-theme="dark"] .community-home-tag.is-active {
    border-color: #f2f2f2;
    background: #f2f2f2;
    color: #111111;
}

html[data-theme="dark"] .community-recommend-subtab.is-active {
    background: #f2f2f2;
    color: #111111;
}

html[data-theme="dark"] .community-recommend-subtab:not(.is-active) {
    background: #2b2b2e;
    color: #b8b8bd;
}

.community-recommend-controls + .community-results-note {
    margin-top: 2px;
}

@media (max-width: 640px) {
    .community-recommend-controls {
        margin-bottom: 12px;
    }

    .community-recommend-controls .community-toolbar {
        min-height: 0;
        align-items: stretch;
        gap: 10px;
        border-bottom: 0;
    }

    .community-recommend-controls .community-tabs {
        width: 100%;
        min-height: 44px;
        align-items: stretch;
        gap: 24px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .community-recommend-controls .community-tabs::-webkit-scrollbar {
        display: none;
    }

    .community-recommend-controls .community-tab {
        min-height: 44px;
        flex: 0 0 auto;
        padding: 0;
        font-size: 13px;
    }

    .community-recommend-subtabs {
        gap: 9px;
        margin-top: 14px;
    }

    .community-recommend-subtab {
        min-height: 32px;
        padding: 0 13px;
        font-size: 13px;
    }

    .community-home-tagbar {
        display: flex;
        width: 100%;
        min-width: 0;
        align-items: center;
        gap: 7px;
        margin-top: 12px;
        overflow: hidden;
    }

    .community-home-tag,
    .community-home-tag-label {
        min-height: 30px;
        font-size: 13px;
    }

    .community-home-tag-label {
        flex: 0 0 auto;
    }

    .community-home-tag-list {
        min-width: 0;
        flex: 1 1 auto;
        flex-wrap: nowrap;
        align-items: center;
        gap: 7px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 1px 0 5px;
        cursor: grab;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .community-home-tag-list::-webkit-scrollbar {
        display: none;
    }

    .community-home-tag-list.is-dragging {
        cursor: grabbing;
        user-select: none;
    }
}

/* Homepage Header V12 final activation */
@media (min-width: 901px) {
    .community-header {
        display: block;
    }

    .community-main {
        padding-top: var(--community-header-height);
    }

    .community-recommend-controls {
        position: sticky;
        top: var(--community-header-height);
        z-index: 900;
        margin-bottom: 8px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--community-line);
        background: var(--community-surface);
        box-shadow: 0 8px 16px color-mix(in srgb, var(--community-surface) 92%, transparent);
    }
}

/* Homepage account actions V13 */
@media (min-width: 901px) {
    .community-header .community-header-actions {
        gap: 8px;
    }

    .community-invite-link,
    .community-checkin-button,
    .community-balance-link,
    .community-auth-link {
        display: inline-flex;
        height: 32px;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 0;
        border-radius: 999px;
        font-size: 13px;
        font-weight: 750;
        line-height: 1;
        white-space: nowrap;
        cursor: pointer;
        transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
    }

    .community-header-actions:not(.is-authenticated) .community-auth-only {
        display: none;
    }

    .community-invite-link {
        appearance: none;
        -webkit-appearance: none;
        position: relative;
        min-width: 104px;
        height: 34px;
        gap: 6px;
        margin: 0;
        padding: 0 12px;
        overflow: hidden;
        border: 1px solid #ffe7c8;
        border-radius: 7px;
        outline: 0;
        background: #fff6e9;
        color: #ff7200;
        box-shadow: none;
        font: inherit;
        font-size: 13px;
        font-weight: 800;
        line-height: 1;
        cursor: pointer;
        transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
    }

    .community-invite-link:hover {
        border-color: #ffd7a4;
        background: #ffedd7;
        color: #e86400;
        transform: none;
    }

    .community-invite-link:active {
        border-color: #ffc987;
        background: #ffe5c5;
        color: #d95d00;
    }

    .community-invite-link:focus-visible {
        border-color: #ffad5c;
        background: #fff3e2;
        color: #e86400;
        box-shadow: 0 0 0 3px rgba(255, 114, 0, 0.14);
    }

    .community-invite-link:disabled {
        border-color: #ffe7c8;
        background: #fff6e9;
        color: #ff7200;
        cursor: not-allowed;
        opacity: 0.5;
    }

    .community-invite-icon {
        position: relative;
        z-index: 1;
        display: grid;
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        place-items: center;
    }

    .community-invite-icon .n-icon-slot {
        display: grid;
        width: 18px;
        height: 18px;
        place-items: center;
    }

    .community-invite-link .community-invite-icon svg {
        width: 18px !important;
        height: 18px !important;
        flex: 0 0 18px !important;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.5 !important;
        stroke-linecap: butt;
        stroke-linejoin: miter;
    }

    .community-invite-content {
        position: relative;
        z-index: 1;
    }

    .community-invite-wave {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: transparent;
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, -50%) scale(0);
    }

    .community-invite-link:active .community-invite-wave {
        animation: community-invite-ripple 600ms cubic-bezier(0, 0, .2, 1);
    }

    html[data-theme="dark"] .community-invite-link {
        border-color: #3a3e47;
        background: rgba(255, 255, 255, 0.07);
        color: #f4f6fa;
    }

    html[data-theme="dark"] .community-invite-link:hover {
        border-color: #6b96ff;
        background: rgba(255, 255, 255, 0.11);
        color: #ffffff;
    }

    .community-invite-link svg,
    .community-checkin-button svg,
    .community-balance-link svg,
    .community-notification-link svg,
    .community-theme-button svg {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.7;
    }

    .community-checkin-button {
        min-width: 108px;
        padding: 0 12px;
        background: var(--community-yellow-soft);
        color: var(--community-yellow);
    }

    .community-checkin-button:hover:not(:disabled) {
        background: color-mix(in srgb, var(--community-yellow) 16%, var(--community-surface));
        transform: translateY(-1px);
    }

    .community-checkin-button:disabled {
        cursor: default;
        opacity: 0.72;
    }

    .community-checkin-button.is-loading svg {
        animation: community-account-spin 700ms linear infinite;
    }

    .community-balance-link {
        min-width: 92px;
        padding: 0 12px;
        background: var(--community-surface-muted);
        color: var(--community-text-strong);
    }

    .community-balance-link:hover {
        background: var(--community-line);
        color: var(--community-text-strong);
        transform: translateY(-1px);
    }

    .community-balance-link svg {
        color: #f0a52b;
        fill: currentColor;
        stroke: currentColor;
    }

    .community-balance-link strong {
        max-width: 72px;
        overflow: hidden;
        font-weight: 850;
        text-overflow: ellipsis;
    }

    .community-notification-link,
    .community-theme-button {
        position: relative;
        display: inline-grid;
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        place-items: center;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #f6f7f9;
        color: #18202b;
        box-shadow: none;
        cursor: pointer;
        transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
    }

    .community-notification-link svg,
    .community-theme-button svg {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
        stroke-width: 1.5;
    }

    .community-notification-link .community-notification-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        margin: 0;
        pointer-events: none;
        transform: translate(-50%, -50%);
    }

    .community-notification-link:hover,
    .community-theme-button:hover {
        background: #eceef2;
        color: #111827;
        box-shadow: 0 3px 10px rgba(17, 24, 39, 0.06);
    }

    html[data-theme="dark"] .community-notification-link,
    html[data-theme="dark"] .community-theme-button {
        background: #2a2b2f;
        color: #f3f4f6;
    }

    html[data-theme="dark"] .community-notification-link:hover,
    html[data-theme="dark"] .community-theme-button:hover {
        background: #35363b;
        color: #ffffff;
    }

    .community-notification-badge {
        position: absolute;
        top: -2px;
        right: -3px;
        display: grid;
        min-width: 16px;
        height: 16px;
        place-items: center;
        padding: 0 4px;
        border: 2px solid var(--community-surface);
        border-radius: 999px;
        background: #ef4444;
        color: #ffffff;
        font-size: 9px;
        font-weight: 850;
        line-height: 1;
    }

    .community-notification-badge[hidden] {
        display: none;
    }

    .community-theme-button .community-theme-moon {
        display: block;
    }

    .community-theme-button .community-theme-sun {
        display: none;
    }

    html[data-theme="dark"] .community-theme-button .community-theme-moon {
        display: none;
    }

    html[data-theme="dark"] .community-theme-button .community-theme-sun {
        display: block;
    }

    .community-auth-link {
        min-width: 90px;
        max-width: 150px;
        padding: 0 14px;
        overflow: hidden;
        background: #4b7dff;
        color: #ffffff !important;
        font-weight: 800;
    }

    .community-auth-link:hover {
        background: #3f70f2;
        color: #ffffff !important;
        transform: translateY(-1px);
    }

    .community-auth-link.is-authenticated {
        min-width: 0;
        padding: 0 10px 0 4px;
        background: var(--community-surface-muted);
        color: var(--community-text-strong) !important;
    }

    .community-auth-link.is-authenticated:hover {
        background: var(--community-line);
        color: var(--community-text-strong) !important;
    }

    .community-auth-avatar {
        display: none;
    }

    .community-auth-link.is-authenticated .community-auth-avatar {
        display: grid;
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
        place-items: center;
        overflow: hidden;
        border-radius: 50%;
        background: #4b7dff;
        color: #ffffff;
        font-size: 12px;
        font-weight: 850;
    }

    .community-auth-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .community-auth-link [data-community-auth-label] {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .community-header .community-mobile-account-link {
        display: none !important;
    }
}

@media (max-width: 1400px) and (min-width: 901px) {
    .community-header .community-header-actions {
        gap: 8px;
    }

    .community-checkin-button {
        min-width: 32px;
        width: 32px;
        padding: 0;
    }

    .community-checkin-button > span,
    .community-balance-link > span,
    .community-auth-link.is-authenticated [data-community-auth-label] {
        display: none;
    }

    .community-balance-link {
        min-width: 66px;
        padding: 0 9px;
    }

    .community-auth-link.is-authenticated {
        width: 32px;
        padding: 0 3px;
    }
}

@media (max-width: 900px) {
    .community-invite-link,
    .community-checkin-button,
    .community-balance-link,
    .community-notification-link,
    .community-theme-button,
    .community-auth-link {
        display: none !important;
    }

    .community-header .community-mobile-account-link {
        display: inline-flex !important;
    }

    .community-header .community-mobile-account-link.is-authenticated {
        width: 38px;
        min-width: 38px;
        padding: 0;
        border-radius: 50%;
        background: #4b7dff;
        color: #ffffff;
        font-weight: 850;
    }
}

@keyframes community-invite-ripple {
    0% {
        opacity: 0.16;
        transform: translate(-50%, -50%) scale(0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(18);
    }
}

@keyframes community-account-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Header V14: keep the global search bar visible at the top. */
@media (max-width: 900px) {
    .community-header {
        border-bottom: 1px solid var(--community-line);
        background: var(--community-surface);
        box-shadow: none;
    }

    .community-header .community-header-inner {
        gap: 8px;
        padding: 0 10px;
    }

    .community-mobile-menu-button {
        margin-right: 0;
    }

    .community-header .community-brand {
        display: none !important;
    }

    .community-header .community-header-search {
        width: auto;
        min-width: 0;
        max-width: none;
        height: 38px;
        display: flex !important;
        flex: 1 1 auto;
        align-items: center;
        margin: 0;
        overflow: hidden;
        border: 1px solid transparent;
        border-radius: 999px;
        background: var(--community-surface-muted);
        box-shadow: none;
    }

    .community-header .community-header-search:focus-within {
        border-color: var(--community-yellow);
        background: var(--community-surface-muted);
        box-shadow: none;
    }

    .community-header .community-header-leading-search {
        width: 34px;
        height: 100%;
        display: grid;
        flex: 0 0 34px;
        place-items: center;
        color: var(--community-text-faint);
    }

    .community-header .community-header-leading-search svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.8;
    }

    .community-header .community-header-search input {
        min-width: 0;
        height: 100%;
        flex: 1 1 auto;
        padding: 0 6px 0 0;
        border: 0 !important;
        outline: 0 !important;
        background: transparent;
        color: var(--community-text-strong);
        box-shadow: none !important;
        font-size: 13px;
    }

    .community-header .community-header-search input:focus {
        border: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
    }

    .community-header .community-header-search input::placeholder {
        color: var(--community-text-placeholder);
        opacity: 1;
    }

    .community-header .community-header-search .community-header-search-submit {
        width: 32px;
        min-width: 32px;
        height: 32px;
        display: grid;
        flex: 0 0 32px;
        place-items: center;
        align-self: center;
        margin: 0 3px 0 0;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: var(--community-surface);
        color: var(--community-text-soft);
        box-shadow: var(--community-shadow-xs);
    }

    .community-header .community-header-search .community-header-search-submit:hover {
        background: var(--community-surface-soft);
        color: var(--community-text-strong);
    }

    .community-header .community-header-search .community-header-search-submit svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.7;
    }

    .community-header .community-header-actions {
        margin-left: 0;
    }
}

@media (max-width: 420px) {
    .community-header .community-header-inner {
        gap: 6px;
        padding: 0 7px;
    }

    .community-mobile-menu-button {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .community-header .community-account-link {
        min-width: 50px;
        padding: 0 10px;
    }
}

/* Desktop Sidebar V15: compact icon rail with a hover-revealed expand control. */
@media (min-width: 901px) {
    html.community-sidebar-collapsed {
        --community-sidebar-width: 84px;
    }

    html.community-sidebar-collapsed .community-sidebar {
        align-items: center;
        padding: 13px 10px 16px;
        overflow-x: hidden;
        border-right-color: #eeeeef;
        background: #ffffff;
        box-shadow: none;
    }

    html.community-sidebar-collapsed .community-side-brand-row {
        position: relative;
        width: 44px;
        height: 42px;
        min-height: 42px;
        display: grid;
        place-items: center;
        margin: 0 auto 15px;
    }

    html.community-sidebar-collapsed .community-side-brand {
        position: absolute;
        inset: 0;
        width: 44px;
        height: 42px;
        display: grid;
        place-items: center;
        padding: 0;
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
        transition: opacity 130ms ease, transform 150ms ease;
    }

    html.community-sidebar-collapsed .community-side-brand-copy,
    html.community-sidebar-collapsed .community-side-link > span,
    html.community-sidebar-collapsed .community-side-parent > span,
    html.community-sidebar-collapsed .community-side-chevron,
    html.community-sidebar-collapsed .community-side-submenu,
    html.community-sidebar-collapsed .community-side-cta-label {
        display: none;
    }

    html.community-sidebar-collapsed .community-side-brand .community-brand-mark {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: grid;
        place-items: center;
        color: #161719;
    }

    html.community-sidebar-collapsed .community-side-brand .community-brand-mark svg {
        width: 29px;
        height: 31px;
        fill: currentColor;
    }

    html.community-sidebar-collapsed .community-side-collapse {
        position: absolute;
        z-index: 2;
        inset: 5px auto auto 6px;
        width: 32px;
        height: 32px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 0;
        border-radius: 9px;
        background: #f1f1f2;
        color: #17181b;
        box-shadow: none;
        opacity: 0;
        pointer-events: none;
        transform: scale(0.88);
        transition: opacity 130ms ease, transform 150ms ease, background-color 150ms ease;
    }

    html.community-sidebar-collapsed .community-side-collapse svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
    }

    html.community-sidebar-collapsed .community-side-brand-row:hover .community-side-brand,
    html.community-sidebar-collapsed .community-side-brand-row:has(.community-side-collapse:focus-visible) .community-side-brand {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.88);
    }

    html.community-sidebar-collapsed .community-side-brand-row:hover .community-side-collapse,
    html.community-sidebar-collapsed .community-side-collapse:focus-visible {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
    }

    html.community-sidebar-collapsed .community-side-collapse:hover {
        background: #e8e8ea;
    }

    html.community-sidebar-collapsed .community-side-navigation,
    html.community-sidebar-collapsed .community-side-secondary {
        width: 100%;
        justify-items: center;
        gap: 6px;
    }

    html.community-sidebar-collapsed .community-side-link,
    html.community-sidebar-collapsed .community-side-parent {
        width: 44px;
        min-height: 42px;
        justify-content: center;
        margin-right: auto;
        margin-left: auto;
        padding: 0;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: #17181b;
        box-shadow: none;
    }

    html.community-sidebar-collapsed .community-sidebar .community-side-link.is-active,
    html.community-sidebar-collapsed .community-sidebar .community-side-link.is-active:focus-visible {
        background: transparent;
        color: #17181b;
        box-shadow: none;
    }

    html.community-sidebar-collapsed .community-sidebar .community-side-link:hover,
    html.community-sidebar-collapsed .community-side-parent:hover,
    html.community-sidebar-collapsed .community-sidebar .community-side-link.is-active:hover {
        background: #f1f1f2;
        color: #111214;
    }

    html.community-sidebar-collapsed .community-sidebar .community-side-icon {
        width: 23px;
        height: 23px;
        flex: 0 0 23px;
        display: grid;
        place-items: center;
        background: transparent;
        color: currentColor;
    }

    html.community-sidebar-collapsed .community-sidebar .community-side-icon svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
    }

    html.community-sidebar-collapsed .community-side-creator {
        width: 44px;
        margin: 0 auto;
    }

    html.community-sidebar-collapsed .community-side-secondary {
        margin-top: 5px;
        padding-top: 0;
        border-top: 0;
    }

    html.community-sidebar-collapsed .community-side-bottom {
        display: none;
    }

    html[data-theme="dark"].community-sidebar-collapsed .community-sidebar {
        border-right-color: #2a2a2d;
        background: #171719;
    }

    html[data-theme="dark"].community-sidebar-collapsed .community-side-brand .community-brand-mark {
        color: #f4f4f5;
    }

    html[data-theme="dark"].community-sidebar-collapsed .community-side-link,
    html[data-theme="dark"].community-sidebar-collapsed .community-side-parent,
    html[data-theme="dark"].community-sidebar-collapsed .community-sidebar .community-side-link.is-active,
    html[data-theme="dark"].community-sidebar-collapsed .community-sidebar .community-side-link.is-active:focus-visible {
        color: #f1f1f2;
    }

    html[data-theme="dark"].community-sidebar-collapsed .community-side-collapse,
    html[data-theme="dark"].community-sidebar-collapsed .community-sidebar .community-side-link:hover,
    html[data-theme="dark"].community-sidebar-collapsed .community-side-parent:hover,
    html[data-theme="dark"].community-sidebar-collapsed .community-sidebar .community-side-link.is-active:hover {
        background: #2b2b2e;
        color: #ffffff;
    }
}

/* Sidebar Prompt Library V16 */
.community-side-parent.is-active {
    background: var(--community-sidebar-selected);
    color: var(--community-text-strong);
}

.community-side-submenu a.is-active {
    background: #e8f6ff;
    color: #249fd8;
    font-weight: 800;
}

.community-side-submenu a.is-active:hover {
    background: #dff2fd;
    color: #168cc5;
}

html[data-theme="dark"] .community-side-submenu a.is-active {
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
}

@media (min-width: 901px) {
    html.community-sidebar-collapsed .community-side-parent.is-active {
        background: transparent;
        color: #17181b;
    }

    html.community-sidebar-collapsed .community-side-parent.is-active:hover {
        background: #f1f1f2;
        color: #111214;
    }

    html[data-theme="dark"].community-sidebar-collapsed .community-side-parent.is-active {
        background: transparent;
        color: #f1f1f2;
    }

    html[data-theme="dark"].community-sidebar-collapsed .community-side-parent.is-active:hover {
        background: #2b2b2e;
        color: #ffffff;
    }
}

/* Homepage typography colors V17: neutral hierarchy with restrained warm accents. */
.community-side-brand-copy strong,
.community-brand-copy strong,
.community-grid .prompt-info h2 {
    color: var(--community-text-strong);
}

.community-side-link,
.community-side-parent,
.community-nav-link,
.community-header-search input,
.community-account-link {
    color: var(--community-text);
}

.community-side-submenu a,
.community-recommend-controls .community-tab,
.community-recommend-subtab,
.community-grid .prompt-description,
.community-grid .community-card-source .source-copy,
.community-grid .community-source-copy {
    color: var(--community-text-soft);
}

.community-side-brand-copy small,
.community-brand-copy small,
.community-results-note,
.community-grid .prompt-favorite,
.community-grid .community-card-metrics,
.community-footer {
    color: var(--community-text-faint);
}

.community-header-search input::placeholder,
.community-header .community-header-search input::placeholder {
    color: #4a4f57;
    font-weight: 700;
    opacity: 1;
}

html[data-theme="dark"] .community-header-search input::placeholder,
html[data-theme="dark"] .community-header .community-header-search input::placeholder {
    color: #aeb4bf;
}

.community-nav-link::after,
.community-recommend-controls .community-tab::after {
    background: var(--community-warm-accent);
}

.community-sidebar .community-side-link.is-active,
.community-side-parent.is-active {
    background: var(--community-sidebar-selected);
    color: var(--community-warm-accent);
}

.community-side-submenu a.is-active,
.community-side-submenu a.is-active:hover {
    background: var(--community-warm-accent-soft);
    color: var(--community-warm-accent);
}

.community-recommend-controls .community-tab:hover,
.community-recommend-controls .community-tab.is-active,
.community-nav-link:hover,
.community-nav-link.is-active {
    color: var(--community-text-strong);
}

.community-home-tag-label {
    color: var(--community-text-soft);
}

.community-results-note strong,
.community-footer a {
    color: var(--community-text-soft);
}

.community-grid .prompt-info h2 a:hover,
.community-grid .community-view-metric:hover,
.community-grid .community-view-metric:focus-visible {
    color: var(--community-warm-accent);
}

html[data-theme="dark"] .community-sidebar .community-side-link.is-active,
html[data-theme="dark"] .community-side-parent.is-active {
    background: var(--community-warm-accent-soft);
    color: var(--community-warm-accent);
}

html[data-theme="dark"] .community-side-submenu a.is-active,
html[data-theme="dark"] .community-side-submenu a.is-active:hover {
    background: var(--community-warm-accent-soft);
    color: var(--community-warm-accent);
}

/* Homepage cards V18: applications and prompts use an in-cover information overlay. */
.community-grid .community-source-avatar {
    position: relative;
}

.community-grid .community-source-avatar > span {
    grid-area: 1 / 1;
}

.community-grid .community-source-avatar > img {
    position: absolute;
    inset: 0;
}

.community-grid .prompt-card.has-cover-overlay {
    display: inline-grid;
    grid-template-areas: "cover-stack";
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    vertical-align: top;
    padding: 0;
    border-color: color-mix(in srgb, var(--community-line) 72%, transparent);
    border-radius: 16px;
    background: var(--community-cover-bg);
    isolation: isolate;
}

.community-grid .prompt-card.has-cover-overlay > .prompt-cover,
.community-grid .prompt-card.has-cover-overlay > .prompt-info {
    grid-area: cover-stack;
}

.community-grid .prompt-card.has-cover-overlay > .prompt-cover {
    z-index: 0;
    min-height: 0;
    border-radius: inherit;
}

.community-grid .prompt-card.has-cover-overlay > .prompt-cover::after {
    z-index: 2;
    background: linear-gradient(180deg, rgba(3, 5, 10, 0.02) 34%, rgba(3, 5, 10, 0.16) 64%, rgba(3, 5, 10, 0.66) 100%);
    opacity: 1;
}

.community-grid .prompt-card.has-cover-overlay > .prompt-cover .prompt-fallback {
    min-height: 220px;
}

.community-grid .prompt-card.has-cover-overlay > .prompt-cover .community-card-hover {
    display: none;
}

.community-grid .prompt-card.has-cover-overlay > .prompt-info {
    position: relative;
    z-index: 3;
    align-self: end;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 68px 12px 12px;
    border-radius: 0 0 15px 15px;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 7, 12, 0.24) 24%, rgba(5, 7, 12, 0.9) 100%);
    color: #ffffff;
    pointer-events: none;
}

.community-grid .prompt-card.has-cover-overlay > .prompt-info > * {
    pointer-events: none;
}

.community-grid .prompt-card.has-cover-overlay > .prompt-info a,
.community-grid .prompt-card.has-cover-overlay > .prompt-info button {
    pointer-events: auto;
}

.community-grid .prompt-card.has-cover-overlay .prompt-info h2 {
    display: -webkit-box;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.4;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.48);
    text-overflow: clip;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.community-grid .prompt-card.has-cover-overlay .prompt-info h2 a,
.community-grid .prompt-card.has-cover-overlay .prompt-info h2 a:hover {
    color: #ffffff;
}

.community-grid .prompt-card.has-cover-overlay .prompt-footer {
    min-height: 24px;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.community-grid .prompt-card.has-cover-overlay .community-card-source {
    flex: 1 1 auto;
    max-width: 48%;
    gap: 6px;
    color: rgba(255, 255, 255, 0.92);
}

.community-grid .prompt-card.has-cover-overlay .community-source-avatar {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: #6366f1;
    color: #ffffff;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.28);
    font-size: 9px;
}

.community-grid .prompt-card.has-cover-overlay .community-source-copy,
.community-grid .prompt-card.has-cover-overlay .community-card-source .source-copy {
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-weight: 760;
    text-shadow: 0 1px 7px rgba(0, 0, 0, 0.5);
}

.community-grid .prompt-card.has-cover-overlay .community-card-metrics {
    gap: 7px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
    text-shadow: 0 1px 7px rgba(0, 0, 0, 0.5);
}

.community-grid .prompt-card.has-cover-overlay .community-card-metrics > a,
.community-grid .prompt-card.has-cover-overlay .community-card-metrics > button {
    min-height: 24px;
    gap: 3px;
    margin: 0;
    padding: 3px 4px;
    border-radius: 7px;
    color: inherit;
}

.community-grid .prompt-card.has-cover-overlay .community-card-metrics svg,
.community-grid .prompt-card.has-cover-overlay .community-favorite-metric svg {
    width: 15px;
    height: 15px;
}

.community-grid .prompt-card.has-cover-overlay .community-view-metric:hover,
.community-grid .prompt-card.has-cover-overlay .community-view-metric:focus-visible,
.community-grid .prompt-card.has-cover-overlay .community-like-metric:hover,
.community-grid .prompt-card.has-cover-overlay .community-like-metric:focus-visible,
.community-grid .prompt-card.has-cover-overlay .community-favorite-metric:hover,
.community-grid .prompt-card.has-cover-overlay .community-favorite-metric:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.community-grid .prompt-card.has-cover-overlay .community-like-metric.is-active {
    background: rgba(255, 111, 86, 0.18);
    color: #ff9b88;
}

.community-grid .prompt-card.has-cover-overlay .community-favorite-metric.is-active {
    background: rgba(244, 114, 182, 0.18);
    color: #f9a8d4;
}

.community-grid .prompt-card.has-cover-overlay .community-favorite-metric {
    width: 24px;
    height: 24px;
}

@media (max-width: 640px) {
    .community-grid .prompt-card.has-cover-overlay > .prompt-cover .prompt-fallback {
        min-height: 190px;
    }

    .community-grid .prompt-card.has-cover-overlay > .prompt-info {
        gap: 7px;
        padding: 52px 9px 9px;
    }

    .community-grid .prompt-card.has-cover-overlay .prompt-info h2 {
        font-size: 13px;
        line-height: 1.35;
    }

    .community-grid .prompt-card.has-cover-overlay .prompt-footer {
        gap: 5px;
    }

    .community-grid .prompt-card.has-cover-overlay .community-card-source {
        max-width: 43%;
        gap: 4px;
    }

    .community-grid .prompt-card.has-cover-overlay .community-source-avatar {
        width: 19px;
        height: 19px;
        flex-basis: 19px;
        font-size: 8px;
    }

    .community-grid .prompt-card.has-cover-overlay .community-source-copy,
    .community-grid .prompt-card.has-cover-overlay .community-card-source .source-copy {
        font-size: 10px;
    }

    .community-grid .prompt-card.has-cover-overlay .community-card-metrics {
        gap: 3px;
        font-size: 10px;
    }

    .community-grid .prompt-card.has-cover-overlay .community-card-metrics > a,
    .community-grid .prompt-card.has-cover-overlay .community-card-metrics > button {
        min-height: 21px;
        padding: 2px;
    }

    .community-grid .prompt-card.has-cover-overlay .community-card-metrics svg,
    .community-grid .prompt-card.has-cover-overlay .community-favorite-metric svg {
        width: 13px;
        height: 13px;
    }

    .community-grid .prompt-card.has-cover-overlay .community-favorite-metric {
        width: 21px;
        height: 21px;
    }
}

@media (max-width: 389px) {
    .community-grid .prompt-card.has-cover-overlay > .prompt-cover .prompt-fallback {
        min-height: 230px;
    }

    .community-grid .prompt-card.has-cover-overlay > .prompt-info {
        padding: 68px 12px 12px;
    }

    .community-grid .prompt-card.has-cover-overlay .prompt-info h2 {
        font-size: 15px;
    }

    .community-grid .prompt-card.has-cover-overlay .community-card-source {
        max-width: 50%;
    }

    .community-grid .prompt-card.has-cover-overlay .community-card-metrics {
        gap: 6px;
        font-size: 12px;
    }
}

/* Homepage quick generator V19: reuse the existing image generation workspace. */
body.community-home-body .community-main {
    padding-bottom: 142px;
}

.community-quick-generate-dock {
    position: fixed;
    z-index: 1080;
    right: 20px;
    bottom: 20px;
    left: calc(var(--community-sidebar-width) + 20px);
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.community-quick-generate {
    width: min(380px, calc(100vw - var(--community-sidebar-width) - 64px));
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2), 0 2px 10px rgba(15, 23, 42, 0.08);
    pointer-events: auto;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 180ms var(--community-ease);
}

.community-quick-generate:focus-within {
    border-color: rgba(75, 125, 255, 0.58);
    box-shadow: 0 20px 54px rgba(15, 23, 42, 0.24), 0 0 0 4px rgba(75, 125, 255, 0.14);
    transform: translateY(-1px);
}

.community-quick-generate input[type="text"] {
    min-width: 0;
    height: 40px;
    flex: 1 1 auto;
    padding: 0 8px 0 14px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #20242b;
    box-shadow: none;
    font-size: 14px;
    font-weight: 650;
}

.community-quick-generate input[type="text"]::placeholder {
    color: #8b919c;
    opacity: 1;
}

.community-quick-generate button {
    min-width: 82px;
    height: 40px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 15px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b82f6, #4f7cff);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    cursor: pointer;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
    transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.community-quick-generate button:hover {
    background: linear-gradient(135deg, #2563eb, #426cf0);
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.38);
    transform: translateY(-1px);
}

.community-quick-generate button:active {
    transform: translateY(0) scale(0.98);
}

.community-quick-generate button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

html[data-theme="dark"] .community-quick-generate {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(27, 30, 38, 0.94);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.46), 0 2px 10px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .community-quick-generate:focus-within {
    border-color: rgba(129, 140, 248, 0.62);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.52), 0 0 0 4px rgba(129, 140, 248, 0.16);
}

html[data-theme="dark"] .community-quick-generate input[type="text"] {
    color: #f5f7fb;
}

html[data-theme="dark"] .community-quick-generate input[type="text"]::placeholder {
    color: #9ba3b1;
}

@media (max-width: 900px) {
    body.community-home-body .community-main {
        padding-bottom: 164px;
    }

    .community-quick-generate-dock {
        right: 10px;
        bottom: calc(74px + env(safe-area-inset-bottom));
        left: 10px;
    }

    .community-quick-generate {
        width: min(320px, calc(100% - 20px));
        min-height: 46px;
        padding: 3px;
    }

    .community-quick-generate input[type="text"] {
        height: 38px;
        padding-right: 6px;
        padding-left: 12px;
        font-size: 13px;
    }

    .community-quick-generate button {
        min-width: 76px;
        height: 38px;
        padding: 0 13px;
    }
}

@media (max-width: 420px) {
    .community-quick-generate-dock {
        right: 7px;
        left: 7px;
    }

    .community-quick-generate {
        width: min(290px, calc(100% - 12px));
    }

    .community-quick-generate input[type="text"] {
        padding-left: 10px;
        font-size: 12.5px;
    }

    .community-quick-generate button {
        min-width: 70px;
        padding: 0 11px;
        font-size: 12px;
    }
}

/* Homepage campaign banners and quick app launcher */
.community-home-launchpad {
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 14px;
    margin: 12px 0 24px;
}

.community-home-banner-carousel {
    --community-carousel-gap: 12px;
    --community-carousel-card-width: 32%;
}

.community-home-banner-viewport {
    margin: 0;
    padding: 0 0 6px;
}

.community-home-banner-track {
    gap: var(--community-carousel-gap);
}

.community-home-banner-card,
.community-carousel .community-home-banner-card:not(.is-main) {
    width: var(--community-carousel-card-width);
    max-width: 600px;
    flex: 0 0 var(--community-carousel-card-width);
    aspect-ratio: 12 / 5;
    border: 1px solid var(--community-line);
    border-radius: 12px;
    background: var(--community-cover-bg);
    box-shadow: var(--community-shadow-xs);
}

.community-home-banner-link {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.community-home-banner-card .community-home-banner-media {
    z-index: 0;
    width: 100%;
    height: 100%;
    background: var(--community-cover-bg);
}

.community-home-banner-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-home-banner-carousel .community-carousel-arrow {
    top: calc(50% - 17px);
}

.community-home-banner-carousel .community-carousel-dots {
    min-height: 24px;
    margin-top: 1px;
}

.community-home-apps {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.community-home-apps-header {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 32px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    overflow: visible;
    margin-bottom: 10px;
}

.community-home-apps-header h2 {
    min-width: 0;
    flex: 0 1 auto;
    margin: 0;
    color: #20242c;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.community-home-apps-header .community-home-app-entry {
    position: relative;
    z-index: 1;
    width: 208px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 208px;
    margin-left: auto;
    padding: 0 13px;
    visibility: visible;
    opacity: 1;
    border: 1px solid #f3c783;
    border-radius: 999px;
    background: #fff8ed;
    color: #df7d2f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.community-home-apps-header .community-home-app-entry:hover {
    border-color: #eeb566;
    background: #fff2df;
    color: #bd641f;
}

.community-home-app-carousel {
    --community-carousel-gap: 14px;
    --community-home-app-card-width: 15.5%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.community-home-app-list {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 1px;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.community-home-app-track {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: var(--community-carousel-gap);
}

.community-home-app-carousel.is-static .community-home-app-list {
    cursor: default;
}

.community-home-app-list::-webkit-scrollbar {
    display: none;
}

.community-home-app-card {
    position: relative;
    display: grid;
    width: var(--community-home-app-card-width);
    min-width: 168px;
    max-width: 300px;
    min-height: 64px;
    flex: 0 0 var(--community-home-app-card-width);
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 8px;
    overflow: hidden;
    border: 1px solid #dfe4eb;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    scroll-snap-align: start;
    transition: border-color 160ms ease, transform 160ms var(--community-ease), box-shadow 160ms ease;
}

.community-home-app-card:hover {
    z-index: 1;
    border-color: #cdd4de;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.09);
    transform: translateY(-1px);
}

.community-home-app-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 9px;
    background: #eef7f2;
    color: #16875f;
    font-size: 18px;
    font-weight: 850;
}

.community-home-app-card:nth-child(6n + 2) .community-home-app-icon {
    background: #f1f2f5;
    color: #252a32;
}

.community-home-app-card:nth-child(6n + 3) .community-home-app-icon {
    background: #fff0ea;
    color: #d64a2f;
}

.community-home-app-card:nth-child(6n + 4) .community-home-app-icon {
    background: #fff0f1;
    color: #e33d56;
}

.community-home-app-card:nth-child(6n + 5) .community-home-app-icon {
    background: #eaf8f6;
    color: #0f9f89;
}

.community-home-app-card:nth-child(6n) .community-home-app-icon {
    background: #fff7d9;
    color: #b7820b;
}

.community-home-app-icon img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-home-app-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.community-home-app-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.community-home-app-copy strong,
.community-home-app-copy small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-home-app-copy strong {
    color: #20242c;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
}

.community-home-app-copy small {
    color: #7f8794;
    font-size: 11.5px;
    line-height: 1.25;
}

.community-home-app-title em {
    min-height: 18px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0 6px;
    border-radius: 999px;
    background: #e9f8ef;
    color: #16a36a;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.community-work-preview[hidden] {
    display: none !important;
}

.community-work-preview {
    position: fixed;
    inset: 0;
    z-index: 17000;
    display: grid;
    place-items: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.community-work-preview.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.community-work-preview-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(10, 15, 26, 0.76);
    cursor: default;
    backdrop-filter: blur(10px) saturate(112%);
    -webkit-backdrop-filter: blur(10px) saturate(112%);
}

.community-work-preview-dialog {
    position: relative;
    width: min(1080px, 100%);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    outline: 0;
    background: #ffffff;
    box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42), 0 10px 30px rgba(15, 23, 42, 0.2);
    transform: translateY(14px) scale(0.98);
    transition: transform 180ms var(--community-ease);
}

.community-work-preview.is-open .community-work-preview-dialog {
    transform: translateY(0) scale(1);
}

.community-work-preview-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #dfe3ea;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.94);
    color: #667085;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.1);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.community-work-preview-close:hover {
    border-color: #cfd5de;
    background: #ffffff;
    color: #111827;
    transform: translateY(-1px);
}

.community-work-preview-close svg,
.community-work-preview-primary svg,
.community-work-preview-metrics svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.community-work-preview-close svg,
.community-work-preview-primary svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.community-work-preview-layout {
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
}

.community-work-preview-media {
    position: relative;
    min-width: 0;
    min-height: 560px;
    display: grid;
    place-items: center;
    margin: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(99, 102, 241, 0.18), transparent 34%),
        radial-gradient(circle at 82% 78%, rgba(14, 165, 233, 0.12), transparent 34%),
        #11151d;
}

.community-work-preview-media::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

.community-work-preview-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    object-fit: contain;
}

.community-work-preview.is-media-error .community-work-preview-media::after {
    content: "图片加载失败，请稍后重试";
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.community-work-preview.is-media-error .community-work-preview-media img {
    display: none;
}

.community-work-preview-panel {
    min-width: 0;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    display: flex;
    flex-direction: column;
    overflow: auto;
    padding: 30px 28px 24px;
    background: #ffffff;
    scrollbar-width: thin;
}

.community-work-preview-header {
    padding-right: 34px;
}

.community-work-preview-badges {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.community-work-preview-badges span {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
}

.community-work-preview-badges span + span {
    background: #f2f4f7;
    color: #667085;
}

.community-work-preview-header h2 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #111827;
    font-size: clamp(22px, 3vw, 29px);
    font-weight: 850;
    line-height: 1.28;
    letter-spacing: -0.025em;
}

.community-work-preview-header p {
    margin: 10px 0 0;
    overflow-wrap: anywhere;
    color: #667085;
    font-size: 13px;
    line-height: 1.75;
}

.community-work-preview-byline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 20px;
    padding: 12px 0;
    border-top: 1px solid #eef0f3;
    border-bottom: 1px solid #eef0f3;
}

.community-work-preview-author {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.community-work-preview-author i {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #4f46e5;
    color: #ffffff;
    font-size: 10px;
    font-style: normal;
    font-weight: 850;
}

.community-work-preview-author strong {
    overflow: hidden;
    color: #344054;
    font-size: 12.5px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-work-preview-metrics {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8b95a4;
}

.community-work-preview-metrics > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.community-work-preview-metrics svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.7;
}

.community-work-preview-metrics b {
    font-size: 11.5px;
    font-weight: 700;
}

.community-work-preview-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.community-work-preview-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border: 1px solid #e8ebf0;
    border-radius: 999px;
    background: #fafbfc;
    color: #737d8c;
    font-size: 10.5px;
    font-weight: 650;
}

.community-work-preview-prompt {
    margin-top: 16px;
    padding: 15px 16px;
    border: 1px solid #e4e7ec;
    border-radius: 13px;
    background: #f8fafc;
}

.community-work-preview-prompt-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.community-work-preview-prompt-head > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.community-work-preview-prompt-head span {
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.community-work-preview-prompt-head small {
    color: #98a2b3;
    font-size: 10.5px;
    line-height: 1.4;
}

.community-work-preview-prompt-head button {
    min-height: 30px;
    flex: 0 0 auto;
    padding: 0 10px;
    border: 1px solid #d7dce5;
    border-radius: 8px;
    background: #ffffff;
    color: #566174;
    font-size: 10.5px;
    font-weight: 750;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.community-work-preview-prompt-head button:hover:not(:disabled) {
    border-color: #bfc7d3;
    background: #f4f6f8;
    color: #344054;
}

.community-work-preview-prompt-head button.is-copied {
    border-color: #b9e7cf;
    background: #ecfdf3;
    color: #16875f;
}

.community-work-preview-prompt-head button.is-error {
    border-color: #f5c2c7;
    background: #fff1f2;
    color: #d14343;
}

.community-work-preview-prompt-head button:disabled {
    cursor: not-allowed;
    opacity: 0.46;
}

.community-work-preview-prompt p {
    max-height: 230px;
    margin: 12px 0 0;
    overflow: auto;
    color: #4b5565;
    font-size: 12.5px;
    line-height: 1.75;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    scrollbar-width: thin;
}

.community-work-preview-prompt.is-empty p {
    color: #98a2b3;
}

.community-work-preview-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: auto;
    padding-top: 22px;
}

.community-work-preview-secondary,
.community-work-preview-primary {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border-radius: 11px;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.community-work-preview-secondary {
    border: 1px solid #dfe3ea;
    background: #ffffff;
    color: #667085;
}

.community-work-preview-secondary:hover {
    border-color: #cfd5de;
    background: #f8fafc;
    color: #344054;
}

.community-home-body .community-work-preview-primary,
.community-home-body .community-work-preview-primary:visited {
    position: relative;
    isolation: isolate;
    min-width: 166px;
    min-height: 46px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 13px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 48%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    font-size: 13.5px;
    letter-spacing: 0.01em;
}

.community-work-preview-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.22) 46%, transparent 72%);
    transform: translateX(-80%);
    transition: opacity 180ms ease, transform 420ms var(--community-ease);
}

.community-work-preview-primary span,
.community-work-preview-primary svg {
    position: relative;
    z-index: 1;
}

.community-work-preview-primary svg {
    width: 26px;
    height: 26px;
    padding: 5px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    transition: background-color 160ms ease, transform 160ms var(--community-ease);
}

.community-home-body .community-work-preview-primary:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background: linear-gradient(135deg, #7477f5 0%, #5b52ea 48%, #8b46e8 100%);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(79, 70, 229, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.community-work-preview-primary:hover::before {
    opacity: 1;
    transform: translateX(80%);
}

.community-work-preview-primary:hover svg {
    background: rgba(255, 255, 255, 0.22);
    transform: translateX(2px);
}

.community-home-body .community-work-preview-primary:active {
    box-shadow: 0 7px 16px rgba(79, 70, 229, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transform: translateY(0) scale(0.985);
}

.community-work-preview-close:focus-visible,
.community-work-preview-prompt-head button:focus-visible,
.community-work-preview-secondary:focus-visible,
.community-work-preview-primary:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.24);
    outline-offset: 2px;
}

html[data-theme="dark"] .community-work-preview-backdrop {
    background: rgba(0, 0, 0, 0.82);
}

html[data-theme="dark"] .community-work-preview-dialog,
html[data-theme="dark"] .community-work-preview-panel {
    border-color: #3a404b;
    background: #20242c;
}

html[data-theme="dark"] .community-work-preview-close {
    border-color: #454c58;
    background: rgba(37, 42, 51, 0.94);
    color: #b1b8c4;
}

html[data-theme="dark"] .community-work-preview-close:hover {
    border-color: #596272;
    background: #303640;
    color: #ffffff;
}

html[data-theme="dark"] .community-work-preview-badges span {
    background: rgba(129, 140, 248, 0.16);
    color: #a5b4fc;
}

html[data-theme="dark"] .community-work-preview-badges span + span {
    background: #2b3039;
    color: #aeb5c1;
}

html[data-theme="dark"] .community-work-preview-header h2 {
    color: #ffffff;
}

html[data-theme="dark"] .community-work-preview-header p,
html[data-theme="dark"] .community-work-preview-prompt p {
    color: #b8bfca;
}

html[data-theme="dark"] .community-work-preview-byline {
    border-color: #353b46;
}

html[data-theme="dark"] .community-work-preview-author strong,
html[data-theme="dark"] .community-work-preview-prompt-head span {
    color: #e5e8ed;
}

html[data-theme="dark"] .community-work-preview-tags span {
    border-color: #414854;
    background: #292e37;
    color: #aeb5c1;
}

html[data-theme="dark"] .community-work-preview-prompt {
    border-color: #3c434f;
    background: #272c35;
}

html[data-theme="dark"] .community-work-preview-prompt-head small,
html[data-theme="dark"] .community-work-preview-prompt.is-empty p {
    color: #9099a8;
}

html[data-theme="dark"] .community-work-preview-prompt-head button {
    border-color: #49515e;
    background: #303640;
    color: #c8ced7;
}

html[data-theme="dark"] .community-work-preview-prompt-head button:hover:not(:disabled) {
    border-color: #5b6574;
    background: #383f4b;
    color: #ffffff;
}

html[data-theme="dark"] .community-work-preview-secondary {
    border-color: #444b58;
    background: #272c35;
    color: #c4cad3;
}

html[data-theme="dark"] .community-work-preview-secondary:hover {
    border-color: #555e6d;
    background: #303640;
    color: #ffffff;
}

html[data-theme="dark"] .community-work-preview-primary,
html[data-theme="dark"] .community-work-preview-primary:visited {
    border-color: rgba(165, 180, 252, 0.28);
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 50%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 13px 28px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

html[data-theme="dark"] .community-work-preview-primary:hover {
    border-color: rgba(199, 210, 254, 0.42);
    background: linear-gradient(135deg, #929cf9 0%, #7477f5 50%, #9b70f7 100%);
    color: #ffffff;
}

@media (max-width: 860px) {
    .community-work-preview-dialog {
        overflow: auto;
    }

    .community-work-preview-layout {
        min-height: 0;
        display: block;
    }

    .community-work-preview-media {
        min-height: min(54vh, 520px);
        height: min(54vh, 520px);
    }

    .community-work-preview-media img {
        max-height: none;
    }

    .community-work-preview-panel {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 680px) {
    .community-work-preview {
        align-items: end;
        padding: 12px 0 0;
    }

    .community-work-preview-dialog {
        width: 100%;
        max-height: calc(94vh - env(safe-area-inset-top));
        max-height: calc(94dvh - env(safe-area-inset-top));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 20px 20px 0 0;
        transform: translateY(28px);
    }

    .community-work-preview.is-open .community-work-preview-dialog {
        transform: translateY(0);
    }

    .community-work-preview-close {
        top: 12px;
        right: 12px;
    }

    .community-work-preview-media {
        min-height: min(44vh, 390px);
        height: min(44vh, 390px);
    }

    .community-work-preview-panel {
        padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
    }

    .community-work-preview-header {
        padding-right: 30px;
    }

    .community-work-preview-header h2 {
        font-size: 21px;
    }

    .community-work-preview-byline {
        margin-top: 16px;
    }

    .community-work-preview-prompt-head {
        align-items: stretch;
        flex-direction: column;
    }

    .community-work-preview-prompt-head button {
        align-self: flex-start;
    }

    .community-work-preview-prompt p {
        max-height: 180px;
    }

    .community-work-preview-actions {
        display: grid;
        grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    }

    .community-work-preview-secondary,
    .community-work-preview-primary {
        width: 100%;
        padding-inline: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .community-work-preview,
    .community-work-preview-dialog {
        transition: none;
    }
}

.community-app-preview[hidden] {
    display: none !important;
}

.community-app-preview {
    position: fixed;
    inset: 0;
    z-index: 16000;
    display: grid;
    place-items: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.community-app-preview.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.community-app-preview-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(17, 24, 39, 0.62);
    cursor: default;
    backdrop-filter: blur(9px) saturate(115%);
    -webkit-backdrop-filter: blur(9px) saturate(115%);
}

.community-app-preview-dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow: auto;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    outline: 0;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28), 0 8px 24px rgba(15, 23, 42, 0.14);
    transform: translateY(14px) scale(0.975);
    transition: transform 180ms var(--community-ease);
    scrollbar-width: thin;
}

.community-app-preview.is-open .community-app-preview-dialog {
    transform: translateY(0) scale(1);
}

.community-app-preview-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.community-app-preview-close:hover {
    border-color: #d5dae2;
    background: #f1f5f9;
    color: #111827;
    transform: translateY(-1px);
}

.community-app-preview-close svg,
.community-app-preview-primary svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.community-app-preview-hero {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding-right: 42px;
}

.community-app-preview-icon {
    position: relative;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dce7ff;
    border-radius: 17px;
    background: linear-gradient(145deg, #eef2ff, #e0e7ff);
    color: #4f46e5;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.16);
    font-size: 25px;
    font-weight: 850;
}

.community-app-preview-icon img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-app-preview-copy {
    min-width: 0;
}

.community-app-preview-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 5px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.community-app-preview-copy h2 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #111827;
    font-size: clamp(21px, 4vw, 27px);
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.community-app-preview-copy p {
    margin: 7px 0 0;
    overflow-wrap: anywhere;
    color: #667085;
    font-size: 13px;
    line-height: 1.7;
}

.community-app-preview-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid #e7eaf0;
    border-radius: 13px;
    background: #f8fafc;
}

.community-app-preview-meta > span {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 13px 15px;
    border-right: 1px solid #e7eaf0;
}

.community-app-preview-meta > span:last-child {
    border-right: 0;
}

.community-app-preview-meta small {
    color: #98a2b3;
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: 0.03em;
}

.community-app-preview-meta strong {
    overflow: hidden;
    color: #344054;
    font-size: 13px;
    font-weight: 780;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-app-preview-meta b {
    color: #4f46e5;
    font: inherit;
}

.community-app-preview-prompt {
    margin-top: 16px;
    padding: 15px 16px;
    border: 1px solid #e4e7ec;
    border-radius: 13px;
    background: #ffffff;
}

.community-app-preview-prompt-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.community-app-preview-prompt-heading strong {
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.community-app-preview-prompt-heading small {
    color: #98a2b3;
    font-size: 10.5px;
    text-align: right;
}

.community-app-preview-prompt p {
    max-height: 126px;
    margin: 9px 0 0;
    overflow: auto;
    color: #5b6472;
    font-size: 12.5px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    scrollbar-width: thin;
}

.community-app-preview-note {
    margin: 14px 0 0;
    padding-left: 14px;
    color: #8a94a3;
    font-size: 11px;
    line-height: 1.6;
}

.community-app-preview-note::before {
    content: "";
    width: 5px;
    height: 5px;
    display: inline-block;
    margin: 0 8px 2px -13px;
    border-radius: 999px;
    background: #4f46e5;
}

.community-app-preview-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef0f3;
}

.community-app-preview-secondary,
.community-app-preview-primary {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.community-app-preview-secondary {
    border: 1px solid #dfe3ea;
    background: #ffffff;
    color: #667085;
}

.community-app-preview-secondary:hover {
    border-color: #cfd5de;
    background: #f8fafc;
    color: #344054;
}

.community-app-preview-primary {
    min-width: 132px;
    border: 1px solid #4f46e5;
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 9px 20px rgba(79, 70, 229, 0.22);
}

.community-app-preview-primary:hover {
    border-color: #4338ca;
    background: #4338ca;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.28);
    transform: translateY(-1px);
}

.community-app-preview-close:focus-visible,
.community-app-preview-secondary:focus-visible,
.community-app-preview-primary:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.24);
    outline-offset: 2px;
}

html[data-theme="dark"] .community-app-preview-backdrop {
    background: rgba(2, 6, 23, 0.76);
}

html[data-theme="dark"] .community-app-preview-dialog {
    border-color: #3a404b;
    background: #20242c;
    color: #f2f4f7;
    box-shadow: 0 32px 96px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .community-app-preview-close {
    border-color: #424956;
    background: #2a2f39;
    color: #aab2bf;
}

html[data-theme="dark"] .community-app-preview-close:hover {
    border-color: #545d6c;
    background: #333945;
    color: #ffffff;
}

html[data-theme="dark"] .community-app-preview-icon {
    border-color: rgba(129, 140, 248, 0.3);
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.22), rgba(79, 70, 229, 0.12));
    color: #a5b4fc;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .community-app-preview-eyebrow {
    background: rgba(129, 140, 248, 0.16);
    color: #a5b4fc;
}

html[data-theme="dark"] .community-app-preview-copy h2 {
    color: #ffffff;
}

html[data-theme="dark"] .community-app-preview-copy p,
html[data-theme="dark"] .community-app-preview-prompt p {
    color: #b7beca;
}

html[data-theme="dark"] .community-app-preview-meta {
    border-color: #3c434f;
    background: #272c35;
}

html[data-theme="dark"] .community-app-preview-meta > span {
    border-color: #3c434f;
}

html[data-theme="dark"] .community-app-preview-meta small,
html[data-theme="dark"] .community-app-preview-prompt-heading small,
html[data-theme="dark"] .community-app-preview-note {
    color: #8f98a7;
}

html[data-theme="dark"] .community-app-preview-meta strong,
html[data-theme="dark"] .community-app-preview-prompt-heading strong {
    color: #e3e7ed;
}

html[data-theme="dark"] .community-app-preview-meta b {
    color: #a5b4fc;
}

html[data-theme="dark"] .community-app-preview-prompt {
    border-color: #3c434f;
    background: #252a33;
}

html[data-theme="dark"] .community-app-preview-actions {
    border-color: #343a45;
}

html[data-theme="dark"] .community-app-preview-secondary {
    border-color: #444b58;
    background: #272c35;
    color: #c4cad3;
}

html[data-theme="dark"] .community-app-preview-secondary:hover {
    border-color: #555e6d;
    background: #303640;
    color: #ffffff;
}

html[data-theme="dark"] .community-app-preview-primary {
    border-color: #818cf8;
    background: #818cf8;
    color: #151827;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .community-app-preview-primary:hover {
    border-color: #a5b4fc;
    background: #a5b4fc;
    color: #11131b;
}

@media (max-width: 680px) {
    .community-app-preview {
        align-items: end;
        padding: 12px 0 0;
    }

    .community-app-preview-dialog {
        width: 100%;
        max-height: calc(92vh - env(safe-area-inset-top));
        max-height: calc(92dvh - env(safe-area-inset-top));
        padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 20px 20px 0 0;
        transform: translateY(26px);
    }

    .community-app-preview.is-open .community-app-preview-dialog {
        transform: translateY(0);
    }

    .community-app-preview-close {
        top: 16px;
        right: 16px;
    }

    .community-app-preview-hero {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 13px;
        padding-right: 38px;
    }

    .community-app-preview-icon {
        width: 58px;
        height: 58px;
        border-radius: 14px;
        font-size: 22px;
    }

    .community-app-preview-copy h2 {
        font-size: 21px;
    }

    .community-app-preview-copy p {
        font-size: 12.5px;
    }

    .community-app-preview-meta {
        margin-top: 18px;
    }

    .community-app-preview-meta > span {
        padding: 11px 10px;
    }

    .community-app-preview-meta strong {
        font-size: 12px;
    }

    .community-app-preview-prompt-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .community-app-preview-prompt-heading small {
        text-align: left;
    }

    .community-app-preview-actions {
        display: grid;
        grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    }

    .community-app-preview-secondary,
    .community-app-preview-primary {
        width: 100%;
        padding-inline: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .community-app-preview,
    .community-app-preview-dialog {
        transition: none;
    }
}

html[data-theme="dark"] .community-home-apps {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .community-home-apps-header h2,
html[data-theme="dark"] .community-home-app-copy strong {
    color: #f2f4f7;
}

html[data-theme="dark"] .community-home-apps-header .community-home-app-entry {
    border-color: rgba(234, 169, 92, 0.25);
    background: rgba(168, 105, 22, 0.13);
    color: #f3bd78;
}

html[data-theme="dark"] .community-home-app-card {
    border-color: #343a46;
    background: #252a33;
    box-shadow: none;
}

html[data-theme="dark"] .community-home-app-card:hover {
    border-color: #4a5260;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .community-home-app-copy small {
    color: #969daa;
}

html[data-theme="dark"] .community-home-app-title em {
    background: rgba(67, 201, 139, 0.14);
    color: #63d9a1;
}

@media (max-width: 900px) {
    .community-home-banner-carousel {
        --community-carousel-card-width: 49%;
    }

    .community-home-app-carousel {
        --community-home-app-card-width: 190px;
    }
}

@media (max-width: 680px) {
    .community-home-launchpad {
        gap: 11px;
        margin: 8px 0 18px;
    }

    .community-home-banner-carousel {
        --community-carousel-card-width: 88%;
    }

    .community-home-banner-card,
    .community-carousel .community-home-banner-card:not(.is-main) {
        aspect-ratio: 16 / 9;
        border-radius: 10px;
    }

    .community-home-banner-carousel .community-carousel-arrow {
        display: none;
    }

    .community-home-apps {
        padding: 9px;
        border-radius: 8px;
    }

    .community-home-apps-header {
        margin-bottom: 7px;
    }

    .community-home-apps-header h2 {
        font-size: 14px;
    }

    .community-home-apps-header .community-home-app-entry {
        max-width: 210px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .community-home-app-carousel {
        --community-home-app-card-width: min(76vw, 210px);
    }
}

@media (max-width: 420px) {
    .community-home-apps-header .community-home-app-entry {
        max-width: 168px;
        padding-inline: 8px;
        font-size: 10px;
    }

    .community-home-app-carousel {
        --community-home-app-card-width: min(82vw, 205px);
    }

    .community-home-app-card {
        min-height: 50px;
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 6px 7px;
    }

    .community-home-app-icon {
        width: 34px;
        height: 34px;
        border-radius: 7px;
    }
}
