.ae-wish-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    padding: .95rem 1rem;
    border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
    background: linear-gradient(110deg, color-mix(in srgb, var(--accent) 9%, var(--card)), var(--card) 74%);
}

.ae-wish-entry__copy {
    flex: 1 1 15rem;
    min-width: 0;
}

.ae-wish-entry__copy p {
    margin: .2rem 0 0;
}

.ae-wish-entry__title {
    margin: 0;
    font-size: clamp(1.05rem, 3.5vw, 1.35rem);
    line-height: 1.25;
}

.ae-wish-entry__title span {
    color: var(--accent-text);
}

#story-composer {
    scroll-margin-top: 5rem;
}

.ae-wish-compose-hint {
    display: none;
    margin: 0;
}

.ae-composer__form:has(input[name="type"][value="wish"]:checked) .ae-wish-compose-hint {
    display: block;
}

.ae-wish-card {
    display: grid;
    gap: .65rem;
    margin-top: .75rem;
}

.ae-wish-card__actions,
.ae-wish-detail__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem .6rem;
}

.ae-wish-card__count {
    padding: .3rem .1rem;
    color: var(--accent-text);
    font-size: .86rem;
}

.ae-wish-card__count:hover,
.ae-wish-detail__person:hover strong {
    text-decoration: underline;
}

.ae-wish-card__result {
    min-width: 0;
    padding: .72rem .8rem;
    border: 1px solid color-mix(in srgb, var(--accent) 21%, var(--border));
    border-radius: var(--r-sm);
    background: color-mix(in srgb, var(--accent) 6%, var(--card));
}

.ae-wish-card__result h2,
.ae-wish-detail__panel h2 {
    margin: 0;
    font-size: 1rem;
}

.ae-wish-card__result-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .25rem .65rem;
}

.ae-wish-card__result-heading time {
    color: var(--muted);
    font-size: .8rem;
}

.ae-wish-card__result-body {
    margin: .35rem 0 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.ae-wish-card__media img,
.ae-wish-card__media video {
    max-height: 440px;
    object-fit: contain;
}

.ae-wish-detail {
    display: grid;
    gap: .8rem;
    width: min(100%, 46rem);
    min-width: 0;
    margin-inline: auto;
}

.ae-wish-detail__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
}

.ae-wish-detail__header h1 {
    margin: 0;
    font-size: 1.35rem;
}

.ae-wish-detail__panel {
    display: grid;
    gap: .65rem;
    min-width: 0;
    padding: .9rem 1rem;
    scroll-margin-top: 5rem;
}

.ae-wish-detail__panel .ae-muted {
    margin: 0;
}

.ae-wish-detail__people {
    display: grid;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ae-wish-detail__people li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .45rem .75rem;
    min-width: 0;
}

.ae-wish-detail__person {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ae-wish-detail__person .ae-avatar {
    flex-shrink: 0;
}

@media (max-width: 440px) {
    .ae-wish-entry,
    .ae-wish-detail__panel {
        padding: .8rem;
    }

    .ae-wish-card__result {
        padding: .65rem;
    }
}
