.fd-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fd-head-icon {
    display: flex;
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #fbbf24;
    color: var(--b4-color-primary-dark);
}

.fd-title {
    color: var(--b4-color-primary-dark);
    font-size: 1.875rem;
    line-height: 1.1;
}

.fd-tabs {
    position: relative;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    margin-top: 1rem;
    padding-bottom: 0.25rem;
}

.fd-tab {
    display: inline-flex;
    min-height: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    border: 1px solid var(--b4-color-border);
    border-radius: 0.625rem;
    background: var(--b4-color-surface);
    padding: 0 1rem;
    color: var(--b4-color-text);
    font-size: 0.8125rem;
    font-weight: 500;
}

.fd-tab:hover {
    border-color: var(--b4-color-primary);
}

.fd-tab-active {
    border-color: var(--b4-color-primary-dark);
    background: #065f46;
    color: #fff;
}

.fd-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

@container main (min-width: 52rem) {
    .fd-body {
        grid-template-columns: minmax(0, 1fr) 17.5rem;
        align-items: start;
    }
}

.fd-feed,
.fd-side {
    display: grid;
    min-width: 0;
    gap: 0.75rem;
}

.fd-feed {
    scroll-margin-top: 1rem;
}

.fd-card {
    min-width: 0;
    padding: 1rem;
}

.fd-avatar {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.fd-avatar-md {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 0.875rem;
}

.fd-avatar-lg {
    width: 3.5rem;
    height: 3.5rem;
    border: 2px solid var(--b4-color-surface);
    font-size: 1rem;
}

.fd-tone-rose {
    background: var(--b4-color-danger-tint);
    color: var(--b4-color-danger-text);
}

.fd-tone-sky {
    background: var(--b4-color-info-tint);
    color: var(--b4-color-info-text);
}

.fd-tone-amber {
    background: var(--b4-color-warning-tint);
    color: var(--b4-color-warning-text);
}

.fd-tone-emerald {
    background: var(--b4-color-tint-strong);
    color: var(--b4-color-primary-text);
}

.fd-tone-violet {
    background: var(--b4-color-info-tint);
    color: var(--b4-color-info-text);
}

.fd-tone-orange {
    background: var(--b4-color-warning-tint);
    color: var(--b4-color-warning-text);
}

.fd-tone-slate {
    background: var(--b4-color-neutral-bg);
    color: var(--b4-color-text-muted);
}

.fd-stories {
    position: relative;
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    margin-top: 0.75rem;
    padding-bottom: 0.25rem;
}

.fd-story {
    display: flex;
    width: 5rem;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}

.fd-story-ring {
    position: relative;
    display: block;
    border: 2px solid var(--b4-color-primary);
    border-radius: 9999px;
    padding: 2px;
}

.fd-story-ring-own {
    border-color: var(--b4-color-border);
}

.fd-story-add {
    position: absolute;
    right: -0.125rem;
    bottom: 0;
    display: flex;
    width: 1.25rem;
    height: 1.25rem;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--b4-color-surface);
    border-radius: 9999px;
    background: var(--b4-color-primary);
    color: #fff;
}

.fd-story-name {
    max-width: 100%;
    overflow: hidden;
    color: var(--b4-color-text-muted);
    font-size: 0.6875rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fd-composer-input {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    resize: none;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--b4-color-text-muted);
    font-size: 0.8125rem;
}

.fd-composer-input:disabled {
    cursor: not-allowed;
}

.fd-composer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--b4-color-border);
    padding-top: 0.75rem;
}

.fd-chip {
    display: inline-flex;
    min-height: 2.25rem;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid var(--b4-color-border);
    border-radius: 0.5rem;
    padding: 0 0.625rem;
    color: var(--b4-color-text);
    font-size: 0.75rem;
    font-weight: 500;
}

.fd-chip svg {
    color: var(--b4-color-primary);
}

.fd-post-btn {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    gap: 0.375rem;
    margin-left: auto;
    border-radius: 0.5rem;
    background: #fbbf24;
    padding: 0 1.25rem;
    color: #422006;
    font-size: 0.8125rem;
    font-weight: 700;
}

.fd-post-btn:disabled,
.fd-follow:disabled,
.fd-join-btn:disabled {
    cursor: not-allowed;
}

.fd-sortbar {
    display: flex;
    justify-content: flex-end;
}

.fd-follow {
    display: inline-flex;
    min-height: 2.25rem;
    flex-shrink: 0;
    align-items: center;
    border: 1px solid var(--b4-color-border);
    border-radius: 0.5rem;
    padding: 0 0.875rem;
    color: var(--b4-color-primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
}

.fd-gallery {
    display: grid;
    gap: 0.375rem;
    overflow: hidden;
    margin-top: 0.75rem;
    border-radius: 0.875rem;
}

.fd-gallery-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fd-gallery-3 {
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.fd-gallery-3 .fd-gallery-item:first-child {
    grid-row: span 2;
}

.fd-gallery-item {
    position: relative;
    display: block;
    min-height: 0;
}

.fd-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 7rem;
    object-fit: cover;
}

.fd-gallery-1 .fd-gallery-item img {
    max-height: 22rem;
}

.fd-gallery-3 .fd-gallery-item:first-child img {
    min-height: 15rem;
}

.fd-gallery-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(15 23 42 / 0.55);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.fd-tag {
    border: 1px solid var(--b4-color-border);
    border-radius: 0.5rem;
    padding: 0.25rem 0.625rem;
    color: var(--b4-color-primary-dark);
    font-size: 0.6875rem;
    font-weight: 600;
}

.fd-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    margin-top: 0.875rem;
    border-top: 1px solid var(--b4-color-border);
    padding-top: 0.75rem;
}

.fd-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--b4-color-text);
    font-size: 0.75rem;
    font-weight: 600;
}

.fd-trend {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.fd-trend-rank {
    width: 1rem;
    flex-shrink: 0;
    color: var(--b4-color-warning-text);
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
}

.fd-trend-img {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    object-fit: cover;
}

.fd-highlights {
    border-radius: 1rem;
    background: #065f46;
    padding: 1rem;
    color: #fff;
}

.fd-highlights-title {
    color: #fff;
    font-size: 1rem;
}

.fd-highlight-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.875rem;
    text-align: center;
}

.fd-highlight-stats > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fd-highlight-stats dd {
    order: 2;
    margin-top: 0.375rem;
    font-size: 1.25rem;
    font-weight: 800;
}

.fd-highlight-stats dt {
    order: 3;
    color: #ecfdf5;
    font-size: 0.6875rem;
}

.fd-highlight-icon {
    order: 1;
    display: flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgb(255 255 255 / 0.12);
}

.fd-top-dest {
    margin-top: 1rem;
    border-top: 1px solid rgb(255 255 255 / 0.2);
    padding-top: 0.75rem;
}

.fd-top-dest-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    border-radius: 0.625rem;
}

.fd-top-dest-icon {
    display: flex;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    background: rgb(255 255 255 / 0.12);
}

.fd-top-dest-go {
    display: flex;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #fbbf24;
    color: #422006;
}

.fd-group-img {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    object-fit: cover;
}

.fd-challenge-img {
    width: 5.5rem;
    height: 7rem;
    flex-shrink: 0;
    border-radius: 0.625rem;
    object-fit: cover;
}

.fd-progress {
    height: 0.375rem;
    overflow: hidden;
    margin-top: 0.375rem;
    border-radius: 9999px;
    background: var(--b4-color-neutral-bg);
}

.fd-progress > span {
    display: block;
    height: 100%;
    border-radius: 9999px;
    background: var(--b4-color-primary);
}

.fd-join-btn {
    display: flex;
    width: 100%;
    min-height: 2.25rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.625rem;
    border-radius: 0.5rem;
    background: #fbbf24;
    color: #422006;
    font-size: 0.75rem;
    font-weight: 700;
}

.fd-tip {
    border-radius: 1rem;
    background: var(--b4-color-tint);
    padding: 1rem;
}

.fd-avatar-sm {
    width: 2rem;
    height: 2rem;
    font-size: 0.6875rem;
}

img.fd-avatar {
    object-fit: cover;
}

span.fd-group-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.fd-link {
    color: var(--b4-color-primary-dark);
    font-weight: 600;
}

.fd-link:hover {
    text-decoration: underline;
}

.fd-link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.fd-follow-on {
    background: var(--b4-color-primary-soft, #ecfdf5);
}

.fd-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: var(--b4-color-primary-soft, #ecfdf5);
    padding: 0 0.5rem;
    color: var(--b4-color-primary-dark);
    font-size: 0.6875rem;
    font-weight: 600;
}

.fd-badge-warn {
    background: #fef3c7;
    color: #92400e;
}

.fd-stat-btn {
    min-height: 2.25rem;
    border: 0;
    background: none;
    padding: 0 0.5rem;
    cursor: pointer;
}

.fd-stat-on {
    color: var(--b4-color-primary-dark);
}

.fd-menu {
    position: relative;
    flex-shrink: 0;
}

.fd-menu > summary,
.fd-popover > summary,
.fd-report > summary {
    list-style: none;
    cursor: pointer;
}

.fd-menu > summary::-webkit-details-marker,
.fd-popover > summary::-webkit-details-marker,
.fd-report > summary::-webkit-details-marker {
    display: none;
}

.fd-menu-btn {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: var(--b4-color-text);
}

.fd-menu-panel {
    position: absolute;
    right: 0;
    z-index: 20;
    min-width: 13rem;
    margin-top: 0.25rem;
    border: 1px solid var(--b4-color-border);
    border-radius: 0.75rem;
    background: var(--b4-color-surface, #fff);
    padding: 0.375rem;
    box-shadow: 0 10px 30px rgb(15 23 42 / 0.15);
}

.fd-menu-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    border-radius: 0.5rem;
    background: none;
    padding: 0.5rem 0.625rem;
    color: var(--b4-color-text);
    font-size: 0.8125rem;
    text-align: left;
    cursor: pointer;
}

.fd-menu-item:hover {
    background: var(--b4-color-primary-soft, #ecfdf5);
}

.fd-menu-danger {
    color: #b91c1c;
}

.fd-report-form {
    padding: 0.5rem 0.625rem 0.625rem;
}

.fd-popover {
    position: relative;
}

.fd-popover-panel {
    position: absolute;
    left: 0;
    z-index: 20;
    width: min(18rem, 80vw);
    margin-top: 0.25rem;
    border: 1px solid var(--b4-color-border);
    border-radius: 0.75rem;
    background: var(--b4-color-surface, #fff);
    padding: 0.75rem;
    box-shadow: 0 10px 30px rgb(15 23 42 / 0.15);
}

.fd-audience select {
    min-height: 2.25rem;
}

.fd-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.fd-previews img {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    object-fit: cover;
}

.fd-comment-input {
    min-height: 2.5rem;
    flex: 1;
    border: 1px solid var(--b4-color-border);
    border-radius: 0.5rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
}

.fd-replies {
    margin: 0.75rem 0 0 2.75rem;
    display: grid;
    gap: 0.75rem;
}

.fd-profile {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
}

.fd-memories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
    gap: 0.5rem;
}

.fd-memory {
    display: block;
    font-size: 0.75rem;
    color: var(--b4-color-text);
}

.fd-memory img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    object-fit: cover;
}

.fd-more {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.fd-story-seen {
    border-color: var(--b4-color-border);
}

button.fd-story-ring {
    background: none;
    cursor: pointer;
}

.fd-story-dialog,
.fd-lightbox {
    max-width: 100vw;
    max-height: 100dvh;
    border: 0;
    background: #0b1220;
    padding: 0;
    color: #fff;
}

.fd-story-dialog::backdrop,
.fd-lightbox::backdrop {
    background: rgb(2 6 23 / 0.85);
}

.fd-story-dialog {
    width: min(26rem, 100vw);
    height: min(46rem, 100dvh);
    border-radius: 1rem;
}

.fd-story-stage {
    position: relative;
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
}

.fd-story-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fd-story-bars {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    display: flex;
    gap: 0.25rem;
}

.fd-story-bar {
    position: relative;
    height: 0.1875rem;
    flex: 1;
    overflow: hidden;
    border-radius: 9999px;
    background: rgb(255 255 255 / 0.35);
}

.fd-story-bar-done {
    background: #fff;
}

.fd-story-bar i {
    position: absolute;
    inset: 0;
    transform-origin: left;
    background: #fff;
    animation: fd-story-fill linear forwards;
}

@keyframes fd-story-fill {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fd-story-bar i {
        animation: none;
        transform: scaleX(1);
    }
}

.fd-story-top {
    position: absolute;
    top: 1rem;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
}

.fd-story-close,
.fd-story-nav {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9999px;
    background: rgb(15 23 42 / 0.55);
    color: #fff;
    cursor: pointer;
}

.fd-story-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
}

.fd-story-prev {
    left: 0.5rem;
}

.fd-story-next {
    right: 0.5rem;
}

.fd-story-caption {
    position: absolute;
    right: 0;
    bottom: 4rem;
    left: 0;
    z-index: 2;
    background: rgb(15 23 42 / 0.6);
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.875rem;
}

.fd-story-reply {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    display: flex;
    gap: 0.5rem;
}

.fd-story-reply input {
    min-height: 2.5rem;
    flex: 1;
    border-radius: 9999px;
    border: 1px solid rgb(255 255 255 / 0.5);
    background: rgb(15 23 42 / 0.6);
    padding: 0 1rem;
    color: #fff;
}

.fd-story-views {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 2;
    font-size: 0.8125rem;
}

.fd-lightbox {
    width: 100vw;
    height: 100dvh;
    background: rgb(2 6 23 / 0.95);
}

.fd-lightbox-img {
    position: absolute;
    inset: 3rem 4rem;
    width: calc(100% - 8rem);
    height: calc(100% - 6rem);
    object-fit: contain;
}

.fd-lightbox-close,
.fd-lightbox-nav {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9999px;
    background: rgb(255 255 255 / 0.15);
    color: #fff;
    font-size: 1.75rem;
    cursor: pointer;
}

.fd-lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
}

.fd-lightbox-nav {
    top: 50%;
}

.fd-lightbox-prev {
    left: 0.75rem;
}

.fd-lightbox-next {
    right: 0.75rem;
}

.fd-lightbox-count {
    position: absolute;
    bottom: 0.75rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.8125rem;
}

@media (max-width: 640px) {
    .fd-lightbox-img {
        inset: 3rem 0.5rem;
        width: calc(100% - 1rem);
    }
}
