.nf-search-input {
    width: 0;
    padding: 0;
    margin-left: 0;
    opacity: 0;
    border: 1px solid transparent;
    border-radius: 20px;
    pointer-events: none;
    transition: width 0.35s cubic-bezier(0.5, 0, 0.25, 1), padding 0.35s cubic-bezier(0.5, 0, 0.25, 1), margin-left 0.2s ease, opacity 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.nf-search-input--active {
    width: 150px;
    padding: 0 10px;
    margin-left: 10px;
    opacity: 1;
    border-color: rgb(87,87,87);
    pointer-events: auto;
}

.nf-search-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nf-search-trigger:focus-visible {
    outline: 1px solid rgb(255,166,0);
    outline-offset: 2px;
    border-radius: 50%;
}

.nf-search-body {
    padding: 20px 30px 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nf-search-panel {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
}

.nf-search-panel--active {
    display: flex;
}

.nf-search-card {
    display: flex;
    align-items: center;
    width: 217px;
    padding: 3px 14px 3px 5px;
    border-radius: 200px;
    background: rgb(38,38,38);
    border: 1px solid rgba(87,87,87,0.6);
    transition: background-color .2s ease, padding .2s ease;
}

.nf-search-card:hover {
    background: rgb(48,48,48);
    padding: 3px 14px 3px 5px;
}

.nf-search-card__avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-avatar-cover {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
}

.nf-search-card__info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.nf-search-card__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nf-search-card__tag {
    flex-shrink: 0;
    white-space: nowrap;
}

.nf-search-empty,
.nf-search-placeholder {
    width: 100%;
    text-align: center;
    color: rgb(180,180,180);
}

.nf-search-panel[data-nf-search-panel="posts"] {
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
}

.nf-search-post-row {
    width: 100%;
    display: grid;
    grid-template-columns: 20px 125px minmax(0, 1fr) 100px;
    align-items: start;
    column-gap: 10px;
    padding: 8px 0;
    background: transparent;
    border: 0;
}

.nf-search-post-row:focus-visible {
    outline: 1px solid rgb(255,166,0);
    outline-offset: 2px;
    border-radius: 3px;
}

.nf-search-post-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nf-search-post-tag {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nf-search-post-text {
    min-width: 0;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.35;
    max-height: 4.05em;
    color: rgb(220,220,220);
}

.nf-search-post-date {
    justify-self: end;
    white-space: nowrap;
    color: rgb(170,170,170);
}

.nf-search-post-row:hover .nf-search-post-text {
    color: rgb(230,230,230);
}

.nf-search-post-sep {
    width: 100%;
    margin: 0;
}

.nf-connect-disabled {
    opacity: 0.5;
    cursor: default !important;
    pointer-events: none;
}

.nf-notif-delete {
    width: 16px;
    height: 16px;
    cursor: pointer;
    transition: opacity .2s ease;
}

.nf-notif-delete:hover {
    opacity: .8;
}

.nf-notif-delete:focus-visible {
    outline: 1px solid rgb(255,166,0);
    outline-offset: 2px;
    border-radius: 50%;
}

#NFInfoButtonOnOff {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#NFInfoButtonOnOff.nf-info-open {
    opacity: 1;
    max-height: 1000px;
    min-height: 480px;
}

.F0BE77174 {
    transition: opacity .3s ease, transform .3s ease;
}

.F0BE77174:not(.nf-friend-card--visible) {
    opacity: 0;
    transform: translateY(8px);
}

.F0BE77174.nf-friend-card--promote {
    animation: nfFriendPromote .35s ease;
}

.F0BE77174.nf-friend-card--demote {
    animation: nfFriendDemote .35s ease;
}

@keyframes nfFriendPromote {
    0% { transform: translateY(12px); opacity: 0; }
    60% { transform: translateY(-6px); opacity: 1; }
    100% { transform: translateY(0); }
}

@keyframes nfFriendDemote {
    0% { transform: translateY(-12px); opacity: 1; }
    100% { transform: translateY(0); }
}

.nf-friend-message-popup-body#popupboxbody {
    background: rgb(68,68,68);
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0,0,0,0.75);
    min-width: 400px;
    width: min(560px, calc(100vw - 24px));
    max-width: 560px;
    min-height: 200px;
    height: auto;
    max-height: none;
    box-sizing: border-box;
}

.nf-friend-message-popup-body#popupboxbody .df-fdr-jcc-ac.f-normal.fs-12.ta-c.mt-20 {
    width: 220px;
    margin: 20px auto 0 auto;
    justify-content: space-between;
}

.nf-friend-message-popup-content#Mixer_Record_Popup {
    background: transparent;
    color: rgb(230,230,230);
    border-radius: 0;
    padding: 0;
}

.nf-friend-message-popup-wrap {
    width: 100%;
}

.nf-friend-message-popup-input {
    width: 100%;
    min-height: 250px;
    height: 250px;
    max-height: 250px;
    resize: none;
    overflow-y: auto;
    box-sizing: border-box;
    border: 1px solid rgb(87,87,87);
    border-radius: 4px;
    background: rgb(28,28,28);
    color: rgb(230,230,230);
    padding: 8px 10px;
    font-family: helvetica;
    font-size: 14px;
    line-height: 1.45;
    transition: none;
}

.nf-friend-message-popup-input:focus {
    outline: none !important;
    border-color: rgb(87,87,87);
    box-shadow: none;
}

.nf-friend-message-popup-input:hover {
    border-color: rgb(87,87,87);
}

.nf-friend-message-popup-input::placeholder {
    color: rgb(150,150,150);
}

.nf-friend-message-popup-error {
    min-height: 14px;
}

.nf-friend-message-popup-hint {
    color: rgb(160,160,160);
}

.nf-friend-message-popup-reply-title {
    margin: 0 0 6px 0;
}

.nf-friend-message-popup-reply-preview {
    margin: 0 0 10px 0;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    color: rgb(230,230,230);
}

.nf-friend-message-popup-sendbtn {
    margin-left: 0;
    margin-right: 0;
}

.nf-friend-message-popup-sendbtn.is-busy {
    opacity: 0.65;
    cursor: not-allowed;
}

.nf-friend-message-popup-cancel#popupboxcancel {
    border-radius: 15px;
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 440px) {
    .nf-friend-message-popup-body#popupboxbody {
        min-width: 0;
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
    }
}
