.f-mention-popover {
    position: absolute;
    z-index: 15;
    left: 0;
    top: 0;
    right: auto;
    bottom: auto;
    width: min(320px, calc(100vw - 24px));
    max-height: 260px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 5px;
    border: 1px solid var(--theme-line,#e5e8ec);
    border-radius: 12px;
    background: var(--theme-surface,#fff);
    box-shadow: 0 8px 30px rgb(20 24 31 / 10%);
}

.f-mention-status {
    padding: 17px 12px;
    color: var(--theme-muted,#949ba4);
    font-size: calc(11px * var(--app-font-scale, 1));
    line-height: 1.7;
}

.f-mention-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 9px 11px;
    border-radius: 8px;
    background: transparent;
    text-align: left;
}

.f-mention-option.is-active,
.f-mention-option:hover {
    background: var(--theme-soft,#f2f4f6);
}

.f-mention-option .f-avatar {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: calc(10px * var(--app-font-scale, 1));
}

.f-mention-option strong {
    overflow: hidden;
    color: var(--theme-ink,#313740);
    font-size: calc(12px * var(--app-font-scale, 1));
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.f-editor-text { position: relative; }
.f-editor-text textarea { width: 100%; }
.f-tags-hint { margin: 8px 0; color: var(--theme-muted,#727982); font-size: calc(12px * var(--app-font-scale, 1)); line-height: 1.6; }
.f-hashtag { color: var(--app-accent); font-weight: 600; text-decoration: underline; text-decoration-color: var(--app-border); text-underline-offset: 3px; overflow-wrap: anywhere; }
.f-hashtag:hover, .f-hashtag:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .f-mention-popover { max-height: 220px; } }

.f-mention-identity { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.f-mention-identity small { color: var(--theme-muted,#858b93); font-size: calc(11px * var(--app-font-scale, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
