.mx_ServerPicker,
.mx_AuthFooter {
    display: none !important;
}

.pz-lookup-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(5, 16, 28, 0.48);
    backdrop-filter: blur(4px);
    color: #17212b;
}

.pz-lookup-overlay.open {
    display: flex;
}

.pz-lookup-panel {
    width: min(430px, 100%);
    max-height: min(82vh, 640px);
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    font-family: inherit;
}

.pz-lookup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pz-lookup-title {
    font-size: 20px;
    font-weight: 750;
}

.pz-lookup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f2f6f9;
    color: #6b7784;
    cursor: pointer;
}

.pz-lookup-close svg {
    width: 18px;
    height: 18px;
}

.pz-lookup-sub {
    margin-top: 8px;
    color: #7b8792;
    font-size: 12px;
    line-height: 1.6;
}

.pz-lookup-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 0 6px 0 13px;
    height: 48px;
    box-sizing: border-box;
    border: 1px solid #dfe8ef;
    border-radius: 14px;
    background: #f8fafc;
}

.pz-lookup-search:focus-within {
    border-color: #168acd;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(22, 138, 205, 0.1);
}

.pz-lookup-at {
    flex: 0 0 auto;
    color: #168acd;
    font-size: 17px;
    font-weight: 700;
}

.pz-lookup-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    color: #17212b;
    font-family: inherit;
    font-size: 16px;
    outline: none;
}

.pz-lookup-submit {
    flex: 0 0 auto;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: #168acd;
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.pz-lookup-submit:disabled {
    opacity: 0.6;
    cursor: default;
}

.pz-lookup-msg {
    min-height: 18px;
    margin-top: 9px;
    color: #d05a5a;
    font-size: 12px;
}

.pz-lookup-result {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    padding: 12px;
    border: 1px solid #e8eef3;
    border-radius: 16px;
    background: #f8fafc;
}

.pz-lookup-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 15px;
    background: #e9f5fd;
    color: #168acd;
    font-size: 19px;
    font-weight: 800;
}

.pz-lookup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pz-lookup-meta {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

.pz-lookup-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
}

.pz-lookup-username {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #84919d;
    font-size: 11px;
}

.pz-lookup-start {
    flex: 0 0 auto;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: #168acd;
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.pz-lookup-start:disabled {
    opacity: 0.6;
    cursor: default;
}

@media (max-width: 640px) {
    .pz-lookup-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .pz-lookup-panel {
        width: 100%;
        max-height: 84vh;
        padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
        border-radius: 24px 24px 0 0;
    }
}
